Bug 69242 - systemd-logind: add a method to tie in to LidSwitch, etc. events
Summary: systemd-logind: add a method to tie in to LidSwitch, etc. events
Status: RESOLVED NOTABUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-11 22:09 UTC by Andrew
Modified: 2013-09-11 22:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Andrew 2013-09-11 22:09:44 UTC
I use enlightenment as my window manager, which has a small, unique GUI for setting up ACPID events/actions.  Recently, the E developer looked at adding support for systemd / logind, to help allow those using a pure systemd system to suspend/poweroff/hibernate via. logind, without running acpid.

Unfortunately, he couldn't find a great way to tie in to logind.  As a result, he had to inhibit the entire system, to keep the acpid stuff working.

It would be great if systemd-logind broadcasted the event for use, perhaps via. dbus?
Comment 1 Lennart Poettering 2013-09-11 22:37:48 UTC
See this:

http://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments/

Enlightment should simply take an inhibitor lock on the lid switch handling which has the result that the lid switch is on control of enlightenment as long as it is running and in the foreground. Then, use the usual X keypress events to get the lid switch and handle it on your own.

That said, it's probably not a good idea to remove logind from handling the lid switch, in order to make sure things are reliable, and to allow other system components to hook themselves in before the the system goes into suspend.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.