From 95c365b4dfddb768634a385f921513bc19ac9fe5 Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Mon, 22 Jun 2020 13:59:08 +0200 Subject: [PATCH] --- ...ptop-hibernation-Ubuntu-20.04-full-ZFS-install.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md b/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md index 84d57c4..c44d6c2 100644 --- a/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md +++ b/right-fit-swap-for-laptop-hibernation-Ubuntu-20.04-full-ZFS-install.md @@ -114,8 +114,20 @@ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/mapper/cryptswap1" ## xfce4-power-manager suspend to hibernate option +source : [docs.xfce.org - Frequently Asked Questions - Xfce4 Power Manager](https://docs.xfce.org/xfce/xfce4-power-manager/faq) + +Make logind handle button events instead of xfce4-power-manager : + +* To have logind handle the lid open/close event + ~~~ xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s true ~~~ +* To have logind handle the power key + +~~~ +xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-power-key -n -t bool -s true +~~~ + If you want everything time related, then you can set them with settings in /etc/systemd : **sleep.conf** and **logind.conf** \ No newline at end of file