You are viewing a single comment's thread from:

RE: [bug]Lubuntu Shotcuts don't work

in #lubuntu3 years ago (edited)

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