Echo of eternity avatar

sm-silva

Published: 04 Oct 2021 › Updated: 04 Oct 2021

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"

Fonte

I assume you have a swap partition ready to use (if you have a swap file you cannot hibernate). Follow these steps:

  1. Install pm-utils and hibernate:
    sudo apt install pm-utils hibernate
  2. Then:
    cat /sys/power/state
  3. You should see:
    freeze mem disk
  4. Then run:
    grep swap /etc/fstab
  5. Copy the UUID value. You will need it later.
  6. Then run (use your favorite editor if not nano):
    sudo nano /etc/default/grub
  7. Change the line that says:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  8. so that it instead says(be careful not to miss the UUID= part):
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=YOUR_COPIED_UUID"
  9. Then, after saving the file and quitting the text editor, run:
    sudo update-grub
  10. 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.

Indice de Posts

Leave to:

Written by

We're just a piece of time, but our actions echo for eternity.

Read more #lubuntu posts


Best Posts From Echo of eternity

We have not curated any of sm-silva's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Echo of eternity