“sudo systemctl hibernate” works great and as expected.
GUI buttons and power button don’t work. I’ve tried messing around w the lxqt power management options, no success. What can i do?
Here’s the webpage i used to get it working via systemctl:
“sudo systemctl hibernate” works great and as expected.
GUI buttons and power button don’t work. I’ve tried messing around w the lxqt power management options, no success. What can i do?
Here’s the webpage i used to get it working via systemctl:
How do you have everything set up, what are you doing exactly, and what happens?
Ah, sorry!
I have a /swapfile of size 32GB and ram of 16GB.
Running latest kernel avail by lubuntu. Here’s my copypaste from the about:
LXQt Desktop Toolbox - Technical Info
LXQt About Version: 0.17.0
LXQt Version: 0.17.0
Qt: 5.15.3
Build type: Release
System Configuration: /etc/xdg
Share Directory: /usr/share/lxqt
Translations: /usr/share/Lubuntu/lxqt/translations
/usr/local/share/lxqt/translations
/usr/share/lxqt/translations
/var/lib/snapd/desktop/lxqt/translations
Okay, I got it to work! Man, what a nightmare. It is 1000% necessary that any laptop’s OS (windows/linux/anything) be able to support hibernate unless u want to risk a fire from your laptop bag. I can’t speak for non-ubuntu linux distros but I think somehow people need to know that Ubuntu and it’s flavors do NOT offer laptop support by way of terrible hibernate support.
Anyway, here is what I did:
In /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla I added:
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
And my /etc/systemd/sleep.conf file looks like this:
# This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at your option) # any later version. # # Entries in this file show the compile time defaults. Local configuration # should be created by either modifying this file, or by creating "drop-ins" in # the sleep.conf.d/ subdirectory. The latter is generally recommended. # Defaults can be restored by simply deleting this file and all drop-ins. # # See systemd-sleep.conf(5) for details. [Sleep] AllowSuspend=yes AllowHibernation=yes AllowSuspendThenHibernate=yes #AllowHybridSleep=yes #SuspendMode= #SuspendState=mem standby freeze HibernateMode=platform shutdown HibernateState=disk #HybridSleepMode=suspend platform shutdown #HybridSleepState=disk HibernateDelaySec=180min
Of course this was ALL AFTER the changes to initramfs and grub. Also I changed the “resume=…” FROM “/dev/nvme0n1p5” TO “UUID=213123123123132132131etc”
Hope this helps future psychopaths like myself that insist on running Ubuntu on laptops~!
And unfortunately, it’s not possible right now apparently for the Linux kernel itself to guarantee 100% support of hibernate across all devices.
More here:
Glad you figured it out for your particular set of hardware and kernel drivers, though.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.