TamtamHero / fw-fanctrl

A simple systemd service to better control Framework Laptop's fan(s)
BSD 3-Clause "New" or "Revised" License
178 stars 33 forks source link

[BUG] [packaging/AUR] Sleep hook causes 90-second hang on startup / resume from sleep #48

Closed rothn closed 2 months ago

rothn commented 2 months ago

Describe the bug Sleep hook causes a hang when coming out of suspend. Also reported at https://github.com/systemd/systemd/issues/33020 and https://bbs.archlinux.org/viewtopic.php?pid=2177336#p2177336.

To Reproduce

  1. Install the package
  2. Reboot
  3. Observe a delay of exactly 90 seconds coming out of sleep.

Expected behavior The system should resume from sleep instantly.

Screenshots If applicable, add screenshots to help explain your problem.

Error message

Jun 10 22:40:56 <REDACTED> runuser[56917]: pam_unix(runuser-l:session): session opened for user root(uid=0) by root(uid=0)
Jun 10 22:41:26 <REDACTED> runuser[56812]: pam_systemd(runuser-l:session): Failed to create session: Connection timed out
Jun 10 22:41:26 <REDACTED> runuser[56812]: pam_unix(runuser-l:session): session closed for user root

Environment (please complete the following information):

Additional context Removing the sleep hook solves the problem.

rothn commented 2 months ago

Confirmed fixed as of 1bc4f60

leopoldhub commented 2 months ago

Hi, sorry for the delay, I hope you are doing well.

We recently did a massive code cleanup which included removing the use of runuser which was causing problems for some users. Seeing that it is fixed in the head commit, it seems that it is indeed the same issue as #13 .

Is there anything else I can help you with?

rothn commented 2 months ago

No-- this is confirmed fix after your cleanup. Thanks for your work!