8
2
I am running Fedora 22 on a Dell Latitude E6230. At some point I got a software patch that broke the laptop suspending when I close the lid. It was working, and now it is not. I am not sure what patch caused this, or why. I am also a newbie to Linux (but not computers), so sorry if I did not investigate something I should have.
What I have looked into:
I tried un-commenting these lines in
/etc/systemd/logind.conf
and then rebooting:HandleLidSwitch=suspend LidSwitchIgnoreInhibited=yes HandleLidSwitchDocked=ignore
sudo journalctl -b -u systemd-logind
shows that the lid is detecting that it is closing and opening.
I tried installing
gnome-power-manager
... but this seemed to have no effect.I installed gnome tweak tool and set "don't suspend on lid close" to "off". In playing with this, I also changed "power button action" to "hibernate", yet the power button just turns the laptop off, and closing the lid still does not suspend it.
I then went back to
/etc/systemd/logind.conf
and un-commented the lines:HandlePowerKey=suspend HandleSuspendKey=poweroff
Yes, that is backward... but this setting did not take hold. I.e., even after a reboot, the power button still turns the laptop off, and the suspend button will suspend the laptop.
This seems to prove to me that the
/etc/systemd/logind.conf
file and the gnome tweak tool setting do not have any effect.I tried this command... but I am not 100% what it does:
gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing
I found this on one of the threads. I did notice at this point that closing the lid while on the dock will suspend the laptop. So I thought that maybe there was some double negative action going on. I changed these lines just to test:
HandleLidSwitch=ignore HandleLidSwitchDocked=suspend
And the result is that the laptop no longer suspends while on the dock when the lid is closed, nor when the laptop is off the dock.
At no time are any external monitors hooked up.
So what the heck am I missing? What can override these settings?
update: I got another software update. Now the laptop will suspend any time I close the lid, even on the dock. It should not suspend while on the dock as I have put the setting "HandleLidSwitchDocked=ignore" back. Also, and power and suspend buttons remain impervious to suggestions of change.
still broken... just in a different way. – Art Hill – 2015-08-18T23:26:29.480
This did not work for me, but perhaps you can make it work: https://wiki.debian.org/ScreenLockingOnSleep
– Peter Becich – 2018-04-28T18:56:39.573I attempted to swap i3lock for xscreensaver.