Botão de hibernar não funciona no lubuntu 20.04
(0x7fffa5e66df0) Debug: systemd: "CanHibernate" = "no"
(0x7fffa5e66df0) Warning: ** Dbus error **************************
(0x7fffa5e66df0) Warning: Error name "org.freedesktop.DBus.Error.InvalidArgs"
(0x7fffa5e66df0) Warning: Error msg "No such interface “org.freedesktop.DBus.Properties”"
(0x7fffa5e66df0) Warning: ****************************************
(0x7fffa5e66df0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.ConsoleKit" "/org/freedesktop/ConsoleKit/Manager" "org.freedesktop.ConsoleKit.Manager" "CanHibernate"
I assume you have a swap partition ready to use (if you have a swap file you cannot hibernate). Follow these steps:
- Install pm-utils and hibernate:
sudo apt install pm-utils hibernate
- Then:
cat /sys/power/state
- You should see:
freeze mem disk
- Then run:
grep swap /etc/fstab
- Copy the UUID value. You will need it later.
- Then run (use your favorite editor if not nano):
sudo nano /etc/default/grub
- Change the line that says:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
- so that it instead says(be careful not to miss the UUID= part):
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=YOUR_COPIED_UUID"
- Then, after saving the file and quitting the text editor, run:
sudo update-grub
- To test it, run:
sudo systemctl hibernate
Navegue para /usr/share/applications
e edite com o editor de atalho o lxqt-hibernate.desktop
Troque o comando de lxqt-leave --hibernate
para pkexec hibernate
e clique ok.