From da13d05a83432f2c0c453d19e6b602b9e6bad610 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 30 Apr 2024 17:07:32 -0400 Subject: add disable-powerbutton daemon and tools --- src/etc/sysconfig/disable-powerbutton | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/etc/sysconfig/disable-powerbutton (limited to 'src/etc/sysconfig/disable-powerbutton') diff --git a/src/etc/sysconfig/disable-powerbutton b/src/etc/sysconfig/disable-powerbutton new file mode 100644 index 0000000..34c1fc3 --- /dev/null +++ b/src/etc/sysconfig/disable-powerbutton @@ -0,0 +1,8 @@ +# Config file for disable-powerbutton-daemon +# Running that program is designed to suppress the default behavior of the power button which is to shut down immediately. +# DP_WHAT Which elogind-inhibit behaviors to control. +DP_WHAT="shutdown:sleep:idle:handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch" +# DP_COMMAND which program to run, and when this program ends, the inhibition ends. +DP_COMMAND="/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop" +# When this file exists at the end of a sleep loop, the loop ends and therefore the inhibition ends. +DP_SAFETY_FILE=/tmp/stop-disable-powerbutton -- cgit