Skip to main content
Topic: LXQT - power button=system shutdown (Read 440 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

LXQT - power button=system shutdown

Wouldn't it be nice if the power button called
Code: [Select]

This ranks as a rather glaring deficiency in the laptop use case scenario.
Old-timer penguin

Re: LXQT - power button=system shutdown

Reply #1
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]
where acpi_event_code shall be provided by acpi_listen when you press the power button. Alternatively, edit /etc/acpi/ and put lxqt-leave where appropriate.