查看: 1476|回复: 4

[求助] 高手请进,关于睡眠问题

[复制链接]
发表于 2015-9-22 10:18 | 显示全部楼层 |阅读模式 IP属地广东
快御云安全
主板为传统BIOS,单硬盘。改GPT+UEFI驱动,Yosemite10.10.5

Dell N301Z硬件一览:

CPUIntel(R) Core(TM) i7-640UM @ 1.2GHz
内存8G (升级)
主板Intel Ibex Peak-M HM57
显卡ATI5430M 1Gb
声卡IDT 92HD81B1X5, Vendor ID: 0x111d7605, Subsys. ID: 0x1028044a, Rev. ID:  0x100105
无线BCM4322 802.11a/b/g/n Wireless Network Adapter (升级)
有线Realtek RTL8401E Fast Ethernet Adapter  


现象描述:
  • 能待机和菜单选择睡眠,也能正常唤醒;
  • 睡眠时,电源开关灯闪烁,能通过按电源键唤醒;
  • 正常运行时,按电源键即刻断电关机(问题????)

分析和观察:
a) 电源管理日志与网友的完全不同(/usr/bin/pmset -g log):

本人电源管理日志:
2015-09-22 07:35:53 +0800 BatteryHealth               Battery health: Check Battery                                                                
Sleep/Wakes since boot at 2015-09-20 19:56:37 +0800 :0   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                      Message                                                                            Duration          Delay     
==========                ======                      =======                                                                            ========          =====     
UUID: (null)
2015-09-22 07:36:04 +0800 Start                       powerd process is started                                                                    
2015-09-22 07:36:04 +0800                             Summary- [System: No Assertions] Using AC                                                    
2015-09-22 07:38:07 +0800 Assertions                  PID 73(apsd) Released ApplePushServiceTask "com.apple.apsd-login" 00:01:30  id:0xb0000014c [System: PrevIdle BGTask IPushSrvc]                  
2015-09-22 07:38:25 +0800 Assertions                  PID 37(UserEventAgent) Released BackgroundTask "com.apple.metadata.mds.power" 00:02:10  id:0xb00000141 [System: BGTask]                  
2015-09-22 07:38:29 +0800 Assertions                  PID 37(UserEventAgent) Released BackgroundTask "com.apple.metadata.mds_stores.power" 00:02:11  id:0xb00000147 [System: No Assertions]                  
2015-09-22 07:49:14 +0800 Notification                Display is turned off                                                                        
2015-09-22 07:50:28 +0800 Assertions                  PID 49(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0xd000001fd [System: SRPrevSleep kCPU]                  
2015-09-22 07:50:43 +0800 Assertions                  PID 49(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0xd000001fd [System: SRPrevSleep kCPU]                  
Sleep/Wakes since boot at 2015-09-22 07:36:04 +0800 :0   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                      Message                                                                            Duration          Delay     
==========                ======                      =======                                                                            ========          =====     
UUID: FB723FB8-2427-4D04-BCAE-3F546D9438FF
2015-09-22 07:50:43 +0800 Sleep                       Entering Sleep state due to 'Idle Sleep': Using AC (Charge:100%)                   740 secs  
2015-09-22 07:50:46 +0800 PM Client Acks              Delays to Sleep notifications: [com.apple.apsd is slow(3083 ms)]           
2015-09-22 08:02:55 +0800 Kernel Client Acks          Delays to Sleep notifications: [powerd is slow(3089 ms)]           
2015-09-22 08:02:55 +0800 Notification                Display is turned on                                                                         
2015-09-22 08:03:03 +0800 Wake                        Wake [CDNVA] due to PWRB/User: Using AC (Charge:100%)                              1000 secs
2015-09-22 08:03:03 +0800 Kernel Client Acks          Delays to Wake notifications: [AppleHDADriver driver is slow(msg: SetState to 1)(626 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(920 ms)] [ApplePS2Controller driver is slow(msg: SetState to 2)(1455 ms)] [PRT3 driver is slow(msg: SetState to 2)(1889 ms)] [PRT1 driver is slow(msg: SetState to 2)(1901 ms)] [PRT4 driver is slow(msg: SetState to 2)(1914 ms)] [PRT5 driver is slow(msg: SetState to 2)(1915 ms)] [PRT0 driver is slow(msg: SetState to 2)(2966 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 3)(658 ms)]           
2015-09-22 08:18:14 +0800 Notification                Display is turned off                                                                        
2015-09-22 08:19:28 +0800 Assertions                  PID 49(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0xd00000251 [System: SRPrevSleep kCPU]                  
2015-09-22 08:19:43 +0800 Assertions                  PID 49(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0xd00000251 [System: SRPrevSleep kCPU]                  
Sleep/Wakes since boot at 2015-09-22 07:36:04 +0800 :1   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                      Message                                                                            Duration          Delay     
==========                ======                      =======                                                                            ========          =====     
UUID: F926BED3-C0C7-4C44-9B23-E84A2E91FA16
2015-09-22 08:19:43 +0800 Sleep                       Entering Sleep state due to 'Idle Sleep': Using AC (Charge:100%)                   4283 secs
2015-09-22 08:19:46 +0800 PM Client Acks              Delays to Sleep notifications: [com.apple.apsd is slow(3109 ms)]           
2015-09-22 09:30:58 +0800 Kernel Client Acks          Delays to Sleep notifications: [powerd is slow(3114 ms)]           
2015-09-22 09:30:58 +0800 Notification                Display is turned on                                                                         
2015-09-22 09:31:06 +0800 Wake                        Wake [CDNVA] due to PWRB/User: Using AC (Charge:100%)                              1602 secs
2015-09-22 09:31:06 +0800 Kernel Client Acks          Delays to Wake notifications: [AppleHDADriver driver is slow(msg: SetState to 1)(618 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(908 ms)] [ApplePS2Controller driver is slow(msg: SetState to 2)(1456 ms)] [PRT1 driver is slow(msg: SetState to 2)(1465 ms)] [PRT4 driver is slow(msg: SetState to 2)(1478 ms)] [PRT3 driver is slow(msg: SetState to 2)(1488 ms)] [PRT5 driver is slow(msg: SetState to 2)(1497 ms)] [PRT0 driver is slow(msg: SetState to 2)(2904 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 3)(658 ms)]           
Sleep/Wakes since boot at 2015-09-22 07:36:04 +0800 :2   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                      Message                                                                            Duration          Delay     
==========                ======                      =======                                                                            ========          =====     
UUID: 70927270-A8FD-433A-8C3A-531CF4F3CA47
2015-09-22 09:57:33 +0800 Notification                Display is turned off                                                                        
2015-09-22 09:57:33 +0800 Assertions                  PID 49(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0xd000002b5 [System: SRPrevSleep kCPU]                  
2015-09-22 09:57:48 +0800 Assertions                  PID 49(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0xd000002b5 [System: SRPrevSleep IPushSrvc kCPU]                  
2015-09-22 09:57:48 +0800 Sleep                       Entering Sleep state due to 'Software Sleep pid=90': Using AC (Charge:100%)         34 secs   
2015-09-22 09:57:51 +0800 PM Client Acks              Delays to Sleep notifications: [com.apple.apsd is slow(3121 ms)]           
2015-09-22 09:58:17 +0800 Kernel Client Acks          Delays to Sleep notifications: [powerd is slow(3128 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(625 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(928 ms)] [ApplePS2Controller driver is slow(msg: SetState to 2)(1445 ms)] [PRT1 driver is slow(msg: SetState to 2)(1646 ms)] [PRT3 driver is slow(msg: SetState to 2)(1650 ms)] [PRT5 driver is slow(msg: SetState to 2)(1655 ms)] [PRT4 driver is slow(msg: SetState to 2)(1656 ms)] [PRT0 driver is slow(msg: SetState to 2)(3247 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 3)(657 ms)]           
2015-09-22 09:58:17 +0800 Notification                Display is turned on                                                                         
2015-09-22 09:58:22 +0800 Wake                        Wake [CDNVA] due to PWRB/User: Using AC (Charge:100%)                                        

Total Sleep/Wakes since boot at 2015-09-22 07:36:04 +0800 :3

2015-09-22 09:58:32 +0800 :Showing all currently held IOKit power assertions
Assertion status system-wide:
   BackgroundTask                 1
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 65(backupd-helper): [0x00000e06000b02c6] 00:00:14 BackgroundTask named: "backupd-helper"
Kernel Assertions: 0x104=USB,MAGICWAKE
   id=501  level=255 0x4=USB mod= description=EHC1 owner=AppleUSBEHCI
   id=502  level=255 0x100=MAGICWAKE mod= description=en0 owner=en0




网友的电源管理日志:
https://bbs.pcbeta.com/viewthread-831788-1-1.html

描述:    电源管理日志
  大小:    3 KB
  上次修改日期:    11-2-5 下午9:13
  最近使用的内容:    Power Management ASL logs.
-> All messages with "com.apple.message.domain" key set to "com.apple.powermanagement".)

* Domain: applicationresponse.slowresponse
- Message: PMConnection AirPort configd plug-in com.apple.powermanagement.applicationresponse.slowresponse 4546 ms
- Time:  
- Signature: AirPort configd plug-in
- UUID: 30E0A0E8-7052-410A-A5EC-7495CF34CA33
- Result: Noop
- Response time (ms): 4546

* Domain: applicationresponse.slowresponse
- Message: PMConnection IPConfiguration com.apple.powermanagement.applicationresponse.slowresponse 4547 ms
- Time:  
- Signature: IPConfiguration
- UUID: 30E0A0E8-7052-410A-A5EC-7495CF34CA33
- Result: Noop
- Response time (ms): 4547

* Domain: sleep
- Message: Sleep: Success - AC - Power Button Sleep
- Time:  
- Signature: Success
- UUID: 30E0A0E8-7052-410A-A5EC-7495CF34CA33
- Result: Success
- Sleep count : 0

* Domain: wake
- Message: Wake: Success - AC - USB6
- Time:  
- Signature: Success
- UUID: 30E0A0E8-7052-410A-A5EC-7495CF34CA33
- Result: Success

* Domain: hibernatestats
- Message: Hibernate Statistics
- Time:  
- Signature: hibernatemode=0
- UUID: 30E0A0E8-7052-410A-A5EC-7495CF34CA33

* Domain: applicationresponse.slowresponse
- Message: PMConnection AirPort configd plug-in com.apple.powermanagement.applicationresponse.slowresponse 4634 ms
- Time:  
- Signature: AirPort configd plug-in
- UUID: E078E3E4-5CD7-414B-BFC1-90B8EE2827A3
- Result: Noop
- Response time (ms): 4634

* Domain: applicationresponse.slowresponse
- Message: PMConnection IPConfiguration com.apple.powermanagement.applicationresponse.slowresponse 4635 ms
- Time:  
- Signature: IPConfiguration
- UUID: E078E3E4-5CD7-414B-BFC1-90B8EE2827A3
- Result: Noop
- Response time (ms): 4635

* Domain: sleep
- Message: Sleep: Success - AC - Software Sleep
- Time:  
- Signature: Success
- UUID: E078E3E4-5CD7-414B-BFC1-90B8EE2827A3
- Result: Success
- Sleep count : 1

* Domain: wake
- Message: Wake: Success - AC - USB6
- Time:  
- Signature: Success
- UUID: E078E3E4-5CD7-414B-BFC1-90B8EE2827A3
- Result: Success

* Domain: hibernatestats
- Message: Hibernate Statistics
- Time:  
- Signature: hibernatemode=0
- UUID: E078E3E4-5CD7-414B-BFC1-90B8EE2827A3


b) 原始DSDT (无PWRB, SLPB等设备),添加后也不起作用。
原始DSDT
DSDT-N301Z-org.aml.zip (14.89 KB, 下载次数: 0)

打补丁后的DSDT


请高手看看如何解决!谢谢!

DSDT-N301Z-patched.aml.zip

16.28 KB, 下载次数: 2, 下载积分: PB币 -1

 楼主| 发表于 2015-9-23 14:32 | 显示全部楼层 IP属地广东
高手都在哪儿!!!
回复

使用道具 举报

 楼主| 发表于 2015-9-28 13:31 | 显示全部楼层 IP属地广东
本帖最后由 yale2000 于 2015-9-28 13:34 编辑

一次偶然机会,终于解决了。纠结了2年的问题有完美结局!

1. DSDT更改:
1.1 在_SB下添加设备
  1.         Device (PWRB)
  2.         {
  3.             Name (_HID, EisaId ("PNP0C0C"))  // _HID: Hardware ID
  4.         }
  5.         
  6.         Device (SLPB)
  7.         {
  8.             Name (_HID, EisaId ("PNP0C0E"))
  9.         }
复制代码
1.2 在_WAK下添加声明(S3状态)
  1.         If (LEqual (Arg0, 0x03))
  2.         {
  3.             If (LEqual (Zero, ACTT))
  4.             {
  5.                 If (LEqual (PFLV, FMBL)) {}
  6.             }
  7.             Notify (\_SB.PWRB, 0x02)    //test for power button
  8.         }
复制代码
2. 重置Mac OS默认电源键的设置
启动“终端”,运行如下命令:
  1. defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no
复制代码
这时候你再按电源键一两秒就可以触发久违的睡眠,重启和关机选项了。

3. 可以恢复系统默认电源键的设置,可以运行命令
  1. defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes
复制代码

上图。。。
屏幕快照 2015-09-28 13.13.32.jpg

希望这些可以帮上遇到同样问题的机油。
完黑苹果就是折腾,在其中苦中作乐,找到成就感。
回复

使用道具 举报

发表于 2015-9-28 14:39 | 显示全部楼层 IP属地江西
我也无法睡眠 同求
回复

使用道具 举报

发表于 2015-9-28 16:02 | 显示全部楼层 IP属地广东
楼主不说我还不知道我的电脑有按电源键关不了机问题,因我从不按电源键关机,不过我不需要修改DSDT直接输入终端命令就搞掂了,谢谢楼主~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋联系我们

Copyright © 2005-2024 PCBeta. All rights reserved.

Powered by Discuz!  CDN加速及安全服务由「快御」提供

请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。

远景在线 ( 苏ICP备17027154号 )|远景论坛 |Win11论坛 |Win10论坛 |Win8论坛 |Win7论坛 |WP论坛 |Office论坛

GMT+8, 2024-12-12 11:43

快速回复 返回顶部 返回列表