Optimized ignoring of LID driver

This commit is contained in:
2025-12-03 20:07:02 +01:00
parent 9182d14175
commit 84d3c8fc16
2 changed files with 3 additions and 3 deletions

View File

@@ -17,10 +17,8 @@
line: 'HandleLidSwitch=hibernate'
backup: yes
notify: Restart systemd-logind
become: true
- name: Configure systemd to lock session when lid is closed on external power
become: true
lineinfile:
path: /etc/systemd/logind.conf
regexp: '^#?HandleLidSwitchExternalPower='
@@ -30,7 +28,6 @@
become: true
- name: Configure systemd to lock session when lid is closed while docked
become: true
lineinfile:
path: /etc/systemd/logind.conf
regexp: '^#?HandleLidSwitchDocked='