最近發現手邊的 mbp 16 m1 不管放著螢幕暗掉多久,都可以直接輕觸用指紋打開,感覺沒有進去 Hibernate,不然會需要按一下才能再偵測指紋
先用 pmset -g
確認一下目前的狀態
$ pmset -g
System-wide power settings:
Currently in use:
standby 1
Sleep On Power Button 1
hibernatefile /var/vm/sleepimage
powernap 1
disksleep 10
sleep 1 (sleep prevented by coreaudiod, powerd)
hibernatemode 3
ttyskeepawake 1
displaysleep 2
tcpkeepalive 1
powermode 0
看起來是被 coreaudiod
/ powerd
影響
再接著用 assertions
確認一下細節
$ pmset -g assertions
2022-10-13 01:22:33 +0800
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 0
PreventUserIdleSystemSleep 1
NetworkClientActive 0
Listed by owning process:
pid 150(WindowServer): [0x000488ca000989dd] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle serviceID:1000009fa name:AppleHIDKeyboardEve product:Apple Internal Keyb eventType:3"
Timeout will fire in 120 secs Action=TimeoutActionRelease
pid 95(powerd): [0x000488cb000189de] 00:23:10 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on"
pid 167(coreaudiod): [0x000170ce00019ba5] 56:42:19 PreventUserIdleSystemSleep named: "com.apple.audio.BuiltInSpeakerDevice.context.preventuseridlesleep"
Created for PID: 5501.
Kernel Assertions: 0x4=USB
id=573 level=255 0x4=USB creat=2022/10/11, 23:04 description=com.apple.usb.externaldevice.00100000 owner=USB2.0 Hub
id=575 level=255 0x4=USB creat=2022/10/11, 23:06 description=com.apple.usb.externaldevice.00200000 owner=USB3.1 Hub
這邊可以看出來是被 PID: 5501
的 process 影響,查一下該 PID 是 /Applications/LINE.app/Contents/XPCServices/LINE.MediaService.xpc/Contents/MacOS/LINE.MediaService
當下其實 LINE app 已經 quit 掉了,不太確定到底為什麼還有這三個 process
kouni 5501 0.4 0.1 410018992 64384 ?? Ss Mon12PM 17:21.25 /Applications/LINE.app/Contents/XPCServices/LINE.MediaService.xpc/Contents/MacOS/LINE.MediaService
kouni 5503 0.0 0.1 409748800 41664 ?? Ss Mon12PM 0:00.68 /Applications/LINE.app/Contents/XPCServices/LINE.TimelinePreviewService.xpc/Contents/MacOS/LINE.TimelinePreviewService
kouni 5502 0.0 0.1 409882576 55200 ?? Ss Mon12PM 0:00.77 /Applications/LINE.app/Contents/XPCServices/LINE.SeekPreviewService.xpc/Contents/MacOS/LINE.SeekPreviewService
把這三個 process 都 kill 掉之後就正常了!