xscreensaver-command -lock finishes before desktop is invisible

Bug #1858027 reported by Jarno Suni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xscreensaver (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

EDIT: Now if it is generally so that when you lock by xscreensaver before suspending, suspending happens only after fading has completed, I withdraw this bug report.

Steps to reproduce
1. Run 'xscreensaver-demo -prefs', activate the daemon, if requested
2. Ensure that "Fade to Black when Blanking" is set up with some non-zero duration.
3. in terminal, run
xscreensaver-command -lock </dev/null && paplay /usr/share/sounds/freedesktop/stereo/bell.oga

Result: The bell sound is played immediately.
Expected: play the sound after blanking is ready
This is regression from (X)ubuntu 18.04, i.e. xscreensaver 5.36-1ubuntu1.

I found a workaround that seems to work at least in Xubuntu 20.04 with certain hardware:
In step 3, run
xscreensaver-command -lock </dev/null && xset dpms force off && paplay /usr/share/sounds/freedesktop/stereo/bell.oga

In that xset command finished only after xscreensaver has finished fading to black.

On another hardware this works, too:

xscreensaver-command -lock </dev/null && xset q >/dev/null && paplay /usr/share/sounds/freedesktop/stereo/bell.oga

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: xscreensaver 5.42+dfsg1-1ubuntu1
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
Uname: Linux 5.3.0-24-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Jan 1 15:36:35 2020
InstallationDate: Installed on 2019-12-05 (26 days ago)
InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: xscreensaver
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jarno Suni (jarnos) wrote :
Jarno Suni (jarnos)
description: updated
Revision history for this message
Jarno Suni (jarnos) wrote :

I reported this to the developer of XScreenSaver.

Revision history for this message
Jarno Suni (jarnos) wrote :

This might be a problem, if hiding display must happen before suspending. Besides, caller should wait until the locker finishes before suspending.

Jarno Suni (jarnos)
description: updated
Jarno Suni (jarnos)
description: updated
Jarno Suni (jarnos)
description: updated
Revision history for this message
Jarno Suni (jarnos) wrote :

Despite the fact that 'xscreensaver-command -lock' may exit before it has faded screen out in 'xscreensaver-command -lock </dev/null && paplay /usr/share/sounds/freedesktop/stereo/bell.oga' running
'xscreensaver-command -lock </dev/null && xfce4-session-logout --suspend' does not suspend before screen has faded out. I do not know why, though.

xfce4-session 4.14.2 (Xfce 4.14)

Jarno Suni (jarnos)
Changed in xscreensaver (Ubuntu):
status: New → Opinion
description: updated
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.