Disable power button
Oh I didn't commit this, probably why I still have the problem on the Pinebook x)
This commit is contained in:
parent
9fac2c3701
commit
eddb48e461
|
@ -39,3 +39,8 @@
|
||||||
debug:
|
debug:
|
||||||
msg: "The Panfrost display driver configuration was changed, but needs a reboot to be applied."
|
msg: "The Panfrost display driver configuration was changed, but needs a reboot to be applied."
|
||||||
listen: panfrost config changed
|
listen: panfrost config changed
|
||||||
|
|
||||||
|
- name: Reload systemd-logind
|
||||||
|
command: systemctl kill -s HUP systemd-logind
|
||||||
|
become: yes
|
||||||
|
listen: systemd-logind config changed
|
||||||
|
|
|
@ -356,6 +356,19 @@
|
||||||
- etc changed
|
- etc changed
|
||||||
- systemd changed
|
- systemd changed
|
||||||
|
|
||||||
|
- name: Disable power button
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/systemd/logind.conf
|
||||||
|
line: 'HandlePowerKey=ignore'
|
||||||
|
regexp: '^#? *HandlePowerKey='
|
||||||
|
insertafter: '^\[Login\]$'
|
||||||
|
become: yes
|
||||||
|
notify: systemd-logind config changed
|
||||||
|
# Reason: I sometimes press it accidentally
|
||||||
|
# (hoping to start it when it's already started,
|
||||||
|
# or really accidentally on the Pinebook).
|
||||||
|
# Suspend would be nice, but it doesn't have the locker then
|
||||||
|
|
||||||
# TODO Hibernation, if that's relevant
|
# TODO Hibernation, if that's relevant
|
||||||
# $ sudo blkid | grep 'TYPE="swap"'
|
# $ sudo blkid | grep 'TYPE="swap"'
|
||||||
# $ sudoedit /etc/default/grub
|
# $ sudoedit /etc/default/grub
|
||||||
|
|
Loading…
Reference in a new issue