This should be more fool-proof (the previous one would often pick the
wrong process):

P=`pgrep gnome-screensav`; gnome-screensaver-command --activate; while
sleep 30; do ps lx | awk '{ if ($4=='$P') print}' >> saver.log;  gnome-
screensaver-command --activate; gnome-screensaver-command --cycle; done

You will have to sort the results with: sort -k 12 saver.log > random-
savers.txt

-- 
screensavers cause high CPU usage
https://bugs.launchpad.net/bugs/174191
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to