Closed onedr0p closed 4 years ago
edit /etc/systemd/logind.conf
/etc/systemd/logind.conf
change #HandlePowerKey=poweroff to HandlePowerKey=ignore
#HandlePowerKey=poweroff
HandlePowerKey=ignore
this will prevent misclicks with the power button on my NUCs, you can still force poweroff by holding the button
Closed in https://github.com/k8s-at-home/k3s-cluster-ansible/commit/c2c17949c2f78239c48ad5e223d9546e5fdb5b14
edit
/etc/systemd/logind.conf
change
#HandlePowerKey=poweroff
toHandlePowerKey=ignore
this will prevent misclicks with the power button on my NUCs, you can still force poweroff by holding the button