After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 715022 - Power > When laptop lid is closed has no setting
Power > When laptop lid is closed has no setting
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
: 708904 722141 744234 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-11-22 16:03 UTC by Mildred
Modified: 2015-05-11 08:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshoot (29.40 KB, image/png)
2013-11-22 16:04 UTC, Mildred
  Details
AutostartFile: add support to create a user autostart file (2.94 KB, patch)
2014-02-15 16:18 UTC, Rui Matos
committed Details | Review
Add a way to inhibit systemd's default behavior on lid close (8.52 KB, patch)
2014-02-15 16:19 UTC, Rui Matos
committed Details | Review

Description Mildred 2013-11-22 16:03:39 UTC
It seems there is a bug, I can't configure the "When laptop lid is closed" option. Attached a screenshoot.
Comment 1 Mildred 2013-11-22 16:04:20 UTC
Created attachment 261240 [details]
screenshoot
Comment 2 Juanjo Marín 2013-12-07 20:31:51 UTC
Same here. I've realised that I have not 'lid-close-ac-action' entry in org.gnome.settings-daemon.plugins.power
Comment 3 John Stowers 2013-12-08 12:12:17 UTC
Yeah, it is now managed by logind/systemd and I need to write a privileged dbus helper to modify a /etc/logind.conf

(IIRC)
Comment 4 David Gay 2014-02-14 02:12:35 UTC
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
Comment 5 Michael Catanzaro 2014-02-14 02:37:15 UTC
*** Bug 708904 has been marked as a duplicate of this bug. ***
Comment 6 Rui Matos 2014-02-15 16:18:44 UTC
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.
Comment 7 Rui Matos 2014-02-15 16:19:04 UTC
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.
Comment 8 Rui Matos 2014-02-15 16:24:07 UTC
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.
Comment 9 Michael Catanzaro 2014-03-06 01:40:29 UTC
*** Bug 722141 has been marked as a duplicate of this bug. ***
Comment 10 Rui Matos 2015-04-15 17:19:04 UTC
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
Comment 11 Rui Matos 2015-05-11 08:21:01 UTC
*** Bug 744234 has been marked as a duplicate of this bug. ***