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

timer keeps running while sleeping #73

Open
ehula opened this issue Jun 24, 2024 · 4 comments
Open

timer keeps running while sleeping #73

ehula opened this issue Jun 24, 2024 · 4 comments

Comments

@ehula
Copy link

ehula commented Jun 24, 2024

I have one of my listeners set to suspend. However, if I manually suspend (like close the lid), it seems that hypridle's timer keeps running. If I don't resume my laptop until after the suspend timeout period has lapsed, as soon as my laptop finishes resuming, hypridle immediately suspends it again.

Can you either pause the timer while sleeping, or reset the timer or restart hypridle on resume?

This was not a problem with swayidle.

@saharshbhansali
Copy link

Yup, I am facing the same issue.

I tried to inhibit the suspension by using a "lock" file:

on-timeout = cat /tmp/hypridle-lock || touch /tmp/hypridle-lock && systemctl suspend

and

on-resume = rm /tmp/hypridle-lock

And also doing the same when I encounter a lid close event and lid open event.

But it seems like that workaround fails.

@muni-corn
Copy link

can confirm i'm facing the same issue. this happens on both my desktop and my laptop. suspending and then immediately waking is fine, but waking after a long time of sleep (my sleep timeout is set to 30 minutes) causes the system to immediately suspend again.

@saharshbhansali
Copy link

saharshbhansali commented Jul 5, 2024

And also doing the same when I encounter a lid close event and lid open event.

But it seems like that workaround fails.

I've also tried another workaround, which is to kill hypridle using bindl = , switch:on:Lid Switch, ..., and then run the same commands used in the on-resume section of each listener along with restarting hypridle with switch:off:Lid Switch.

Killing hypridle works, and the timer stops (cause duh), but hypridle doesn't restart, nor do the on-resume section commands seem to run properly.

So, in the end, this workaround appears to fail as well.

@HarshNarayanJha
Copy link

The exact same behavior is occurring to me also. Laptop immediately suspends when I open the lid.

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

4 participants