GNOME Bugzilla – Bug 715022
Power > When laptop lid is closed has no setting
Last modified: 2015-05-11 08:21:01 UTC
It seems there is a bug, I can't configure the "When laptop lid is closed" option. Attached a screenshoot.
Created attachment 261240 [details] screenshoot
Same here. I've realised that I have not 'lid-close-ac-action' entry in org.gnome.settings-daemon.plugins.power
Yeah, it is now managed by logind/systemd and I need to write a privileged dbus helper to modify a /etc/logind.conf (IIRC)
Yep, I'm having the same problem. John, I don't have much experience with Gnome development, but am a strong hacker from Python to JavaScript. If there's anything I can do to help further this matter, please let me know (perhaps via email). I would love to get this option back up and running. P.S. this is a duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=708904
*** Bug 708904 has been marked as a duplicate of this bug. ***
Created attachment 269213 [details] [review] AutostartFile: add support to create a user autostart file If no appinfo is provided on the constructor we enter a mode where we'll try to create the .desktop file in the user's autostart directory.
Created attachment 269214 [details] [review] Add a way to inhibit systemd's default behavior on lid close This adds a small user session daemon in libexec that uses logind's D-Bus API to inhibit the default behavior on lid close which is suspending the machine. A new tweak is added to enable and disable this daemon through an autostart file so that its lifecycle gets tied to the user session.
I had this small hack lying around from a previous experiment so I decided to post it since some people seem to want something like this. It's not an ideal solution because it doesn't work while you're not logged in. It also doesn't allow you to choose what you'd like to happen instead of suspending like you can do when editing /etc/systemd/logind.conf. In any case, there it is, hope it helps.
*** Bug 722141 has been marked as a duplicate of this bug. ***
Something like this has been in use in RHEL 7 for quite a while now, and it seems to work fine so I'll push it. Attachment 269213 [details] pushed as 3be4eba - AutostartFile: add support to create a user autostart file Attachment 269214 [details] pushed as 97d95bc - Add a way to inhibit systemd's default behavior on lid close
*** Bug 744234 has been marked as a duplicate of this bug. ***