Systemd + Laptop Lid Switch
I have been using the xfce4-power-manager to manage the power profile on my laptop at work. I’ve been noticing lately that when I undock the laptop and close the lid the system goes into suspend regardless of the options I’ve set in the xfce4-power-manager.
It turns out systemd also has the feature to trigger events when the laptop lid switch triggers.
To change the way systemd behaves when the power, and suspend buttons or laptop lid switch are triggered you can edit the /etc/systemd/logind.conf config file.
For my laptop I’ve set HandleLidSwitch=ignore which causes systemd to ignore the lid switch event. This then lets the power manager daemon from XFCE handle the event.
Go forth and Systemd!