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? ** Attachment added: "test2.sh" https://bugs.launchpad.net/ubuntu/+source/xscreensaver/+bug/1701917/+attachment/4911650/+files/test2.sh -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xscreensaver in Ubuntu. https://bugs.launchpad.net/bugs/1701917 Title: Slow in locking Status in xscreensaver package in Ubuntu: New 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xscreensaver/+bug/1701917/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

