Red Hat Bugzilla – Bug 1267422
Closing lid of HP ZBook with CentOS 7 with "HandleLidSwitch=ignore" in logind.conf freezes system
Last modified: 2017-09-27 23:39:39 EDT
Description of problem:
I have a HP ZBook with CentOS 7 (7.1, apparently). I have the monitor and external keyboard plugged into an HP port replicator, and the USB connector is connected to the laptop.
When the laptop is connected and the lid is open, I can see the same display on both monitors (set to "mirror display" in settings).
I set "HandleLidSwitch=ignore" in "/etc/systemd/logind.conf", rebooted, and logged back in.
I then closed the lid. At that point, nothing appeared to happen, which seemed like a good thing, but I then realized that the system was almost completely unresponsive, except for the display showing exactly what it was showing before closing the lid. The only two controls of any kind that are "alive" are the mouse cursor (not the buttons) and holding down the power button, which I resorted to after futilely pressing keys and clicking the mouse for a minute or so.
I've since done this test numerous times (I just left the setting in logind.conf), and it does exactly the same thing every time.
I haven't tested the behavior with any other value of the "HandleLidSwitch" field.
Version-Release number of selected component (if applicable):
After setting "HandleLidSwitch=ignore" in "/etc/systemd/logind.conf", rebooted and logged back in, then closed the lid. Dead.
Steps to Reproduce:
Note that I also have "Don't suspend on lid close" set to ON in tweaktool.