USB 已经定制过了,查日志发现是 HID Activity 唤醒的,这个是什么东西,如何禁止。
pmset 设置
System-wide power settings:
Currently in use:
standby 0
Sleep On Power Button 1
womp 0
autorestart 0
hibernatefile /var/vm/sleepimage
proximitywake 0
powernap 0
gpuswitch 2
networkoversleep 0
disksleep 0
standbydelayhigh 86400
sleep 0 (sleep prevented by Intel Power Gadget, screensharingd, sharingd)
hibernatemode 0
ttyskeepawake 0
displaysleep 0
highstandbythreshold 50
standbydelaylow 86400
查询相关日志,定位到是 HID Activity 唤醒的,
2023-04-17 13:32:59 +0800 Wake DarkWake to FullWake from Normal Sleep [CDNVA] : due to HID Activity Using AC (Charge:0%)
详细的日志
13:32:27 +0800 Assertions PID 83(powerd) Created InternalPreventSleep "com.apple.powermanagement.wakeschedule" 00:00:00 id:0x0xd00008b4a [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2023-04-17 13:32:27 +0800 Assertions PID 210(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008b4d [System: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp]
2023-04-17 13:32:27 +0800 Assertions PID 210(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008b4d [System: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp]
2023-04-17 13:32:32 +0800 Assertions PID 83(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.wakeschedule" 00:00:05 id:0x0xd00008b4a [System: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp]
2023-04-17 13:32:38 +0800 Assertions PID 83(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00 id:0x0xd00008b65 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2023-04-17 13:32:38 +0800 DarkWake DarkWake from Normal Sleep [CDN] : due to RTC XDCI CNVW/Maintenance Using AC (Charge:0%) 21 secs
2023-04-17 13:32:38 +0800 HibernateStats hibmode=0 standbydelaylow=86400 standbydelayhigh=86400 20
2023-04-17 13:32:38 +0800 WakeTime WakeTime: 10.649 sec
2023-04-17 13:32:38 +0800 Kernel Client Acks Delays to Sleep notifications: [ATY,RadeonFramebuffer driver is slow(msg: SetState to 1)(814 ms)] [AppleHDADriver driver is slow(msg: SetState to 0)(1016 ms)] [powerd is slow(4687 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 0)(573 ms)] [en0 driver is slow(msg: WillChangeState to 0)(5280 ms)]
2023-04-17 13:32:38 +0800 Kernel Client Acks Delays to Wake notifications: [en0 driver is slow(msg: DidChangeState to 1)(680 ms)] [PRT3 driver is slow(msg: SetState to 2)(1182 ms)] [PRT1 driver is slow(msg: SetState to 2)(1184 ms)] [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(1313 ms)] [en1 driver is slow(msg: DidChangeState to 2)(434 ms)] [PRT2 driver is slow(msg: SetState to 2)(9683 ms)] [ATY,RadeonFramebuffer driver is slow(msg: SetState to 1)(388 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 0)(538 ms)] [en0 driver is slow(msg: WillChangeState to 0)(5286 ms)] [en0 driver is slow(msg: DidChangeState to 1)(681 ms)] [PRT3 driver is slow(msg: SetState to 2)(1179 ms)] [PRT1 driver is slow(msg: SetState to 2)(1181 ms)] [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(1311 ms)] [en1 driver is slow(msg: DidChangeState to 2)(432 ms)] [PRT2 driver is slow(msg: SetState to 2)(9691 ms)] [ATY,RadeonFramebuffer driver is slow(msg: SetState to 1)(386 ms)]
2023-04-17 13:32:38 +0800 Assertions PID 83(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00 id:0x0xd00008b66 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2023-04-17 13:32:48 +0800 Assertions PID 83(powerd) Released InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:09 id:0x0xd00008b65 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2023-04-17 13:32:57 +0800 Assertions PID 1198(bluetoothd) Created UserIsActive "Bluetooth Fatal Error" 00:00:00 id:0x0x900008b72 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2023-04-17 13:32:57 +0800 Assertions PID 1198(bluetoothd) ClientDied UserIsActive "Bluetooth Fatal Error" 00:00:00 id:0x0x900008b72 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
2023-04-17 13:32:57 +0800 Notification Display is turned on
2023-04-17 13:32:57 +0800 Assertions Kernel Idle sleep preventers: IODisplayWrangler
2023-04-17 13:32:59 +0800 Wake DarkWake to FullWake from Normal Sleep [CDNVA] : due to HID Activity Using AC (Charge:0%)
2023-04-17 13:32:59 +0800 HibernateStats hibmode=0 standbydelaylow=86400 standbydelayhigh=86400 20
2023-04-17 13:32:59 +0800 WakeTime WakeTime: 1.476 sec
2023-04-17 13:32:59 +0800 Kernel Client Acks Delays to Sleep notifications: [ATY,RadeonFramebuffer driver is slow(msg: SetState to 1)(814 ms)] [AppleHDADriver driver is slow(msg: SetState to 0)(1016 ms)] [powerd is slow(4687 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 0)(573 ms)] [en0 driver is slow(msg: WillChangeState to 0)(5280 ms)]
2023-04-17 13:32:59 +0800 Kernel Client Acks Delays to Wake notifications: [en0 driver is slow(msg: DidChangeState to 1)(680 ms)] [PRT3 driver is slow(msg: SetState to 2)(1182 ms)] [PRT1 driver is slow(msg: SetState to 2)(1184 ms)] [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(1313 ms)] [en1 driver is slow(msg: DidChangeState to 2)(434 ms)] [PRT2 driver is slow(msg: SetState to 2)(9683 ms)] [ATY,RadeonFramebuffer driver is slow(msg: SetState to 1)(388 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 0)(538 ms)] [en0 driver is slow(msg: WillChangeState to 0)(5286 ms)] [en0 driver is slow(msg: DidChangeState to 1)(681 ms)] [PRT3 driver is slow(msg: SetState to 2)(1179 ms)] [PRT1 driver is slow(msg: SetState to 2)(1181 ms)] [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(1311 ms)] [en1 driver is slow(msg: DidChangeState to 2)(432 ms)] [PRT2 driver is slow(msg: SetState to 2)(9691 ms)] [ATY,RadeonFramebuffer driver is slow(msg: SetState to 1)(386 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(1471 ms)]
2023-04-17 13:33:23 +0800 Assertions PID 83(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:44 id:0x0xd00008b66 [System: PrevIdle DeclUser SRPrevSleep kCPU kDisp]
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.