Artix Linux Forum

General Category => General Discussion => Topic started by: uhmzilighase on 25 February 2019, 00:29:19

Title: LXQT - power button=system shutdown
Post by: uhmzilighase on 25 February 2019, 00:29:19
Wouldn't it be nice if the power button called
Code: [Select]
lxqt-leave 
?

This ranks as a rather glaring deficiency in the laptop use case scenario.
Title: Re: LXQT - power button=system shutdown
Post by: nous on 26 February 2019, 14:43:06
It seems that elogind takes precedence over lxqt-powermanagement or the latter can't yet intercept such events as power button press.
You can try:
1. If you run elogind, set HandlePowerKey=poweroff in /etc/elogind/logind.conf
2. If you run acpid, create a new file in /etc/acpi/events/ which should contain
Code: [Select]
event=<acpi_event_code>
action=/usr/bin/lxqt-leave
where acpi_event_code shall be provided by acpi_listen when you press the power button. Alternatively, edit /etc/acpi/handler.sh and put lxqt-leave where appropriate.