请教下黑苹果睡眠问题

2023-04-17 14:01:32 +08:00
 wangxiang

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]      
799 次点击
所在节点    问与答
4 条回复
mineralsalt
2023-04-17 14:03:49 +08:00
根据我多年的黑苹果经验, 睡眠问题最后都只能靠不关机解决, 只关屏幕
wangxiang
2023-04-17 14:04:43 +08:00
现象是,不是睡眠后立马唤醒,而是睡了几个小时候莫名其妙的醒了
wangxiang
2023-04-17 14:05:24 +08:00
@mineralsalt 太费电了
wangxiang
2023-04-17 15:23:54 +08:00
好像是这个原因
```
2023-04-17 05:20:23 +0800 Wake Requests [*process=powerd request=UserWake deltaSecs=29521 wakeAt=2023-04-17 13:32:25 info="com.apple.alarm.user-visible-com.apple.CalendarNotification.EKTravelEngine.periodicRefreshTimer,389"]
```

按照这个帖子 https://www.tonymacx86.com/threads/solved-ventura-random-scheduled-pm-wake-from-sleep.323359/处理了,有没有解决还在验证

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/933142

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX