Contribute
Register

Problem with sleep via lid close on Sony

Status
Not open for further replies.
I hope I can use this topic.

I got similar problem, but my laptop does not go to sleep when I close LID.

Other scenarios work. Apple - Sleep - LID closed - LID open - pc wakes up

Where should I try to search for problem?

Keep in mind there is a delay (15-20 sec) before sleep begins.
 
Code:
Davors-MacBook-Air:~ davor$ pmset -g assertions2016-01-27 22:44:29 +0100 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=01/01/70 01:00 description=com.apple.usb.externaldevice.14200000 owner=USB Receiver
Idle sleep preventers: IODisplayWrangler
 
Code:
Davors-MacBook-Air:~ davor$ pmset -g assertions2016-01-27 22:44:29 +0100 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=01/01/70 01:00 description=com.apple.usb.externaldevice.14200000 owner=USB Receiver
Idle sleep preventers: IODisplayWrangler

I don't see any issue there... Note: all external devices should be unplugged.
 
I removed USB Logitech Unify receiver (so none USB in pc), but laptop still wont go to sleep.

You can use ACPIDebug to debug your _LID method in your ACPI lid object.

ACPIDebug: https://github.com/RehabMan/OS-X-ACPI-Debug

You will need to understand ACPI. See ACPI patching guide for ACPI spec link/etc.

http://www.tonymacx86.com/el-capitan-laptop-support/152573-guide-patching-laptop-dsdt-ssdts.html

The idea would be to verify that your _LID method is being called, and it is returning the correct value regarding lid status.
 
I removed _PWR from LID0 Method and now when I close LID, pc goes to sleep.

If I have USB Logitech Unify mouse receiver in PC, it wakes up few seconds after sleep (LID open or closed). Is there any way to prevent that? Because having USB receiver is quote important for me.
 
I removed _PWR from LID0 Method and now when I close LID, pc goes to sleep.

It is the typical fix when one finds the _LID method is not being called.

If I have USB Logitech Unify mouse receiver in PC, it wakes up few seconds after sleep (LID open or closed). Is there any way to prevent that? Because having USB receiver is quote important for me.

USB wake can be disabled by applying the appropriate _PRW patch as mentioned in the ACPI patching guide (linked previously).
 
Status
Not open for further replies.
Back
Top