[opensuse] PC fails to resume after suspend sometimes
My desktop PC fails to resume from suspend sometimes. I have my Leap system set to suspend after a period of idleness and it mostly recovers properly when I press a key afterwards, but sometimes it seems to have frozen and the only way I have found to recover it is to power cycle it. That's not fun and probably not that good for the filesystems etc. The problem started with Leap 42.1 but has persisted after my recent upgrade to 42.2. As far as i remember, it never occurred with older OS. The PC is an Acer Aspire XC-705. There's no evidence in /var/log/messages: 2017-06-08T02:00:01.881975+01:00 acer-suse systemd: pam_unix(systemd-user:session): session closed for user root 2017-06-08T02:00:01.883578+01:00 acer-suse systemd[1]: Stopped User Manager for UID 0. 2017-06-08T02:00:01.885555+01:00 acer-suse systemd[1]: Removed slice User Slice of root. 2017-06-08T02:09:13.169789+01:00 acer-suse systemd[1]: Reached target Sleep. 2017-06-08T02:09:13.222730+01:00 acer-suse systemd[1]: Starting Suspend... 2017-06-08T02:09:13.409755+01:00 acer-suse systemd-sleep[12722]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend 2017-06-08T02:09:13.459472+01:00 acer-suse systemd-sleep[12722]: Suspending system... 2017-06-08T11:07:11.572606+01:00 acer-suse rsyslogd: [origin software="rsyslogd" swVersion="8.4.0" x-pid="1379" x-info="http://www.rsyslog.com"] start 2017-06-08T11:07:11.572683+01:00 acer-suse systemd[1]: systemd 228 running in system mode. (+PAM -AUDIT +SELINUX -IMA +APPARMOR -SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN) Just the system going to sleep, apparently normally, and then the start of the reboot, which again goes apparently normally, except for the fscks because of forced shutdown. Does anybody have any idea what the problem might be? Or can anybody tell me how to start to debug this? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-06-08 13:58, Dave Howorth wrote:
Does anybody have any idea what the problem might be? Or can anybody tell me how to start to debug this?
Not on Leap. I could investigate some suspends problems with pmutils, but not with systemd. However... suspend on desktops is little tested, IMO. It is better to use hibernate (to disk). In your case, I would try hybrid mode. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
On Thu, 8 Jun 2017 14:03:32 +0200
"Carlos E. R."
On 2017-06-08 13:58, Dave Howorth wrote:
Does anybody have any idea what the problem might be? Or can anybody tell me how to start to debug this?
Not on Leap.
I could investigate some suspends problems with pmutils, but not with systemd.
However... suspend on desktops is little tested, IMO. It is better to use hibernate (to disk). In your case, I would try hybrid mode.
Thanks. Hmm, seemed likely to me that there were more moving parts to go wrong in hibernating to disk ... I know very little about power management, I just use the XFCE Pwer Manager GUI. There's no 'hybrid' offered there? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/08/2017 07:09 AM, Dave Howorth wrote:
On Thu, 8 Jun 2017 14:03:32 +0200 "Carlos E. R."
wrote: On 2017-06-08 13:58, Dave Howorth wrote:
Does anybody have any idea what the problem might be? Or can anybody tell me how to start to debug this?
Not on Leap.
I could investigate some suspends problems with pmutils, but not with systemd.
However... suspend on desktops is little tested, IMO. It is better to use hibernate (to disk). In your case, I would try hybrid mode.
Thanks. Hmm, seemed likely to me that there were more moving parts to go wrong in hibernating to disk ...
I know very little about power management, I just use the XFCE Pwer Manager GUI. There's no 'hybrid' offered there?
Why suspend at all. Why not just lock the screen, and of course blank/power off the screen? You 80% of the power savings with less wear and tear. (Ok, I pulled that 80% number straight out of my ass, but you get my point). Did you go out of your way to send all messages to /var/log? Does journalctl -e show any different messages? -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 8 Jun 2017 11:56:29 -0700
John Andersen
On 06/08/2017 07:09 AM, Dave Howorth wrote:
On Thu, 8 Jun 2017 14:03:32 +0200 "Carlos E. R."
wrote: On 2017-06-08 13:58, Dave Howorth wrote:
Does anybody have any idea what the problem might be? Or can anybody tell me how to start to debug this?
Not on Leap.
I could investigate some suspends problems with pmutils, but not with systemd.
However... suspend on desktops is little tested, IMO. It is better to use hibernate (to disk). In your case, I would try hybrid mode.
Thanks. Hmm, seemed likely to me that there were more moving parts to go wrong in hibernating to disk ...
I know very little about power management, I just use the XFCE Pwer Manager GUI. There's no 'hybrid' offered there?
Why suspend at all. Why not just lock the screen, and of course blank/power off the screen? You 80% of the power savings with less wear and tear. (Ok, I pulled that 80% number straight out of my ass, but you get my point).
Because I don't think it's anywhere near 80%. The screen blanks to an unpowered state after five minutes lack of use anyway. It's the power the PC draws I want to save. I live in a passivhaus, so it's a noticeable fraction of my power draw.
Did you go out of your way to send all messages to /var/log?
No, how would I do that?
Does journalctl -e show any different messages?
No. Pretty much the same thing but with less helpful timestamps and no way in the YaST viewer to copy them to paste in the email :( -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-06-08 16:09, Dave Howorth wrote:
On Thu, 8 Jun 2017 14:03:32 +0200 "Carlos E. R." <> wrote:
However... suspend on desktops is little tested, IMO. It is better to use hibernate (to disk). In your case, I would try hybrid mode.
Thanks. Hmm, seemed likely to me that there were more moving parts to go wrong in hibernating to disk ...
I use it (hibernate to disk) a lot, I find it more reliable that suspend.
I know very little about power management, I just use the XFCE Pwer Manager GUI. There's no 'hybrid' offered there?
Telcontar:~ # systemctl h[tab][tab] halt help hibernate hybrid-sleep Telcontar:~ # systemctl h The last one, thus "systemctl hybrid-sleep" as root. As user it asks for password if required. The thing goes through the motions of hibernate to disk, but then suspends instead. If things go normal, tap a key and you are there instantly. If battery fails, you boot instead out of hibernation, so it acts as a failsafe. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
On Fri, 9 Jun 2017 03:48:58 +0200
"Carlos E. R."
On 2017-06-08 16:09, Dave Howorth wrote:
On Thu, 8 Jun 2017 14:03:32 +0200 "Carlos E. R." <> wrote:
However... suspend on desktops is little tested, IMO. It is better to use hibernate (to disk). In your case, I would try hybrid mode.
Thanks. Hmm, seemed likely to me that there were more moving parts to go wrong in hibernating to disk ...
I use it (hibernate to disk) a lot, I find it more reliable that suspend.
I know very little about power management, I just use the XFCE Pwer Manager GUI. There's no 'hybrid' offered there?
Telcontar:~ # systemctl h[tab][tab] halt help hibernate hybrid-sleep Telcontar:~ # systemctl h
The last one, thus "systemctl hybrid-sleep" as root. As user it asks for password if required.
The thing goes through the motions of hibernate to disk, but then suspends instead. If things go normal, tap a key and you are there instantly. If battery fails, you boot instead out of hibernation, so it acts as a failsafe.
Thanks but doesn't that command actually put the system to sleep? What I would need is some way to configure the system so that when it decides to go to sleep, it chooses hybrid sleep. It seems to be difficult to find a man page for systemctl? This is a desktop BTW, so there's no battery. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-06-09 12:00, Dave Howorth wrote:
On Fri, 9 Jun 2017 03:48:58 +0200 "Carlos E. R." <> wrote:
The last one, thus "systemctl hybrid-sleep" as root. As user it asks for password if required.
The thing goes through the motions of hibernate to disk, but then suspends instead. If things go normal, tap a key and you are there instantly. If battery fails, you boot instead out of hibernation, so it acts as a failsafe.
Thanks but doesn't that command actually put the system to sleep? What I would need is some way to configure the system so that when it decides to go to sleep, it chooses hybrid sleep.
Yes, the final state you get when calling "systemctl hybrid-sleep" is sleep, right. If XFCE doesn't show "hybrid-sleep" as a target it is a problem. Create a bugzilla about that. Meanwhile, you have to call it from the command line - what is what I do, anyway: the hibernate menu in XFCE doesn't work for me. If there are terminals opened by other users it fails. Worse, the screensaver locks the screen, then it asks for root password, but behind the black screen, so I never see it, and the machine does not hibernate. This is a long standing bug.
It seems to be difficult to find a man page for systemctl?
'man systemctl' works here.
This is a desktop BTW, so there's no battery.
Yes, I understand. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
On Fri, 9 Jun 2017 14:49:31 +0200
"Carlos E. R."
On 2017-06-09 12:00, Dave Howorth wrote:
On Fri, 9 Jun 2017 03:48:58 +0200 "Carlos E. R." <> wrote:
The last one, thus "systemctl hybrid-sleep" as root. As user it asks for password if required.
The thing goes through the motions of hibernate to disk, but then suspends instead. If things go normal, tap a key and you are there instantly. If battery fails, you boot instead out of hibernation, so it acts as a failsafe.
Thanks but doesn't that command actually put the system to sleep? What I would need is some way to configure the system so that when it decides to go to sleep, it chooses hybrid sleep.
Yes, the final state you get when calling "systemctl hybrid-sleep" is sleep, right.
If XFCE doesn't show "hybrid-sleep" as a target it is a problem. Create a bugzilla about that.
Well, I'd like to understand things better than that first. I just tried to retrieve the source for xfce4-power-manager but zypper wants to install 32 new packages as well. WTF! I just want the source. It wants to install something called libgarcon-1-0 for example, which I don't have installed at the moment so is clearly not necessary for the XFCE power manager, which doesn't have a menu. But even if it was necessary, me deciding I want to read some code doesn't mean I want a whole bunch of other stuff I didn't ask for. Sorry, rant over, not your fault. I've downloaded the src rpm from the mirror but I've idea how to now install it.
Meanwhile, you have to call it from the command line
The whole point is that the system should power down when I am NOT there, not when I am!
- what is what I do, anyway: the hibernate menu in XFCE doesn't work for me. If there are terminals opened by other users it fails. Worse, the screensaver locks the screen, then it asks for root password, but behind the black screen, so I never see it, and the machine does not hibernate. This is a long standing bug.
Dunno, it works fine for me, except the wrong target.
It seems to be difficult to find a man page for systemctl?
'man systemctl' works here.
Ah yes, never thought to try that :) Not very helpful really. I suppose what I need is an idiot's guide. Or some other method of controlling the system configuration to set hybrid-sleep as the target. Does nobody else use this? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-06-09 19:21, Dave Howorth wrote:
On Fri, 9 Jun 2017 14:49:31 +0200 "Carlos E. R." <> wrote:
Yes, the final state you get when calling "systemctl hybrid-sleep" is sleep, right.
If XFCE doesn't show "hybrid-sleep" as a target it is a problem. Create a bugzilla about that.
Well, I'd like to understand things better than that first.
I just tried to retrieve the source for xfce4-power-manager but zypper wants to install 32 new packages as well. WTF! I just want the source. It wants to install something called libgarcon-1-0 for example, which I don't have installed at the moment so is clearly not necessary for the XFCE power manager, which doesn't have a menu. But even if it was necessary, me deciding I want to read some code doesn't mean I want a whole bunch of other stuff I didn't ask for. Sorry, rant over, not your fault.
The rest come as dependencies.
I've downloaded the src rpm from the mirror but I've idea how to now install it.
As any other rpm - almost. It goes into "/usr/src/packages/". Or you can look inside with "mc".
Meanwhile, you have to call it from the command line
The whole point is that the system should power down when I am NOT there, not when I am!
Ah! That's different. That is done in "settings Manager"/"Screen Saver"-"advanced". But I do not see how to change the target, it is not possible. Wait. Try "settings Manager"/"Settings Editor". Go to XFCE4-power manager. On right hand panel there is a string setting for inactivity-sleep-mode. It is set to "Suspend". Try change it.
Or some other method of controlling the system configuration to set hybrid-sleep as the target. Does nobody else use this?
I discovered it recently. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
On Fri, 9 Jun 2017 19:39:18 +0200
"Carlos E. R."
The rest come as dependencies.
Well yes, but it isn't actually a dependency! Even for the binary RPM. And for the source RPM I'd argue there shouldn't be any at all. It's just text to read. Now I agree that if my intention was to compile it, then I'd need some other sources as well, but that isn't my intention at present.
On 2017-06-09 19:21, Dave Howorth wrote:
I've downloaded the src rpm from the mirror but I've idea how to now install it.
As any other rpm - almost. It goes into "/usr/src/packages/". Or you can look inside with "mc".
I install RPMs using YaST. I don't know how else, and my searches suggested zypper si but that's what wanted MB of other stuff.
Meanwhile, you have to call it from the command line
The whole point is that the system should power down when I am NOT there, not when I am!
Ah! That's different. That is done in "settings Manager"/"Screen Saver"-"advanced". But I do not see how to change the target, it is not possible.
I've no idea what "settings Manager" is?
Wait. Try "settings Manager"/"Settings Editor". Go to XFCE4-power manager. On right hand panel there is a string setting for inactivity-sleep-mode. It is set to "Suspend". Try change it.
Or some other method of controlling the system configuration to set hybrid-sleep as the target. Does nobody else use this?
I discovered it recently.
Discovered what? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 9 Jun 2017 21:40:58 +0100
Dave Howorth
On Fri, 9 Jun 2017 19:39:18 +0200 "Carlos E. R."
wrote:
I've no idea what "settings Manager" is?
Wait. Try "settings Manager"/"Settings Editor". Go to XFCE4-power manager. On right hand panel there is a string setting for inactivity-sleep-mode. It is set to "Suspend". Try change it.
Or some other method of controlling the system configuration to set hybrid-sleep as the target. Does nobody else use this?
I discovered it recently.
Discovered what?
Hey Dave, lighten up. Carlos and you speak different native tongues. He's trying to help and you are making it like he is speaking gibberish. (and if you are intentionally trolling him, that's even worse) You can find Settings Manager in your main menu, under Settings. If it's not there, run xfce4-settings-manager from a terminal. Settings Manager is a gui that collects most/all of your xfce settings widgets into a page. Settings Editor is one of those widgets. Ralph -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-06-09 22:40, Dave Howorth wrote:
On 2017-06-09 19:21, Dave Howorth wrote:
I've downloaded the src rpm from the mirror but I've idea how to now install it.
As any other rpm - almost. It goes into "/usr/src/packages/". Or you can look inside with "mc".
I install RPMs using YaST. I don't know how else, and my searches suggested zypper si but that's what wanted MB of other stuff.
You can simply copy the rpm to some directory without installing it, and look inside with 'mc'. That's what I meant.
Meanwhile, you have to call it from the command line
The whole point is that the system should power down when I am NOT there, not when I am!
Ah! That's different. That is done in "settings Manager"/"Screen Saver"-"advanced". But I do not see how to change the target, it is not possible.
I've no idea what "settings Manager" is?
XFCE settings manager. Didn't you say you are using XFCE? Well, in "settings".
Wait. Try "settings Manager"/"Settings Editor". Go to XFCE4-power manager. On right hand panel there is a string setting for inactivity-sleep-mode. It is set to "Suspend". Try change it.
Or some other method of controlling the system configuration to set hybrid-sleep as the target. Does nobody else use this?
I discovered it recently.
Discovered what?
hybrid-sleep. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
09.06.2017 23:40, Dave Howorth пишет:
On Fri, 9 Jun 2017 19:39:18 +0200 "Carlos E. R."
wrote: The rest come as dependencies.
Well yes, but it isn't actually a dependency! Even for the binary RPM. And for the source RPM I'd argue there shouldn't be any at all.
Dependencies of the source RPM are BuildRequire's.
It's just text to read. Now I agree that if my intention was to compile it, then I'd need some other sources as well, but that isn't my intention at present.
man rpm2cpio -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Carlos E. R.
-
Dave Howorth
-
John Andersen
-
listreader