You cannot have inline comments in the HandleLidSwitch*= lines in
logind.conf. E.g., with your config, you should see:
root@q:~# journalctl -u systemd-logind.service -b -p warning..warning
Jan 13 19:53:02 q systemd-logind[1071]: /etc/systemd/logind.conf:36: Failed to
parse HandleLidSwitch=lock # suspend, ignoring: Invalid argument
Jan 13 19:53:02 q systemd-logind[1071]: /etc/systemd/logind.conf:37: Failed to
parse HandleLidSwitchExternalPower=lock # suspend, ignoring: Invalid argument
Jan 13 19:53:02 q systemd-logind[1071]: /etc/systemd/logind.conf:38: Failed to
parse HandleLidSwitchDocked=lock # ignore, ignoring: Invalid argument
** Changed in: systemd (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2129563
Title:
Close laptop lid suspends even with HandleLidSwitch*=lock
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2129563/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs