Skip to main content
Topic: XFCE Power Manager (close lid) (Read 3450 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

XFCE Power Manager (close lid)

I've installed Artix via live CD and I'm using it with XFCE.
But how do I make XFCE Power manager work? If I press on "Log out" from Whiskers menu and choose something (reboot, suspend etc) everything works just fine. But I tried to configure actions via XFCE Power manager ("When button is pressed" to "Ask" and "When laptop lid is closed" to "Suspend") but that doesn't seem to work. Ok, I don't even need any action on button press, but making laptop sleep when lid is closed would be very nice. Has someone found a way to make this work? I've tried searching Arch forum, but just found out that logind handles this action, and sysnce we don't use systemd I'm little bit lost.

Re: XFCE Power Manager (close lid)

Reply #1
my guess is that elogind is handling these with settings in /etc/elogind/logind.conf

am i wrong ?

Re: XFCE Power Manager (close lid)

Reply #2
Hey, thanks, looks like it really is this config file..
But after uncommenting two lines (for power button and lid) and rebooting nothing is still happening on these triggers. I must be missing something.. Should I uncomment something more?
Code: [Select]
#  This file is part of elogind.
#
#  elogind 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.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

[Sleep]
#SuspendState=mem standby freeze
#SuspendMode=
#HibernateState=disk
#HibernateMode=platform shutdown
#HybridSleepState=disk
#HybridSleepMode=suspend platform shutdown

Re: XFCE Power Manager (close lid)

Reply #3
I think you far from making it working.
IMHO you have some work to do with mkinitcpio and maybe grub config.
Some hints in no particular order:

Enabling hibernate (if not enabled during installation) - Technical Issues and Assistance / Tutorials - Manjaro
https://forum.manjaro.org/t/enabling-hibernate-if-not-enabled-during-installation/3241
also check uuid for swap in fstab

sudo gedit /etc/mkinitcpio.conf : add RESUME
HOOKS="base udev autodetect modconf block filesystems keyboard resume keymap fsck usr shutdown"
sudo mkinitcpio -p linux48

==> Dry run complete, use -g IMAGE to generate a real image
sudo mkinitcpio -g /boot/initramfs-4.4-x86_64.img





 

Re: XFCE Power Manager (close lid)

Reply #4
Hey, thanks, looks like it really is this config file..
But after uncommenting two lines (for power button and lid) and rebooting nothing is still happening on these triggers. I must be missing something.. Should I uncomment something more?
Code: [Select]
#  This file is part of elogind
# See logind.conf(5) for details.
[Login]
HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
According to this Gentoo forum thread about xfce-power-manager, it should work out of the box. It wouldn't even matter if your user is in the power group, because /etc/elogind.conf is system-wide applied; however, as I'm not very familiar with the internals of  elogind, your xfce4 settings may override system-wide ones. Make sure then your user is member of the appropriate groups.