Hi NMGLUG folks, I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off. When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system." I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit- 1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action> Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight. Any ideas? Thanks in advance. LeRoy -- There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what.BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com
Are you running XFCE? Are you running systemd? This may help: https://superuser.com/questions/1536856/xfdesktop-error-after-inactivity-non... On Fri, Mar 11, 2022 at 9:02 PM LeRoy Diener <leroy@choosetherightside.com> wrote:
Hi NMGLUG folks,
I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off.
When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system."
I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight.
Any ideas?
Thanks in advance. LeRoy
--
There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what. BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop. On 3/11/22 8:02 PM, LeRoy Diener wrote:
Hi NMGLUG folks,
I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off.
When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system."
I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight.
Any ideas?
Thanks in advance. LeRoy
--
There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what. BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com <https://leroydiener.com/>
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
LeRoy & NMGLugers, 1) I suggest you keep power on overnight. If you suspend and power fails your ram image of work is lost. You can try hibernate, but there have been issues with Linux and hibernate. Hibernate puts the snapshot image of your work on the hard drive, but unless the resume is set to resume form the correct location you will have a failure. My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue. I have found Mate much easier to manage after also finding the "extras" package for it and loading that. However, that just gives me a richer gui, did not help with suspend. I hope this helps. If not ask more questions. Thank you, Ted P On Sat, Mar 12, 2022 at 7:21 AM Wayne <Wayne@tradetimer.com> wrote:
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop.
On 3/11/22 8:02 PM, LeRoy Diener wrote:
Hi NMGLUG folks,
I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off.
When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system."
I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight.
Any ideas?
Thanks in advance. LeRoy
--
There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what. BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com <https://leroydiener.com/>
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
Debian 11 with Xfce desktop environment for the most part is a real pleasure. But 'hibernate' is hopeless and 'suspend' also has significant problems. New rules added per wiki.debian.org suggestions do not help. After a cold restart the erratic 'suspend' errors often disappear for a few hours but always come back. Frequently, upon inexplicably slow resumes from 'suspend', the open applications in a session seem to start locking up whereupon the only way to get to get everything working again is a hard power-key shutdown and a cold reboot. As an aside, Debian 11 also causes some new problems with an old Windows program I use under Wine, though I've been able to resolve these (annoyingly) by copying over the entire .wine directory from a prior Debian 10 installation. I experience this issue under both Debian 11 Xfce and Debian 11 KDE environments. On 3/12/22 08:35, Ted Pomeroy wrote:
LeRoy & NMGLugers, 1) I suggest you keep power on overnight. If you suspend and power fails your ram image of work is lost. You can try hibernate, but there have been issues with Linux and hibernate. Hibernate puts the snapshot image of your work on the hard drive, but unless the resume is set to resume form the correct location you will have a failure. My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue. I have found Mate much easier to manage after also finding the "extras" package for it and loading that. However, that just gives me a richer gui, did not help with suspend. I hope this helps. If not ask more questions. Thank you, Ted P
On Sat, Mar 12, 2022 at 7:21 AM Wayne <Wayne@tradetimer.com> wrote:
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop.
On 3/11/22 8:02 PM, LeRoy Diener wrote: > Hi NMGLUG folks, > > I'm having an issue recently that I hope I can get help with. > It's on my Debian 11 system, updated. > Recently, I've had problems when I leave the laptop overnight. > When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off. > > When I've done this recently, it works sometimes. > Other times, it crashes after the batteries run out of power in the middle of the night. > Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" > Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system." > > I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. > I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... > I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy > In that file, I found this segment: > <action id="org.freedesktop.login1.hibernate"> > <description gettext-domain="systemd">Hibernate the system</description> > <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> > <defaults> > <allow_any>auth_admin_keep</allow_any> > <allow_inactive>auth_admin_keep</allow_inactive> > <allow_active>yes</allow_active> > </defaults> > </action> > > Other info: > I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight. > > Any ideas? > > Thanks in advance. > LeRoy > > -- > > There is something glorious birthing within all of us. (New for 2021) > I am the Love of God, no matter what. > BSA > LeRoy Diener > 213-LEROYIZ > 213-537-6949 > https://leroydiener.com <https://leroydiener.com/> > > _______________________________________________ > nmglug mailing list > nmglug@lists.nmglug.org > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org > _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
Ubuntu 20.04, Mate DE. I have this issue but haven't tied it to resuming from suspend. I'll watch this more closely. The lock-ups come and go and sometimes I'll notice apps starting to slow and I'll kill them and that avoids the lock-up issue. "Frequently, upon inexplicably slow resumes from 'suspend', the open applications in a session seem to start locking up whereupon the only way to get to get everything working again is a hard power-key shutdown and a cold reboot." On 3/12/22 12:32PM, Tom Ashcraft wrote:
Debian 11 with Xfce desktop environment for the most part is a real pleasure. But 'hibernate' is hopeless and 'suspend' also has significant problems. New rules added per wiki.debian.org suggestions do not help. After a cold restart the erratic 'suspend' errors often disappear for a few hours but always come back. Frequently, upon inexplicably slow resumes from 'suspend', the open applications in a session seem to start locking up whereupon the only way to get to get everything working again is a hard power-key shutdown and a cold reboot.
As an aside, Debian 11 also causes some new problems with an old Windows program I use under Wine, though I've been able to resolve these (annoyingly) by copying over the entire .wine directory from a prior Debian 10 installation. I experience this issue under both Debian 11 Xfce and Debian 11 KDE environments.
On 3/12/22 08:35, Ted Pomeroy wrote:
LeRoy & NMGLugers, 1) I suggest you keep power on overnight. If you suspend and power fails your ram image of work is lost. You can try hibernate, but there have been issues with Linux and hibernate. Hibernate puts the snapshot image of your work on the hard drive, but unless the resume is set to resume form the correct location you will have a failure. My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue. I have found Mate much easier to manage after also finding the "extras" package for it and loading that. However, that just gives me a richer gui, did not help with suspend. I hope this helps. If not ask more questions. Thank you, Ted P
On Sat, Mar 12, 2022 at 7:21 AM Wayne <Wayne@tradetimer.com> wrote:
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop.
On 3/11/22 8:02 PM, LeRoy Diener wrote: > Hi NMGLUG folks, > > I'm having an issue recently that I hope I can get help with. > It's on my Debian 11 system, updated. > Recently, I've had problems when I leave the laptop overnight. > When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off. > > When I've done this recently, it works sometimes. > Other times, it crashes after the batteries run out of power in the middle of the night. > Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" > Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system." > > I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. > I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... > I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy > In that file, I found this segment: > <action id="org.freedesktop.login1.hibernate"> > <description gettext-domain="systemd">Hibernate the system</description> > <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> > <defaults> > <allow_any>auth_admin_keep</allow_any> > <allow_inactive>auth_admin_keep</allow_inactive> > <allow_active>yes</allow_active> > </defaults> > </action> > > Other info: > I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight. > > Any ideas? > > Thanks in advance. > LeRoy > > -- > > There is something glorious birthing within all of us. (New for 2021) > I am the Love of God, no matter what. > BSA > LeRoy Diener > 213-LEROYIZ > 213-537-6949 > https://leroydiener.com <https://leroydiener.com/> > > _______________________________________________ > nmglug mailing list > nmglug@lists.nmglug.org > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org > _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
--
Ted Pomeroy writes:
My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps.
I do the same thing, though occasionally I leave it sleeping overnight, if I'm in the middle of something complicated with a lot of windows open, or if I just never got back to the machine after suspending it. With some machines, though, you have to keep an eye on them. My current Lenovo tends to randomly wake up a minute or two after I suspend it. If I suspend again immediately, usually it'll stay asleep the second time. My previous Lenovo didn't do that, but it would randomly come out of sleep hours later, so I'd go out for hours, come back and discover it up and running instead of sleeping. I've never had problems with non-Lenovo machines staying asleep, so I think Lenovo might just have something buggy in their BIOS that makes them wake up when they shouldn't. (Wake on LAN is disabled in the BIOS, and it happens when the laptop isn't even connected to a LAN, so it's not that.)
Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue.
It actually could be, since LeRoy mentioned also closing the lid. Some desktops automatically sleep when the lid is closed, some might actually wake up if they're sleeping and see a lid switch event. I'm not sure if there's a reliable way to ask Linux "Why did you wake up?" after a resume. Debugging suspend/resume problems is hard. ...Akkana
On 3/12/22 12:44, Akkana Peck wrote:
Ted Pomeroy writes:
My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. I do the same thing, though occasionally I leave it sleeping overnight, if I'm in the middle of something complicated with a lot of windows open, or if I just never got back to the machine after suspending it.
With some machines, though, you have to keep an eye on them. My current Lenovo tends to randomly wake up a minute or two after I suspend it. If I suspend again immediately, usually it'll stay asleep the second time. My previous Lenovo didn't do that, but it would randomly come out of sleep hours later, so I'd go out for hours, come back and discover it up and running instead of sleeping.
I've never had problems with non-Lenovo machines staying asleep, so I think Lenovo might just have something buggy in their BIOS that makes them wake up when they shouldn't. (Wake on LAN is disabled in the BIOS, and it happens when the laptop isn't even connected to a LAN, so it's not that.)
Ditto all above except that in addition to encountering this behavior with Debian 11 Xfce installed on a Toshiba Satellite L505 laptop (maybe twelve years old?), I first observed it on the same machine during my first experiences of Linux on a dual-boot installation of Linux Mint 17. But mostly I'd just wake up in the middle of the night to hear the fan running and wonder why it would need to be on, i.e. the screen would not light up, though with Debian 11 Xfce it seems most often that the screen lights up too. Also, one of the funny things about Debian 11 Xfce going into 'suspend' is that the computer often seems to fall into and be stuck in a state where the fan keeps running. Which is a clear indicator that something is wrong with 'suspend' again... I expect that Wesley Robbins 12:46 pm post to "Edit |/etc/default/grub| and add |mem_sleep_default=deep| to the default, i.e.: |GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep" "|may turn out to be the most productive suggestion for me to try out the next time I use that machine. However, as I remain a perennial Linux naif and am also prone to enjoy the occasional frisson of some instance of poorly-founded or anti-establishment paranoia, I sometimes wonder about possibilities like bots, spyware, criminal hackers, the NSO Group, NSA, FBI, local police, crypto miners, etc. The last time I mentioned that someone mentioned the possibility of a cron job. As I remember, I figured out how to check and it didn't pan out. Any thoughts along those lines?
________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
Not sure the age of your laptop but is a pretty common fix to get the memory hibernating right. - Edit /etc/default/grub and add mem_sleep_default=deep to the default, i.e.: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep" On Sat, Mar 12, 2022 at 8:35 AM Ted Pomeroy <ted.pome@gmail.com> wrote:
LeRoy & NMGLugers, 1) I suggest you keep power on overnight. If you suspend and power fails your ram image of work is lost. You can try hibernate, but there have been issues with Linux and hibernate. Hibernate puts the snapshot image of your work on the hard drive, but unless the resume is set to resume form the correct location you will have a failure. My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue. I have found Mate much easier to manage after also finding the "extras" package for it and loading that. However, that just gives me a richer gui, did not help with suspend. I hope this helps. If not ask more questions. Thank you, Ted P
On Sat, Mar 12, 2022 at 7:21 AM Wayne <Wayne@tradetimer.com> wrote:
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop.
On 3/11/22 8:02 PM, LeRoy Diener wrote:
Hi NMGLUG folks,
I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off.
When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system."
I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight.
Any ideas?
Thanks in advance. LeRoy
--
There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what. BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com <https://leroydiener.com/>
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
Ditto. Ubuntu 20.04 with Mate DE. I can close lid and suspend easily and awake easily. I don't unplug the power though as that's a risk if the battery craps out before waking, as Ted states On 3/12/22 08:35AM, Ted Pomeroy wrote:
LeRoy & NMGLugers, 1) I suggest you keep power on overnight. If you suspend and power fails your ram image of work is lost. You can try hibernate, but there have been issues with Linux and hibernate. Hibernate puts the snapshot image of your work on the hard drive, but unless the resume is set to resume form the correct location you will have a failure. My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue. I have found Mate much easier to manage after also finding the "extras" package for it and loading that. However, that just gives me a richer gui, did not help with suspend. I hope this helps. If not ask more questions. Thank you, Ted P
On Sat, Mar 12, 2022 at 7:21 AM Wayne <Wayne@tradetimer.com> wrote:
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop.
On 3/11/22 8:02 PM, LeRoy Diener wrote: > Hi NMGLUG folks, > > I'm having an issue recently that I hope I can get help with. > It's on my Debian 11 system, updated. > Recently, I've had problems when I leave the laptop overnight. > When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off. > > When I've done this recently, it works sometimes. > Other times, it crashes after the batteries run out of power in the middle of the night. > Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" > Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system." > > I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. > I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... > I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy > In that file, I found this segment: > <action id="org.freedesktop.login1.hibernate"> > <description gettext-domain="systemd">Hibernate the system</description> > <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> > <defaults> > <allow_any>auth_admin_keep</allow_any> > <allow_inactive>auth_admin_keep</allow_inactive> > <allow_active>yes</allow_active> > </defaults> > </action> > > Other info: > I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight. > > Any ideas? > > Thanks in advance. > LeRoy > > -- > > There is something glorious birthing within all of us. (New for 2021) > I am the Love of God, no matter what. > BSA > LeRoy Diener > 213-LEROYIZ > 213-537-6949 > https://leroydiener.com <https://leroydiener.com/> > > _______________________________________________ > nmglug mailing list > nmglug@lists.nmglug.org > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org > _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org --
Meant this to send this too. I like being able to decide what lid closing does. systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target sudo nano /etc/systemd/logind.conf modify #HandleLidSwitch=suspend, - HandleLidSwitch=poweroff computer shuts down when lid is closed - HandleLidSwitch=hibernate Computer sleeps when lid is closed - HandleLidSwitch=suspend computer hangs when lid is closed - HandleLidSwitch=ignore does nothing sysrmctl daemon-reload systemctl restart systemd-loginrestart . <https://gist.github.com/xiaolai/0dd2d7546dd1931f40b4e674d0e11d82#%E4%B8%BA-wifi-%E8%AE%BE%E7%BD%AE%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F> On Sat, Mar 12, 2022 at 12:53 PM Brian O'Keefe <okeefe@cybermesa.com> wrote:
Ditto. Ubuntu 20.04 with Mate DE. I can close lid and suspend easily and awake easily. I don't unplug the power though as that's a risk if the battery craps out before waking, as Ted states On 3/12/22 08:35AM, Ted Pomeroy wrote:
LeRoy & NMGLugers, 1) I suggest you keep power on overnight. If you suspend and power fails your ram image of work is lost. You can try hibernate, but there have been issues with Linux and hibernate. Hibernate puts the snapshot image of your work on the hard drive, but unless the resume is set to resume form the correct location you will have a failure. My routine is to suspend during the day, if I go out or take an hour off for non-computer work. Over night I switch off after saving work and closing all apps. Your LXde is fine. I use Xfce4 or Mate, but the gui desktop is not the issue. I have found Mate much easier to manage after also finding the "extras" package for it and loading that. However, that just gives me a richer gui, did not help with suspend. I hope this helps. If not ask more questions. Thank you, Ted P
On Sat, Mar 12, 2022 at 7:21 AM Wayne <Wayne@tradetimer.com> wrote:
I have often heard that Linus can have problems with hibernation. Can you just 'Suspend' the system instead? That ssem to be less problematical, though even that can be iffy, depending on the laptop.
On 3/11/22 8:02 PM, LeRoy Diener wrote:
Hi NMGLUG folks,
I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off.
When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system."
I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight.
Any ideas?
Thanks in advance. LeRoy
--
There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what. BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com <https://leroydiener.com/>
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
_______________________________________________ nmglug mailing listnmglug@lists.nmglug.orghttp://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
-- _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
NMGLugers, I received a notice that this weekend is the virtual LibrePlanet conference. If you are a member of FSF "you get extra perks." I may attend as I have not done this in the past - never able to travel on their schedule, etc. It should be interesting. I hope this week, tomorrow, 5:30pm MDT, we can meet virtually again for the NMGLUG, maybe hear how LeRoy is doing with "Suspend" and others working on that issue. We were also going to pick up on containers at some point, but maybe not just yet. I will follow that discussion, but maybe a brief discussion of virtual machines vs containers would add some perspective. Thank you, Ted P. On Fri, Mar 11, 2022 at 9:02 PM LeRoy Diener <leroy@choosetherightside.com> wrote:
Hi NMGLUG folks,
I'm having an issue recently that I hope I can get help with. It's on my Debian 11 system, updated. Recently, I've had problems when I leave the laptop overnight. When I stop, I click on Logout > Suspend, then the screen goes black and I close the lid. I expect that when I open the lid in the morning and enter my password, I should be back where I left off.
When I've done this recently, it works sometimes. Other times, it crashes after the batteries run out of power in the middle of the night. Other times, it works, but I see a message in the morning "None of the screen lock tools ran successfully, the screen will not be locked. Do you still want to suspend the system?" Other times, it works, but I see a message in the morning "Authentication is required to hibernate the system."
I have a setting in Power Manager to hibernate when inactive for one hour, so that's what I'm focusing on now. I found some helpful info in this link https://askubuntu.com/questions/543921/authentication-required-before-suspen... I found the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy In that file, I found this segment: <action id="org.freedesktop.login1.hibernate"> <description gettext-domain="systemd">Hibernate the system</description> <message gettext-domain="systemd">Authentication is required to hibernate the system.</message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> </action>
Other info: I usually have the laptop plugged into an external monitor, and I usually have the power strip (which powers the external monitor and laptop) turned off overnight.
Any ideas?
Thanks in advance. LeRoy
--
There is something glorious birthing within all of us. (New for 2021) I am the Love of God, no matter what. BSA LeRoy Diener 213-LEROYIZ 213-537-6949 https://leroydiener.com _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
participants (8)
-
Akkana Peck -
Brian O'Keefe -
LeRoy Diener -
Paul -
Ted Pomeroy -
Tom Ashcraft -
Wayne -
Wesley Robbins