Slow in locking

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

Bug Description

It takes about a second to lock screen by 'xscreensaver-command -lock'. Also checking, if xscreensaver is not running for the current session by the same command (by inspecting the exit code) takes as long time.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xscreensaver 5.15-3+deb7u1ubuntu0.1
ProcVersionSignature: Ubuntu 4.4.0-83.106~14.04.1-generic 4.4.70
Uname: Linux 4.4.0-83-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.24
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Jul 2 15:30:30 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-09-21 (1015 days ago)
InstallationMedia: Ubuntu-Studio 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.1)
SourcePackage: xscreensaver
UpgradeStatus: No upgrade log present (probably fresh install)

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

Same thing by xscreensaver 5.36-1-ppa3~trusty

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

Except that the attached script operates significantly faster by xscreensaver 5.36 than by xscreensaver 5.15.

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

As for 5.36 the speed varies:

sh -c './test-xscreensaver.sh ; beep'

might play sound almost immediately, or it could wait until xscreensaver has faded the screen to black. What causes such variation? It is important to fade to black before e.g. suspending to RAM...

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

./test-xscreensaver.sh && xfce4-session-logout -s
seems to wait fading to finish before suspending to RAM. If I cp ./test-xscreensaver.sh to /usr/local/bin/xflock4 and set "Lock screen before sleep" enabled in "Session and Startup" settings, it does not wait, which is bad.

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

...But I prefer to disable the setting and add a launcher for sh -c 'xflock4 && xfce4-session-logout -s'

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

Here's another test script attached; I used it with xscreensaver 5.36.

extract from terminal:

$ ./test2.sh && paplay /usr/share/sounds/freedesktop/stereo/complete.oga
31.084305045
xscreensaver-command: activating and locking.

0.00user 0.00system 0:00.02elapsed 15%CPU (0avgtext+0avgdata 2276maxresident)k
0inputs+0outputs (0major+121minor)pagefaults 0swaps
31.387033001
0
31.388224522
31.389247590
$ ./test2.sh && paplay /usr/share/sounds/freedesktop/stereo/complete.oga
49.476176724
49.779119603
49.780295519
xscreensaver-command: activating and locking.

0.00user 0.00system 0:01.63elapsed 0%CPU (0avgtext+0avgdata 2268maxresident)k
0inputs+0outputs (0major+124minor)pagefaults 0swaps

I wonder why time of xscreensaver-command -lock varies so much? For a second thing: paplay seems to wait until xscreensaver has faded screen, but if I replace it by beep, it might not wait that long. Why is that?

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.