9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

スリープの阻害要因を調べる

Posted at

macがスリープしなくなったら、 pmset -g assertions を実行するといい。

$ pmset -g assertions
2012/08/24 7:43:00 JST   
Assertion status system-wide:
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             1
   PreventUserIdleSystemSleep     0
   ExternalMedia                  0
   UserIsActive                   0
   ApplePushServiceTask           0
   BackgroundTask                 1

Listed by owning process:
  pid 57744(InternetSharing): [0x0000000800001ffb] 08:17:26 DenySystemSleep named: "com.apple.InternetSharing" 
  pid 66253(named): [0x000000080000200f] 08:17:20 DenySystemSleep named: "org.isc.named.denysystemsleep" 
  pid 73891(helpd): [0x0000000c0000218c] 00:15:21 BackgroundTask named: "com.apple.helpd.sdmbuilding" 

PreventSystemSleepが1となっていて、スリープを阻害しているプロセスがあることが分かる。そのプロセスは、Listed by owning process以下に出力される。

この例ではインターネット共有が原因。

9
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?