LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-07-2021, 10:38 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Rep: Reputation: 43
Power suspend not working


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.

Last edited by rng; 04-07-2021 at 10:39 PM.
 
Old 04-08-2021, 08:19 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,743

Rep: Reputation: 107Reputation: 107
Hya

I am not sure if my post is of any help.

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
 
Old 04-08-2021, 08:39 PM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by kaz2100 View Post
Hya

I am not sure if my post is of any help.

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.

Last edited by rng; 04-08-2021 at 09:20 PM.
 
Old 04-11-2021, 08:17 PM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,743

Rep: Reputation: 107Reputation: 107
Hya,

My Debian is testing.

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.

I hope situation goes better with you.

cheers
 
Old Yesterday, 12:46 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,893
Blog Entries: 10

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
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.
 
Old Yesterday, 06:57 AM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by ondoho View Post
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.

Last edited by rng; Yesterday at 07:01 AM.
 
Old Yesterday, 01:14 PM   #7
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by kaz2100 View Post
Hya,

My Debian is testing.

...
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!

Last edited by rng; Yesterday at 01:15 PM.
 
Old Yesterday, 08:51 PM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Update: It has started working, possibly as a result of update. Updates were being applied daily but earlier it was not working despite updates.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xscreensaver + systemctl suspend Perl script for power management in LXDE not working Xenphor Fedora 13 10-01-2013 03:30 AM
Bash does not suspend/cancel pm-suspend theKbStockpiler Linux - General 1 11-05-2012 02:37 PM
Power Management not working on embedded MIPS when using /sys/power/state RichardS Programming 1 01-21-2011 07:18 AM
Hibernate / Suspend Not Working - Gnome Power Manager ls37 Linux - Newbie 5 12-30-2007 01:14 PM
difference between "suspend to standby" and "suspend to ram" nappaji Linux - Hardware 1 08-23-2006 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration