I know this is not a particularly new problem, but I've tried to understand this and haven't been able to figure it out. I'm on Fedora 28.
I edited /etc/systemd/logind.conf and made LidSwitchIgnoreInhibited=no.
I reboot. When I run
Code:
systemd-inhibit --why="Prevent sleep" --mode=block --what=handle-lid-switch
and I close the lid of my laptop, it sleeps nonetheless.
I'm seeing the below, too:
Code:
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
I'd appreciate any guidance on this. Thanks!