You are not logged in.
Hi, this is my first post here, so please apologize me if I am posting in the wrong place
System: Q4OS 6.8-deb13u1 (Andromeda) with KDE Plasma 6.3.6, Wayland, running on a Dell Latitude 5430
Problem:
Pressing the power button causes an immediate system shutdown, ignoring the Plasma power management settings ("Show logout screen" configured in System Settings → Energy Management).
I struggled with this behavior for a while but I eventually find a workaround ;-)
The script /etc/acpi/powerbtn-acpi-support.sh calls CheckPolicy() from /usr/share/acpi-support/policy-funcs to check if a power management daemon is running.
The function PowerDevilRunning() inside policy-funcs looks (wrongly) for kded4, which was used by KDE 4 and Plasma 5, but Plasma 6 uses kded6. As a result, PowerDevilRunning() always returns false, acpid does not defer the event to Plasma/logind, and executes /sbin/shutdown directly.
It took me quite long time finding the root cause but the workaround is instead quite simple:
sudo touch /etc/acpi/events/powerbtnThis causes powerbtn-acpi-support.sh to exit immediately, leaving the event to be handled by logind/Plasma correctly.
Proper fix:
Update PowerDevilRunning() in /usr/share/acpi-support/policy-funcs to detect Plasma 6 / kded6 correctly.
Last edited by marco (2026-08-10 11:29)
Offline