systemd inhibit support for PowerDevil

Review Request #106533 - Created Sept. 22, 2012 and submitted

Information
Lukáš Tinkl
kde-workspace
KDE/4.9
307412
Reviewers
dafre
Implement "support" for systemd inhibit handling in PowerDevil Policy Agent. Basically it tells systemd that we want to handle things on ourselves (power/sleep/lid switch buttons).


For details, see https://bugzilla.redhat.com/show_bug.cgi?id=859227

P.S. Not sure PolicyAgent is the right place but well... the code is simple and can be eventually moved elsewhere

  

Issues

  • 1
  • 1
  • 0
  • 2
Description From Last Updated
I wonder if some of those strings need i18n? Dario Freddi Dario Freddi
Lukáš Tinkl
Lukáš Tinkl
Lukáš Tinkl
Dario Freddi
Dario Freddi
Commit Hook
Commit Hook
Lukáš Tinkl
Review request changed

Status: Closed (submitted)

Nikita Skovoroda
One more thing: manual (man logind.conf) says that inhibiting lid close event is ignored by default, so it won't work as expected.
This probably should be discussed with the systemd developers.
  1. > PowerKeyIgnoreInhibited=, SuspendKeyIgnoreInhibited= and HibernateKeyIgnoreInhibited= defaults to off, LidSwitchIgnoreInhibited= defaults to yes. This means that the lid switch does not respect suspend blockers by default, but the power and sleep keys do.
  2. Sorry, it seems that i was wrong, and LidSwitchIgnoreInhibited is not related to inhibiting the «lid close» event, but, instead, it tells systemd to ignore suspend (not key events) inhibits when the lid close event is not inhibited and handeled by systemd.
Nikita Skovoroda
Another question: how does PowerDevil behave now, if the checkbox «handle button events» (in PowerDevil settings) is unchecked?

Does it disable systemd button handling then or does it leave it as it was?

I'm not sure which behaviour is correct in this case and why.
Loading...