Launchpad has imported 4 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=12088.
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 2015-07-24T11:14:48+00:00 Rob McCathie wrote:
Tested on Arch Linux, Manjaro Linux.
Prerequisites to replicate:
Be on a laptop with a lid switch. Ensure lightdm and light-locker are
installed, working and the light-locker daemon is running, thus
activating xfce4-power-manager's light-locker integration (i.e. the
'Security' tab in xfce4-power-manager's settings window).
To replicate:
In the xfce4-power-manager settings, ensure "Lock screen when system is
going for sleep" in the Security tab is enabled (which can activate this
logind-handle-lid-switch "feature" dependant on other factors described
below).
In the General tab set the "Laptop Lid" action for "On battery" to
"Suspend" and the action for "Plugged in" to anything other than Suspend
(eg. "Switch off display").
While the laptop is plugged in, close the lid. It should not suspend
because we set the action for plugged in to be something other than
suspend, but it DOES suspend.
i.e. If *either* "On battery" or "Plugged in" is set to suspend, the
action taken for both power states is always suspend, even if one of
them is set to something else.
Cause:
The cause is clear in the xfce4-power-manager code. In xfpm-settings.c there is
a comment stating the following:
"logind-handle-lid-switch = true when: lock_on_suspend == true and
(lid_switch_on_ac == suspend or lid_switch_on_battery == suspend)"
...and the following line of code does this.
At the time of this bug report it is at line 812 of xfpm-settings.c[1]
Since i don't understand why handling off to logind is occurring at all
(despite asking why multiple times on the xfce4-dev mailing list[2]), my
suggestion is to stop handing off to logind, especially since until very
recently (i'm fairly sure it's since the systemd 222 update)
systemd/logind wouldn't even suspend my netbook properly anyway, but
xfce4-power-manager (when not handing off to logind) did suspend the
system just fine. Another user confirmed the same behaviour on different
brand of hardware too.[3]
At the least, i'd think it should be changed to be AND rather than OR in
regards to:
"(lid_switch_on_ac == suspend or lid_switch_on_battery == suspend)"
[1]
http://git.xfce.org/xfce/xfce4-power-manager/tree/settings/xfpm-settings.c#n812
[2] https://mail.xfce.org/pipermail/xfce4-dev/2015-July/031347.html
[3] https://forum.manjaro.org/index.php?topic=7319.msg210748#msg210748
Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1471979/comments/2
On 2015-08-02T14:28:06+00:00 Octavio Alvarez wrote:
I'm bit by this too. I'm not using light-locker, only lightdm. The
problem occurs regardless of the "Lock screen when system is going for
sleep" setting.
Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1471979/comments/3
On 2015-09-14T00:00:10+00:00 Christopher Robert Philabaum wrote:
Also confirmed on Xubuntu 14.04+
https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1471979.
Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1471979/comments/7
On 2015-09-14T00:06:24+00:00 Christopher Robert Philabaum wrote:
Excuse me, Xubuntu 15.04+.
Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1471979/comments/8
** Changed in: xfce4-power-manager
Status: Unknown => Confirmed
** Changed in: xfce4-power-manager
Importance: Unknown => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1471979
Title:
Laptop lid setting on AC ignored
To manage notifications about this bug go to:
https://bugs.launchpad.net/xfce4-power-manager/+bug/1471979/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs