calling "xscreensaver-command -deactivate" every 20 seconds

Bug #1768562 reported by Moses Moore
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xfce4-power-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After upgrading to Ubuntu 18.04, "/usr/bin/xscreensaver-command -deactivate" is launched every twenty seconds. Behaviour stops if I kill xfce4-power-manager. Seems this is a [known problem](https://www.jwz.org/xscreensaver//faq.html#no-blank), and the solution is to turn off "Presentation Mode". But the new xfce4-power-manager-settings does not mention "Presentation Mode", and I already turned off "Display power management".

I replaced /usr/bin/xscreensaver-command with the following to find out what was launching it, but it always says parent pid (PPID) is '1', as if it was started by systemd itself or as if the parent process died before the child started, and orphaned processes are always parented by pid 1.

    #!/bin/bash
    # what's causing the wake-ups?
    OUT=/tmp/xscreensaver-command-pid.txt
    echo "$$ : $0 $@" > $OUT ;
    # pstree -l -p >> $OUT
    # ps w >> $OUT
    #ps o stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm >> $OUT ;
    ps f -opid,ppid,cmd $$ >> $OUT
    /usr/libexec/xscreensaver/xscreensaver-command "$@"

The $OUT file is created every twenty seconds. If I find the pid for xfce4-power-manager and `kill` it, then the $OUT file stops updating, so I feel strongly that xfce4-power-manager is the culprit, and the documented solution ("turn off Presentation Mode") is no longer available in Ubuntu 18.04 / xfce4-power-manager 1.6.1

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: xfce4-power-manager 1.6.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed May 2 10:45:26 2018
InstallationDate: Installed on 2016-06-05 (696 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: xfce4-power-manager
UpgradeStatus: Upgraded to bionic on 2018-04-27 (5 days ago)

Revision history for this message
Moses Moore (moses-ubuntu) wrote :
Revision history for this message
Christopher Snowhill (kode54) wrote :

This also appears to occur with a fresh installation of Ubuntu 18.04.1 with the default Gnome desktop. It is waking my displays every twenty seconds as well. The only power related things that appear to be running are two instances of gnome-settings-daemon/gsd-power, one for the gdm user and one for my user.

Revision history for this message
Christopher Snowhill (kode54) wrote :

I see that I don’t even have XScreenSaver installed here, so it’s some other power configuration that’s causing the spurious wake ups.

Revision history for this message
Christopher Snowhill (kode54) wrote :

I just installed an Xorg and input and display drivers update, apparently phased to 40% of users, and that seems to have fixed it?

Revision history for this message
Christopher Snowhill (kode54) wrote :

I just figured out what it was. It wasn't the Xorg update that fixed it. It was the Anbox container sending wake up notices to the screen saver:

```
Aug 07 22:55:01 dorktower dbus-daemon[8808]: apparmor="ALLOWED" operation="dbus_method_call" bus="session" path="/org/gnome/ScreenSaver" interface="org.gnome.ScreenSaver" member="SimulateUserActivity" mask="send" name="org.gnome.ScreenSaver" pid=27881 label="snap.anbox.appmgr" peer_pid=8965 peer_label="unconfined"
```

So, if you have this problem again, please be sure to check your `journalctl -xe` for SimulatedUserActivity notices, so you can figure out what's sending that crap and deactivating your screen saver.

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Presentation Mode is documented here:

https://docs.xfce.org/xfce/xfce4-power-manager/panel-plugin

It should not be enabled by default though.

Changed in xfce4-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Moses Moore (moses-ubuntu) wrote :

Incomplete? What else do you need?

> It should not be enabled by default though.

I didn't even know there was a "Presentation Mode" checkbox, so I doubt I turned it on. Is there a way for me to check in a config file where this is/was set? I can wipe out that config file, restart xfce4-power-manager and thus find out what the default really is.

For the benefit of the impatient who find this report: That "presentation mode" checkbox doesn't appear on the stock panel, nor is it in the systray/notification area. You must: right click on a panel, choose "Panel" then "add new items...", search for "power", select "power management plugin" then "add", then right-click on the new barttery-shaped icon that appears in that panel, then turn off the "Presentation mode" checkbox.

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

xfce4-settings-editor -> /xfce4-power-manager/presentation-mode

This property is created once the checkbox in the panel plugin is turned on. So, the presentation mode should not be active unless the user actually activates it.

I have changed the status to 'Incomplete' due to not being able to verify the issue (tested in a VM).

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xfce4-power-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in xfce4-power-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.