V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wangxiang
V2EX  ›  问与答

请教下黑苹果睡眠问题

  •  
  •   wangxiang · 2023-04-17 14:01:32 +08:00 · 799 次点击
    这是一个创建于 613 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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]      
    
    mineralsalt
        1
    mineralsalt  
       2023-04-17 14:03:49 +08:00
    根据我多年的黑苹果经验, 睡眠问题最后都只能靠不关机解决, 只关屏幕
    wangxiang
        2
    wangxiang  
    OP
       2023-04-17 14:04:43 +08:00
    现象是,不是睡眠后立马唤醒,而是睡了几个小时候莫名其妙的醒了
    wangxiang
        3
    wangxiang  
    OP
       2023-04-17 14:05:24 +08:00
    @mineralsalt 太费电了
    wangxiang
        4
    wangxiang  
    OP
       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/处理了,有没有解决还在验证
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2720 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 05:20 · PVG 13:20 · LAX 21:20 · JFK 00:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.