Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instant wakeup on sleep #8

Open
velaar opened this issue Jan 14, 2020 · 0 comments
Open

Instant wakeup on sleep #8

velaar opened this issue Jan 14, 2020 · 0 comments

Comments

@velaar
Copy link

velaar commented Jan 14, 2020

Hi,

I know that ton the front page it says that you have disabled sleep. In my case I use the X1C6 as a mobile workstation so sleep is needed. In https://github.com/tylernguyen/x1c6-hackintosh the sleep is working without an issue so I'm wondering what might cause an instant wakeup.

I'm wondering if you have any experience with pmset assertions to help me diagnose this:

pmset assertions:

(base) velaar@master ~ $ pmset -g assertions
2020-01-14 09:05:59 -0500
Assertion status system-wide:
   BackgroundTask                 1
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   InternalPreventDisplaySleep    1
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 483(sharingd): [0x000000f9000182b6] 00:02:15 PreventUserIdleSystemSleep named: "Handoff"
   pid 157(powerd): [0x0000000f00108005] 00:00:41 InternalPreventDisplaySleep named: "com.apple.powermanagement.delayDisplayOff"
	Timeout will fire in 258 secs Action=TimeoutActionTurnOff
   pid 205(hidd): [0x0000002e000980b1] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle serviceID:100000686 name:AppleUserHIDEventSe product:Karabiner VirtualHI eventType:3"
	Timeout will fire in 1200 secs Action=TimeoutActionRelease
   pid 414(UserEventAgent): [0x0000005d000b81d5] 00:04:52 BackgroundTask named: "com.apple.coreduet.sync.update-source-device-identifiers"
	Created for PID: 417.
Kernel Assertions: 0x4=USB
   id=503  level=255 0x4=USB mod=1969-12-31, 7:00 PM description=com.apple.usb.externaldevice.14500000 owner=Integrated Camera
   id=504  level=255 0x4=USB mod=1969-12-31, 7:00 PM description=com.apple.usb.externaldevice.14400000 owner=Bluetooth USB Host Controller
Idle sleep preventers: IODisplayWrangler

pmset -g:

(base) velaar@master ~ $ pmset -g
System-wide power settings:
Currently in use:
 standbydelaylow      10800
 standby              1
 womp                 0
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 proximitywake        0
 powernap             0
 gpuswitch            2
 networkoversleep     0
 disksleep            10
 standbydelayhigh     86400
 sleep                1 (sleep prevented by sharingd, useractivityd, UserEventAgent)
 hibernatemode        0
 ttyskeepawake        1
 displaysleep         20
 tcpkeepalive         1
 highstandbythreshold 50
 lidwake              1

For example InternalPreventDisplaySleep

Edit:

I was able to trace it to a famous (infamous?) GPRW method.
Wondering if I should submit a pull request with the fix. I'm testing the fix now.
(Simple GPRW → XPRW and GPRW.dsl from RehabMan)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant