-
Notifications
You must be signed in to change notification settings - Fork 32
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
When restart from suspend or hibernate not work #66
Comments
What version of hd-idle are you running? |
Hi @adelolmo ! I am currently using version 1.16 downloaded from here and deb packaged as indicated (I was unaware of this version here, a fellow forum member informed me of it). In dependencies comes 1.05a, so I uninstalled 1.05a and installed this one, 1.16. According to my tests, what was mentioned kept happening, so I had to add the patch so that it did not happen. It is not a "clean" installation of version 1.16 but I did purge 1.05a, but I had to remove the patch "by hand". Any other information that is required, tests or everything necessary, at your disposal. Thank you very much for your comment/response. |
Hi @adelolmo I can confirm the issue is back. I can see this issue appearing again on Debian 11, whilst Debian 10 was rock solid. It does not occur all the time, but today I noticed my disks weren't spinning down and I was able to do some checks.
Let me know if you need more information. |
Hi @auanasgheps I've created a pre release that might solve the issue. |
Thanks for the fast response @adelolmo! |
Like @auanasgheps, thanks @adelolmo for this response. Also, I installed the 1.17, I try in the next days. Regards. |
It's working... but also not. Today I've done the real first test with version 1.17, and:
|
In my case, it still doesn't work after computer sleep, the service is still running but... no hard disk spindown, none. wonder@PC-wonder:~$ systemctl status hd-idle jul 03 23:35:16 PC-wonder systemd[1]: Started hd-idle - spin down idle hard disks. wonder@PC-wonder:~$ sudo hdparm -C /dev/sdc /dev/sdc: /dev/sdb: /dev/sda: And this, after suspending overnight, then resuming for 20 minutes, then suspending again and resuming: wonder@PC-wonder:~$ systemctl status hd-idle jul 03 23:35:16 PC-wonder hd-idle[995]: symlinkPolicy=0, defaultIdle=0, defaultCommand=scsi, debug=false, logFile=, devices={name=sda, giv> But...: wonder@PC-wonder:~$ sudo hdparm -C /dev/sda /dev/sda: /dev/sdb: /dev/sdc: The hard drivers are up... |
I have experienced your case in the past days: service is up and no disks are spun-down, even if I know they are not used. |
Correct, that happens to me, with all (there are 3 that I have configured). |
What do you mean for "time account"? |
I'll see if I can find the link where I could read about this problem, that's why using hd-idle-restart-resume.service "fixes" it or at least patches it. I mean hd-idle counter, it has the "timer" to know when it has to spindown, apparently, when we sleep pc, we hibernate... when we resume, this "timer" fails and that's why this happens issue. I found the patch at the time here: I hope it helps. |
@WonderSkydive Given the story you both are telling, I'm guessing my re-implementation is buggy. I'll have to dig down the rabbit hole and see what I find in the bottom. Thank you for you input! |
For what is worth, your hd-idle rewrite has been a dream for a very long time on Debian 10 (OpenMediaVault 5), which was going in standby every day. Never had an issue. |
@adelolmo Thanks to you for your work, when I discovered your site with updated hd-idle code, heaven opened for me, then I knew it has a sequel... From what I read, I knew you had changed code and corrected that "problem" but it has never worked for me. The colleague @auanasgheps indicates that it has always worked for him until Debian 10, the problem comes from Debian 11. In my case I have always used it on systems based on ubuntu, specifically in recent years on kubuntu, I have always had the same problem, although it is true that, in your latest versions, the service does not disappear (but it does not spindown the hard drives after to resume pc). This happens to me, the service now does not die or disappear, fine, but after resuming the "counter" it seems to not work well and does not spindown. The rabbit hole is usually a place where there is everything, if I can help with something, I'm happy about it. |
I did some testing with 1.17 and I cannot reproduce the behavior that you got. |
udisks2 is not installed on my system. |
Hello, thank you for your work. This is to confirm that this issue also occurs on my computer. My computer suspends to RAM after an hour with my disks spun down. After I wake it up, my disks (without activity) spins again and will not spin back down after 10 minutes as configured. For information, I use Archlinux with systemd 251.4-1 and hd-idle 1.18-1 Best wishes, |
Summary (for my own sanity):
Since #81 covers already the last open issue, I'd like to move the conversation there and close this issue. |
If we suspend the computer or hibernate, when it resumes, hd-idle no longer works. It only works when we start the computer or restart, if we suspend or hibernate it, when it resumes, it no longer works.
After much reading, I saw that this happens because the hd-idle counter, I do not remember now exactly, does not count well when we wake up the computer to sleep or hibernate.
We need created a new systemd-unit that restarts the hd-idle service, / etc / systemd / system /
and must be activated with the command:
systemctl enable hd-idle-restart-resume.service
The content of the file:
[Unit]
Description=Restart hd-idle
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target
[Service]
Type=simple
ExecStart=/bin/systemctl --no-block restart hd-idle
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target
Thanks and regards.
The text was updated successfully, but these errors were encountered: