Code: Select all
xset -display :0.0 dpms force off
I currently have "HandleLidSwitch" set to "ignore" in /etc/systemd/logind.conf - is there a way to set it to "script"? Could I make a script under "/etc/systemd/system/"?
Code: Select all
xset -display :0.0 dpms force off
That method works for my Openbox/tint2 desktop (with no other power management solutions running).dabgdk wrote:I currently have "HandleLidSwitch" set to "ignore" in /etc/systemd/logind.conf
Code: Select all
Helium: ~ $ cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd 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]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#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%
Code: Select all
systemd-inhibit
Code: Select all
# This file is part of systemd.
#
# systemd 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.
#
# See logind.conf(5) for details
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandlePowerKey=suspend
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Code: Select all
0 inhibitors listed.
Have you trieddabgdk wrote:If I close the lid, my display remains on (suspend does not occur, which is good- but I want the backlight to turn off).
Code: Select all
xfce4-power-manager-settings
Damn, my crystal ball must be broken...dabgdk wrote:this is LXDE
from: https://wiki.mageia.org/en/First_step_with_LXDEPower Management
(For Laptops) No one
But it is possible to install one from third parties
thankfully most xfce components are modest in dependency requirements and can be used without installing the full desktop, so yes, you can, if LXDE doesn't have its own.dabgdk wrote:Should I install xfce4-power-manager-settings?
Sounds perfectly serviceable to medabgdk wrote:I destroyed that install [...] Boot brings me to shell.