[opensuse-factory] simulate user to stop screen saver loading
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
Hi When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any) Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work? while /bin/true; do qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null; sleep 1m; done thanks regards Ian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/cb2aaf49f775c94d4056311eef22be7b.jpg?s=120&d=mm&r=g)
On 24.07.2015 13:27, ianseeks wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null; sleep 1m; done
You really should use the interface designed for it: http://people.freedesktop.org/~hadess/idle-inhibition-spec/re01.html Greetings, Stephan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-07-24 13:33, Stephan Kulow wrote:
You really should use the interface designed for it: http://people.freedesktop.org/~hadess/idle-inhibition-spec/re01.html
Interesting.
But how would one do that in a script? - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlWyNjgACgkQja8UbcUWM1wt3AD/R9vLs5S0zCPmt+y8ymzPxIpz S9ynbCZEafcUyzWPM84BAI2bcuIy6a+WFqWITWoaQf/DM1TqRQwbON107yScM9To =Js6x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
On Friday 24 Jul 2015 13:33:42 Stephan Kulow wrote:
On 24.07.2015 13:27, ianseeks wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity >
/dev/null; sleep 1m; done
You really should use the interface designed for it: http://people.freedesktop.org/~hadess/idle-inhibition-spec/re01.html
Greetings, Stephan
Thanks. not sure what to do with that, is that scriptable? Looks like something that should be in vlc as an option. i need to use it with the BBC iPlayer. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/a725014f091bcd9e8ff16e9f2a0d7e20.jpg?s=120&d=mm&r=g)
On Friday 24 July 2015 16:55:21 ianseeks wrote:
On Friday 24 Jul 2015 13:33:42 Stephan Kulow wrote:
On 24.07.2015 13:27, ianseeks wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity >
/dev/null; sleep 1m; done
You really should use the interface designed for it: http://people.freedesktop.org/~hadess/idle-inhibition-spec/re01.html
Greetings, Stephan
Thanks. not sure what to do with that, is that scriptable? Looks like something that should be in vlc as an option. i need to use it with the BBC iPlayer.
you can use the following script: ------- #! /bin/bash trap 'qdbus org.freedesktop.ScreenSaver /org/freedesktop/ScreenSaver org.freedesktop.ScreenSaver.UnInhibit $COOKIE && echo removed Inhibitor $COOKIE; exit' HUP INT QUIT ILL TRAP KILL BUS TERM COOKIE=$(qdbus org.freedesktop.ScreenSaver /org/freedesktop/ScreenSaver org.freedesktop.ScreenSaver.Inhibit ShellInhibitor Video) echo "Registered ScreenSaver inhibitor with cookie $COOKIE" while (true); do sleep 300 echo "ScreenSaver inhibitor still running with cookie $COOKIE" done ----- To stop the inhibition, just kill the script Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424 -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
On Saturday 25 Jul 2015 17:39:36 Stefan Bruens wrote:
On Friday 24 July 2015 16:55:21 ianseeks wrote:
On Friday 24 Jul 2015 13:33:42 Stephan Kulow wrote:
On 24.07.2015 13:27, ianseeks wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity >
/dev/null; sleep 1m; done
You really should use the interface designed for it: http://people.freedesktop.org/~hadess/idle-inhibition-spec/re01.html
Greetings, Stephan
Thanks. not sure what to do with that, is that scriptable? Looks like something that should be in vlc as an option. i need to use it with the BBC iPlayer.
you can use the following script: ------- #! /bin/bash
trap 'qdbus org.freedesktop.ScreenSaver /org/freedesktop/ScreenSaver org.freedesktop.ScreenSaver.UnInhibit $COOKIE && echo removed Inhibitor $COOKIE; exit' HUP INT QUIT ILL TRAP KILL BUS TERM
COOKIE=$(qdbus org.freedesktop.ScreenSaver /org/freedesktop/ScreenSaver org.freedesktop.ScreenSaver.Inhibit ShellInhibitor Video)
echo "Registered ScreenSaver inhibitor with cookie $COOKIE"
while (true); do sleep 300 echo "ScreenSaver inhibitor still running with cookie $COOKIE" done -----
To stop the inhibition, just kill the script
Kind regards,
Stefan
Thanks Stefan. I will try that as well. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/25bbc96d9c53647354cb724e744b2222.jpg?s=120&d=mm&r=g)
On July 24, 2015 7:27:50 AM EDT, ianseeks <ianseeks@yahoo.co.uk> wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null; sleep 1m; done
thanks
regards
Ian
You can go the hardware route ;) http://www.cru-inc.com/products/wiebetech/mouse_jiggler/ -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
On Friday 24 Jul 2015 08:31:34 greg.freemyer@gmail.com wrote:
On July 24, 2015 7:27:50 AM EDT, ianseeks <ianseeks@yahoo.co.uk> wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity >
/dev/null; sleep 1m; done
thanks
regards
Ian
You can go the hardware route ;)
:o) never heard of those before -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/25bbc96d9c53647354cb724e744b2222.jpg?s=120&d=mm&r=g)
On July 24, 2015 11:52:40 AM EDT, ianseeks <ianseeks@yahoo.co.uk> wrote:
On Friday 24 Jul 2015 08:31:34 greg.freemyer@gmail.com wrote:
On July 24, 2015 7:27:50 AM EDT, ianseeks <ianseeks@yahoo.co.uk> wrote:
Hi
When i was using previous versions of opensuse 13.x this little script was given to me to allow me to watch a full movie without the KDE screensaver or ASUS monitor's timeout working. (see below) I can obviously turn off the screen saver but the ASUS monitor has no config options to change its own built in time out (well, i cant find any)
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity
/dev/null; sleep 1m; done
thanks
regards
Ian
You can go the hardware route ;)
:o)
never heard of those before
To be honest, I'd forgot about them but I just ordered 2 of the slow ones. Only $20 each. I often work on client PCs where I don't have the password. Having a juggler would keep them from pulling up a lock screen if i'm not active for a while. Greg -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-07-24 13:27, ianseeks wrote:
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null; sleep 1m; done
Try "xdotool key shift" instead of the qdbus call. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlWyrM0ACgkQja8UbcUWM1xuqgD+KmFeYLrxdTY9VGB2s+TYinS1 Zm+1Z/7GBGGofo5oL/8A/1ZtCVHBonyLoWcaqzi/bYndZIVxo+sZEY7EMtRl9qqO =dsJw -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
On Friday 24 Jul 2015 23:23:26 Carlos E. R. wrote:
On 2015-07-24 13:27, ianseeks wrote:
Now this doesn;t seem to work any longer since i've installed TW and Plasma, does anyone know what needs to be changed to make it work?
while /bin/true; do qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null; sleep 1m; done
Try "xdotool key shift" instead of the qdbus call.
-- Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 "Bottle" (Minas Tirith)) thanks. seems to work a treat once i downloaded it -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-07-25 10:22, ianseeks wrote:
On Friday 24 Jul 2015 23:23:26 Carlos E. R. wrote:
Try "xdotool key shift" instead of the qdbus call.
thanks. seems to work a treat once i downloaded it
Welcome :-) Actually, it was not my idea. We worked it out on a similar thread on the forums. Also we got it combined with a method to detect when the flash plugin is running, and then inhibit the screensaver. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlWzaw4ACgkQja8UbcUWM1x5aQD+MrkIpgKXwnl7h+NNNvQ5HC6v Ox6MR8bC7q8sNhGqdPgA/iUwonmy1+G4y/GlHdiU8UJRIA+wrvgWSHo4U+3bnlEO =t3VC -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
On Saturday 25 Jul 2015 12:55:10 Carlos E. R. wrote:
On 2015-07-25 10:22, ianseeks wrote:
On Friday 24 Jul 2015 23:23:26 Carlos E. R. wrote:
Try "xdotool key shift" instead of the qdbus call.
thanks. seems to work a treat once i downloaded it
Welcome :-)
Actually, it was not my idea. We worked it out on a similar thread on the forums. Also we got it combined with a method to detect when the flash plugin is running, and then inhibit the screensaver.
I wonder if it could be incorporated into systemssettings5 in some meaningful way
-- Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 "Bottle" (Minas Tirith))
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/a725014f091bcd9e8ff16e9f2a0d7e20.jpg?s=120&d=mm&r=g)
On Saturday 25 July 2015 15:27:35 ianseeks wrote:
On Saturday 25 Jul 2015 12:55:10 Carlos E. R. wrote:
On 2015-07-25 10:22, ianseeks wrote:
On Friday 24 Jul 2015 23:23:26 Carlos E. R. wrote:
Try "xdotool key shift" instead of the qdbus call.
thanks. seems to work a treat once i downloaded it
Welcome :-)
Actually, it was not my idea. We worked it out on a similar thread on the forums. Also we got it combined with a method to detect when the flash plugin is running, and then inhibit the screensaver.
I wonder if it could be incorporated into systemssettings5 in some meaningful way
In Plasma(5) you can use either different activities, or just switch off powermanagement temporarily. To switch off PM, you can click on the Battery/Screen Brightness notifier button, and deselect Power Management. If you go the Activity route, create a new activity (e.g. "Video"), go to the PM settings in system-settings, and configure the settings for the Video Activity. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/943577b0e6c378f9325fcd6857c948fa.jpg?s=120&d=mm&r=g)
On Saturday 25 Jul 2015 17:32:28 Stefan Bruens wrote:
On Saturday 25 July 2015 15:27:35 ianseeks wrote:
On Saturday 25 Jul 2015 12:55:10 Carlos E. R. wrote:
On 2015-07-25 10:22, ianseeks wrote:
On Friday 24 Jul 2015 23:23:26 Carlos E. R. wrote:
Try "xdotool key shift" instead of the qdbus call.
thanks. seems to work a treat once i downloaded it
Welcome :-)
Actually, it was not my idea. We worked it out on a similar thread on the forums. Also we got it combined with a method to detect when the flash plugin is running, and then inhibit the screensaver.
I wonder if it could be incorporated into systemssettings5 in some meaningful way
In Plasma(5) you can use either different activities, or just switch off powermanagement temporarily.
To switch off PM, you can click on the Battery/Screen Brightness notifier button, and deselect Power Management.
If you go the Activity route, create a new activity (e.g. "Video"), go to the PM settings in system-settings, and configure the settings for the Video Activity.
This is on my desktop machine and the ASUS monitor has no way to configure out its own built in screen power off. It totally ignores Power Management setting within the DE.
Kind regards,
Stefan
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Carlos E. R.
-
greg.freemyer@gmail.com
-
ianseeks
-
Stefan Bruens
-
Stephan Kulow