From e0ca52a81f76c2e7dce3d6fe05c1ca184ace3899 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 10 Sep 2022 14:20:06 +0300 Subject: x220: don't suspend on laptop lid close Sponsored-by: author --- ansible/x220.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ansible/x220.yml b/ansible/x220.yml index 7899f59..7bcd10b 100644 --- a/ansible/x220.yml +++ b/ansible/x220.yml @@ -7,6 +7,19 @@ - role: unix_users - role: thinkpad - role: puomi + + tasks: + - lineinfile: + path: /etc/systemd/logind.conf + regexp: HandleLidSwitch= + line: HandleLidSwitch=ignore + - lineinfile: + path: /etc/systemd/logind.conf + regexp: HandleLidSwitchExternalPower= + line: HandleLidSwitchExternalPower=ignore + - systemd: + name: systemd-logind + state: restarted vars: ansible_python_interpreter: /usr/bin/python3 -- cgit v1.2.1