xfce4-power-manager doesn't suspend on lid closed (regression)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | xfce4-power-manager |
Fix Released
|
Medium
|
||
| | xfce4-power-manager (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
with the bugfix https:/
WORKAROUND: downgrade xfce4-power-manager and xfce4-power-
ps I do not have light-locker installed.
Related branches
| flux242 (flux242) wrote : | #1 |
| flux242 (flux242) wrote : | #2 |
well, after analyzing the patch Ive found that powermanager relies now on logind lid close event handler. Which means that HandleLidSwith=
| flux242 (flux242) wrote : | #3 |
should NOT be used, not "should now be used"
| Sean Davis (bluesabre) wrote : | #4 |
Hi flux242,
With that bugfix, we had found a conflict with logind also trying to handle suspending on lid close, creating a race condition for xfce4-power-manager and light-locker. We introduced a new setting, "logind-
xfconf-query -c xfce4-power-manager -p /xfce4-
Let me know if that works for you.
| flux242 (flux242) wrote : | #5 |
Hi Sean,
now the status. For the lid close event handler to work correctly with the xfce4-power-manager package version 1.2.0-3ubuntu4.1 one has to do the following:
1. Deifne the HandleLidSwitch
2. Call xfconf-query -c xfce4-power-manager -p /xfce4-
note the true predicate, because logic is inverted:
++ if ( LOGIND_RUNNING() )
++ {
++ g_object_get (G_OBJECT (manager-
++ LOGIND_
++ NULL);
++
++ if (!logind_
++ return;
++ }
| Launchpad Janitor (janitor) wrote : | #6 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | New → Confirmed |
| tags: | added: regression-update |
| Kevin Brubeck Unhammer (unhammer) wrote : | #7 |
In my case, I had previously had these lines in my /etc/systemd/
HandleLidSwitch
LidSwitchIgnore
After upgrading to 14.04, lid suspend only worked after _removing_ those lines.
(Note: I use xscreensaver instead of light-locker, and still have to have a daemon running that calls xflock4 on lid close since otherwise it won't lock on lid close even though I have it set to do that in xfce4-power-
|
|
#8 |
Hi,
it seems that the logic for handling logind inhibitions is completely backward.
The keys are named logind-handle-<foo> (and default to TRUE) which seems to indicate that *logind* does the job, not xfce4-power-
But when actually adding inhibitors, the code (http://
That's completely confusing. Either the key names have to be changed, or the logic.
|
|
#9 |
Created attachment 5614
invert the logind xfconf keys logic
This patch should fix the issue, I guess. It sets the default keys to FALSE, and then only add the inhibits if the current keys are FALSE.
|
|
#10 |
Created attachment 5615
invert the logind xfconf keys logic
New version which also updates the variable names for more clarity.
|
|
#12 |
Simon and Sean were working on this so I'll let them take the lead :)
|
|
#13 |
(In reply to Yves-Alexis Perez from comment #2)
> Created attachment 5615 [details]
> invert the logind xfconf keys logic
>
> New version which also updates the variable names for more clarity.
This patch seems to make sense of it all. Please apply it going forward.
| Changed in xfce4-power-manager: | |
| importance: | Unknown → Medium |
| status: | Unknown → Confirmed |
|
|
#14 |
Thanks, pushed the fix to master.
http://
| Changed in xfce4-power-manager: | |
| status: | Confirmed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package xfce4-power-manager - 1.4.0-1ubuntu2
---------------
xfce4-power-manager (1.4.0-1ubuntu2) utopic; urgency=medium
* debian/
- Fixes suspend on lid-close (LP: #1349056)
-- Sean Davis <email address hidden> Wed, 17 Sep 2014 06:27:39 -0400
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | Confirmed → Fix Released |


psps: I also had to define previously
HandleLidSwitch =ignore
in the /etc/systemd/ logind. conf
for the lid suspend to work
which means that new package effectively renders this workaround invalid