You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sleeping between timers, the current code uses nanosleep, which uses CLOCK_MONOTONIC as a time source.
CLOCK_MONOTONIC doesn't advance when the system is suspended, which prevents xidlelock to trigger correctly right after the system has woken up from an extended sleep.
xidlelock should probably use clock_nanosleep with CLOCK_BOOTTIME as a time source, which correctly counts suspended time.
The text was updated successfully, but these errors were encountered:
I forgot about this during our email conversation, but the main xidlehook client does not actually use this code path. It uses tokio, which uses rust's Instant, a monotonic clock.
When sleeping between timers, the current code uses nanosleep, which uses CLOCK_MONOTONIC as a time source.
CLOCK_MONOTONIC doesn't advance when the system is suspended, which prevents xidlelock to trigger correctly right after the system has woken up from an extended sleep.
xidlelock should probably use clock_nanosleep with CLOCK_BOOTTIME as a time source, which correctly counts suspended time.
The text was updated successfully, but these errors were encountered: