Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working on Void Linux with XFCE4 which is updated and otherwise working very well.
Earlier, when I pressed "suspend" button from XFCE4 log-out menu, the computer would suspend properly - screen goes blank, no disk activity and power button used change from ON to blinking state. Then on pressing spacebar, it would wake up, power button would become ON again and desktop would be restored on screen.
Recently, however, there is a problem. On pressing "suspend" button, the screen goes blank but disk activity continues and power button remains ON (not change to blinking). Moreover, on pressing spacebar, desktop is not restored and I have press to the restart button or switch off the computer and then switch on again.
Memory and swap status on my desktop can be seen from output of `free` command:
Code:
$ free -h
total used free shared buff/cache available
Mem: 3.8Gi 1.1Gi 2.2Gi 77Mi 569Mi 2.4Gi
Swap: 11Gi 0B 11Gi
I tried to search the internet but found mainly pages which describe solutions involving `systemd`, but Void Linux has `runit`.
Since the computer goes off, I can check output of command: `dmesg | tail`
Where could be the problem and how can it be solved? Thanks for your help.
I also tried `zzz` command:
`zzz -n` : gives proper response- sleep for a few seconds
`zzz -z` : produces result as described in my question above - blank screen but power still on, disk still working and not waking up on pressing spacebar. I have to restart the computer.
With my Debian one, hibernate and suspend are quite unreliable. Every time after system upgrade (or whatever), I need to accept any unexpected (somewhere between perfect and system freeze, kernel panic). I do not have major trouble other than these power related issue.
Your system may be back in good health after next update.
With my Debian one, hibernate and suspend are quite unreliable. Every time after system upgrade (or whatever), I need to accept any unexpected (somewhere between perfect and system freeze, kernel panic). I do not have major trouble other than these power related issue.
Your system may be back in good health after next update.
cheers
Thanks for your answer. Contrary to your experience, I hardly ever have problem with my Debian Stable installation on this same desktop. However, I have been using suspend only, not hibernate. You have not mentioned if your Debian installation is of stable/testing/unstable branch.
Trouble is with one of my laptops, but not all of them. Desktop is less troublesome, yes, I agree.
Post #2 is with the troubled one. I stopped troubleshooting, because is is unpredictable.
rng, please have a look at the journal from the exact time you initiate the suspend.
Finding journal entries from that time will be tricky; have a look at
Code:
man journalctl
I suspect you need to set the '--since' option to the correct timedate.
Also
Code:
systemd-inhibit
I suspect you are using the xfce4-power-manager to manage screen blanking, suspend and hibernate? Which one of those three is problematic for you? You say suspend, but the behavior ("on pressing spacebar, it would wake up") sounds more like simple screen blanking.
Please do have a look at xfce4-power-manager settings how things are set up. Along with the other output I requested.
rng, please have a look at the journal from the exact time you initiate the suspend.
Finding journal entries from that time will be tricky; have a look at
Code:
man journalctl
I suspect you need to set the '--since' option to the correct timedate.
Also
Code:
systemd-inhibit
I suspect you are using the xfce4-power-manager to manage screen blanking, suspend and hibernate? Which one of those three is problematic for you? You say suspend, but the behavior ("on pressing spacebar, it would wake up") sounds more like simple screen blanking.
Please do have a look at xfce4-power-manager settings how things are set up. Along with the other output I requested.
Thanks for your suggestions. I had clarified in my post that Void Linux does not have systemd as the init system. It has runit. There are no "journalctl" etc commands here.
I read somewhere that in Debian "testing" version, errors take longer to be corrected as compared with Debian "unstable" version, where corrected packages are updated promptly. Debian Stable has no errors!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.