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

Added fix for running idle trigger after system wake due to race condition #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

quantum-byte
Copy link
Contributor

I had some issues with suspending right after wake up. As far as i could see, it might be possible to hit the idle trigger before we do the wake up detection farther down (race condition due to thread suspension etc.). That is why i introduced this additional check here.

Mär 11 14:54:14 white circadian[818]: System suspending.
Mär 11 14:54:14 white circadian[818]: Idle command succeeded.
Mär 11 14:54:45 white circadian[818]: Idle state active:
Mär 11 14:54:45 white circadian[818]: w               : 1073
Mär 11 14:54:45 white circadian[818]: xssstate*       : 4294967
Mär 11 14:54:45 white circadian[818]: xprintidle*     : 4294967
Mär 11 14:54:45 white circadian[818]: Wake block      : 0
Mär 11 14:54:45 white circadian[818]: TTY (combined)  : 1073
Mär 11 14:54:45 white circadian[818]: X11 (combined)* : 4294967
Mär 11 14:54:45 white circadian[818]: Idle (min)      : 4294967
Mär 11 14:54:45 white circadian[818]: Idle target     : 900
Mär 11 14:54:45 white circadian[818]: Until idle      : 0
Mär 11 14:54:45 white circadian[818]: IDLE?           : true
Mär 11 14:54:45 white circadian[818]: CPU load*       : false
Mär 11 14:54:45 white circadian[818]: SSH*            : false
Mär 11 14:54:45 white circadian[818]: SMB             : false
Mär 11 14:54:45 white circadian[818]: NFS             : false
Mär 11 14:54:45 white circadian[818]: Audio*          : false
Mär 11 14:54:45 white circadian[818]: Processes*      : false
Mär 11 14:54:45 white circadian[818]: BLOCKED?        : false
Mär 11 14:54:45 white circadian[818]: System suspending.
Mär 11 14:54:45 white circadian[818]: Idle command succeeded.
Mär 11 14:55:12 white circadian[818]: Idle state active:
Mär 11 14:55:12 white circadian[818]: w               : 1100
Mär 11 14:55:12 white circadian[818]: xssstate*       : 4294967
Mär 11 14:55:12 white circadian[818]: xprintidle*     : 4294967
Mär 11 14:55:12 white circadian[818]: Wake block      : 0
Mär 11 14:55:12 white circadian[818]: TTY (combined)  : 1100
Mär 11 14:55:12 white circadian[818]: X11 (combined)* : 4294967
Mär 11 14:55:12 white circadian[818]: Idle (min)      : 4294967
Mär 11 14:55:12 white circadian[818]: Idle target     : 900
Mär 11 14:55:12 white circadian[818]: Until idle      : 0
Mär 11 14:55:12 white circadian[818]: IDLE?           : true
Mär 11 14:55:12 white circadian[818]: CPU load*       : false
Mär 11 14:55:12 white circadian[818]: SSH*            : false
Mär 11 14:55:12 white circadian[818]: SMB             : false
Mär 11 14:55:12 white circadian[818]: NFS             : false
Mär 11 14:55:12 white circadian[818]: Audio*          : false
Mär 11 14:55:12 white circadian[818]: Processes*      : false
Mär 11 14:55:12 white circadian[818]: BLOCKED?        : false
Mär 11 14:55:12 white circadian[818]: System suspending.
Mär 11 14:55:12 white circadian[818]: Idle command succeeded.
Mär 11 14:55:44 white circadian[818]: Watchdog missed.  Wake from sleep!

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

Successfully merging this pull request may close these issues.

1 participant