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

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 2017-08-02T18:49:41+00:00 Pf4public wrote:

Xfce4-power-manager does not catch lid events.
acpi_listen does show lid events.
UPower does catch lid events.
Xfce4-power-manager --debug gives no output on lid events.
It has settings for lid events, but they are ignored as no event catched.
It does appropriate actions upon suspend and poweroff keys, but not lid.
What is wrong here?
Thanks in advance.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/0

------------------------------------------------------------------------
On 2017-08-10T11:44:58+00:00 Simon Naunton wrote:

Have you tried:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-
handle-lid-switch -n -t bool -s false

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/1

------------------------------------------------------------------------
On 2017-08-10T17:05:25+00:00 Pf4public wrote:

Of course! But this does not help.
Since my system does not even have logind, this might be irrelevant setting 
though.
But anyway thanks for your answer!

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/2

------------------------------------------------------------------------
On 2017-11-15T14:40:59+00:00 Ali-b wrote:

Try to monitor the bus to see if upower is effectively sending the
signal to the power manager, using the following command.

dbus-monitor --system "type='signal',sender='org.freedesktop.UPower'"

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/3

------------------------------------------------------------------------
On 2017-11-15T19:29:02+00:00 Pf4public wrote:

Thanks for your reply.
Activating and deactivating lid button gives me these events:
signal time=1510773931.714558 sender=:1.20 -> destination=(null destination) 
serial=3144 path=/org/freedesktop/UPower; interface=org.freedesktop.UPower; 
member=Changed
signal time=1510773932.546623 sender=:1.20 -> destination=(null destination) 
serial=3145 path=/org/freedesktop/UPower; interface=org.freedesktop.UPower; 
member=Changed
One for lid-close event, the other for lid-open respectively with ever 
increasing serial.
Is there anything else I can do to identify the cause of this issue?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/4

------------------------------------------------------------------------
On 2018-07-18T13:45:37+00:00 Baybal Ni wrote:

I'm also having this issue.

Upower does register LID events

signal time=1531921145.698725 sender=:1.10 -> destination=(null
destination) serial=748 path=/org/freedesktop/UPower;
interface=org.freedesktop.UPower; member=Changed

But I have nothing in xfpm debug output

To my memory, suspend by lid worked few times for me.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/5

------------------------------------------------------------------------
On 2018-07-18T13:46:25+00:00 Baybal Ni wrote:

My system.

Gentoo
Elogind
upower-pm-utils
No systemd

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/6

------------------------------------------------------------------------
On 2018-07-18T14:11:02+00:00 Baybal Ni wrote:

Debug output https://pastebin.com/bsn97Vwq

baybal@xps ~ $ xfconf-query -c xfce4-power-manager -vl
/xfce4-power-manager/blank-on-battery                   2
/xfce4-power-manager/brightness-on-battery              60
/xfce4-power-manager/brightness-switch                  0
/xfce4-power-manager/brightness-switch-restore-on-exit  0
/xfce4-power-manager/general-notification               true
/xfce4-power-manager/handle-brightness-keys             true
/xfce4-power-manager/hibernate-button-action            2
/xfce4-power-manager/inactivity-on-battery              176
/xfce4-power-manager/inactivity-sleep-mode-on-battery   1
/xfce4-power-manager/lid-action-on-ac                   0
/xfce4-power-manager/lid-action-on-battery              1
/xfce4-power-manager/lock-screen-suspend-hibernate      false
/xfce4-power-manager/logind-handle-lid-switch           false
/xfce4-power-manager/power-button-action                1
/xfce4-power-manager/presentation-mode                  false
/xfce4-power-manager/show-panel-label                   3
/xfce4-power-manager/show-tray-icon                     true
/xfce4-power-manager/sleep-button-action                1

baybal@xps ~ $ xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.6.1
With policykit support
Without network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorised to suspend: True
Authorised to hibernate: True
Authorised to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/7

------------------------------------------------------------------------
On 2018-07-18T14:19:37+00:00 Baybal Ni wrote:

sys-power/upower-pm-utils 0.9.23-r2

xfce 4.12

polkit 0.113

pm-utils 1.4.1

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/8

------------------------------------------------------------------------
On 2018-07-27T15:20:28+00:00 Chris Rainey wrote:

I solved this yesterday on Ubuntu 18.04.1:


Using a pure install of the "xfce4" and "xfce4-power-manager" packages after a 
clean install of Ubuntu 18.04 LTS does not lock the screen when closing a 
laptop lid without manually adding the following property to the local or 
global xfconf 
database(/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml):

<property name="LockCommand" type="string" value="xscreensaver-command
-lock"/>

This property is undiscoverable and not well documented, if at all.

There was a patch to add this property back in 2015 @
https://git.xfce.org/xfce/xfce4-session/commit/settings/xfce4-session.xml?id=570093ffafa8a6226ce9dd0ee29e9e64539d4bc9,
but it does not appear to be in the current Ubuntu source.

Manually adding this prpoerty is accomplished by the following command:

$xfconf-query -c xfce4-session -p /general/LockCommand -s 'xscreensaver-
command -lock' -v -n -t string

Without this parameter and a named running screen locking
daemon(XScreenSaver by default), the system will Suspend---but, not be
locked upon Resume when triggered by a laptop lid-switch.

Please add or patch the Ubuntu version to provide this basic
functionality as "systemd-logind.service" is not overriding by default:

$ systemd-inhibit --list
     Who: NetworkManager (UID 0/root, PID 936/NetworkManager)
    What: sleep
     Why: NetworkManager needs to turn off networks
    Mode: delay

     Who: ModemManager (UID 0/root, PID 895/ModemManager)
    What: sleep
     Why: ModemManager needs to reset devices
    Mode: delay

     Who: UPower (UID 0/root, PID 1564/upowerd)
    What: sleep
     Why: Pause device polling
    Mode: delay

     Who: xfce4-power-manager (UID 1000/chris, PID 1614/xfce4-power-man)
    What: 
handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
     Why: xfce4-power-manager handles these events
    Mode: block

4 inhibitors listed.


https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1783895/comments/11


** Changed in: xfce4-session
       Status: Unknown => Confirmed

** Changed in: xfce4-session
   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/1783895

Title:
  Screen locking fails on Suspend/Resume for laptop lid-switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/xfce4-session/+bug/1783895/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to