Launchpad has imported 15 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=9335.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-09-26T18:59:40+00:00 nirik wrote:

This may be marked a dupe of https://bugzilla.xfce.org/show_bug.cgi?id=9326
(This could be handled in xfce4-session by calling systemd-inhibit on session 
start, but could be solved here by calling the dbus calls to inhibit systemd 
when xfce4-power-manager is actually running). 

As of systemd version 190, systemd now takes over handling lid button, power 
and sleep buttons, etc. 
This overrides xfce4-power-manager. It would be nice if xfce4 session could 
inhibit this on startup. 

>From the systemd NEWS file:

"        * logind's inhibition logic has been updated. By default,
          logind will now handle the lid switch, the power and sleep
          keys all the time, even in graphical sessions. If DEs want
          to handle these events on their own they should take the new
          handle-power-key, handle-sleep-key and handle-lid-switch
          inhibitors during their runtime. A simple way to achiveve
          that is to invoke the DE wrapped in an invocation of:

          systemd-inhibit --what=handle-power-key:handle-sleep-key
:handle-lid-switch ..."

See also: http://www.freedesktop.org/wiki/Software/systemd/inhibit

It may be that xfce4-power-manager should take this instead of
xfce4-session... which would allow for systemd to handle things still in
cases where xfce4-power-manager was not running.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/0

------------------------------------------------------------------------
On 2012-10-07T20:13:18+00:00 Raphgro wrote:

Kevin,
is it maybe possible to inhibit systemd by a script snippet via xinitrc that 
calls startxfce4? I guess strongly this should be only a configuration issue.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/1

------------------------------------------------------------------------
On 2012-10-07T20:56:53+00:00 nirik wrote:

(In reply to comment #1)
> Kevin,
> is it maybe possible to inhibit systemd by a script snippet via xinitrc that
> calls startxfce4? I guess strongly this should be only a configuration issue.

Yes, but this means that it inhibits it for the entire session.

So, if for example, you don't have xfce4-power-manager installed, or
running, nothing at all will handle the buttons and they won't work.

It seems cleaner to me to have xfce4-power-manager do this itself, and
drop the inhibit on exit.

Of course it may not be easy to implement, so short term we may want to
go with a session wide inhibit in xfce4-session (thus the other bug).

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/2

------------------------------------------------------------------------
On 2012-10-20T08:17:14+00:00 Raphgro wrote:

I can reproduce on Manjaro (ArchLinux). The system is going into standby
mode twice, when on power supply, and first to standby, then to
hibernation, after woke up from standby.

$ xfconf-query -vl -c xfce4-power-manager
/xfce4-power-manager/brightness-level-on-battery  50
/xfce4-power-manager/brightness-on-ac             120
/xfce4-power-manager/brightness-on-battery        90
/xfce4-power-manager/critical-power-action        1
/xfce4-power-manager/dpms-on-ac-off               11
/xfce4-power-manager/dpms-on-ac-sleep             10
/xfce4-power-manager/hibernate-button-action      2
/xfce4-power-manager/inactivity-on-ac             20
/xfce4-power-manager/inactivity-on-battery        15
/xfce4-power-manager/lid-action-on-ac             1
/xfce4-power-manager/lid-action-on-battery        2
/xfce4-power-manager/power-button-action          3
/xfce4-power-manager/show-tray-icon               2
/xfce4-power-manager/sleep-button-action          1
/xfce4-power-manager/spin-down-on-ac              true

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/3

------------------------------------------------------------------------
On 2012-10-20T08:18:38+00:00 Raphgro wrote:

When on battery, first to standby, then really in hibernation, after
woke up from first standby (guess systemd introduces the standby).

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/4

------------------------------------------------------------------------
On 2012-10-20T14:57:21+00:00 Raphgro wrote:

There is "DBus server implementation for
org.freedesktop.PowerManagement.Inhibit" available.

see http://git.xfce.org/xfce/xfce4-power-manager/tree/src/xfpm-inhibit.c

Maybe systemd can use that? Sorry, I am not interested in systemd's
configuration or internal logic.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/5

------------------------------------------------------------------------
On 2012-10-20T15:05:25+00:00 Raphgro wrote:

see also bug #9090
"inhibit warning doesn't display application name and reason"

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/6

------------------------------------------------------------------------
On 2012-12-09T12:01:48+00:00 Raphgro wrote:

after some discussion has taken place on the mailing lists, this here
seems to be more like a feature request. There are options available for
the distributions and then also for the end user to work around the
unwanted doubled sleep action.

As an alternative to the inhibit option, we could think about an
enhancement to the GUI. It could detect that systemd is about handling
the switches on a system wide base (generally, only the root user can
modify logind.conf while xfpm can have individual settings for each
user). When systemd doesn't prevent power management, there should be an
hint to the user about that. When the user has chosen "nothing" as the
individual action, this doesn't mean systemd cares. The user could get
confused in both ways, because there are two independent configurations
(root and user). Automated inhibit wouldn't make that less complicated.

I suggest to add a systemd option to all those action handler lists in
the settings dialogs.

For instance, there is a hint already that not enough swap space is
available for hibernation. Another hint could also warn about systemd.
Improving the user interface make more sense than implementing some
magical code behind the possibilites of a not so experienced user.

What do you think?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/7

------------------------------------------------------------------------
On 2013-01-17T22:02:39+00:00 Fry-kun wrote:

My xfce4-power-manager settings explicitly say "do nothing on lid close" -- and 
yet my laptop started suspending since upgrade to F18.
THIS IS A BUG, NOT A FEATURE. PLEASE FIX ASAP!

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/8

------------------------------------------------------------------------
On 2013-02-13T15:36:52+00:00 Christoph Wickert wrote:

(In reply to comment #8)
> My xfce4-power-manager settings explicitly say "do nothing on lid close" --
> and yet my laptop started suspending since upgrade to F18.

This can be adjusted in /etc/systemd/logind.conf. Just set
HandleLidSwitch and other the events you want to handled by systemd to
"ignore".

> THIS IS A BUG, NOT A FEATURE. PLEASE FIX ASAP!

>From a x-p-m point of view, support for systemd is a feature.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/9

------------------------------------------------------------------------
On 2013-02-21T11:54:00+00:00 Mikhefr wrote:

Created attachment 4929
Don-t-allow-systemd-to-handle-suspend-hibernate-even.patch

Here is patch for inhibiting systemd to handle power/suspend/hibernate buttons
and lid-switch while xfce4-power-manager is running. It works with both systemd 
and SysV init systems (if there is no systemd-logind then just do nothing).

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/10

------------------------------------------------------------------------
On 2013-02-23T21:24:32+00:00 nirik wrote:

(In reply to comment #10)
> Created attachment 4929 [details]
> Don-t-allow-systemd-to-handle-suspend-hibernate-even.patch
> 
> Here is patch for inhibiting systemd to handle power/suspend/hibernate
> buttons
> and lid-switch while xfce4-power-manager is running. It works with both
> systemd and SysV init systems (if there is no systemd-logind then just do
> nothing).

Patch works fine here for me. :)

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/11

------------------------------------------------------------------------
On 2013-06-12T16:10:30+00:00 God12 wrote:

I think instead of unconditional inhibition user got to have a choice in
GUI whether to use systemd settings (this should gray-out x-p-m
settings) or override them.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/12

------------------------------------------------------------------------
On 2013-10-25T08:37:50+00:00 Yves-Alexis Perez wrote:

(In reply to god12 from comment #12)
> I think instead of unconditional inhibition user got to have a choice in GUI
> whether to use systemd settings (this should gray-out x-p-m settings) or
> override them.

As far as I understand it, there's also the possibility to only delay
the suspend from systemd, in order for xfpm to do something (for example
locking the screen). That's what Gnome is doing right now, afaict.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/20

------------------------------------------------------------------------
On 2014-05-29T08:00:57+00:00 Ochosi-e wrote:

This bug has been fixed in git master.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1222021/comments/52


** Changed in: xfce4-power-manager
       Status: Unknown => Fix Released

** Bug watch added: Xfce Bugzilla #9326
   https://bugzilla.xfce.org/show_bug.cgi?id=9326

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1222021

Title:
  [SRU] xfce4-power-manager does not inhibit systemd from handling
  buttons and lid events

To manage notifications about this bug go to:
https://bugs.launchpad.net/xfce4-power-manager/+bug/1222021/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to