Discussion:
disable screensaver from command line
Florin Andrei
2018-08-22 00:45:15 UTC
Permalink
I'm running XFCE 4.12 on Ubuntu 16.04. It's an unattended installation,
fully automated via Ansible. The desktops are running under VNC and each
user connects remotely via VPN. All vncserver services are running all
the time for all users (it's simpler this way).

After a while, screensavers kick in for all accounts, wasting CPU
cycles. I can't ask users to disable their screensaver manually because
the instance may be destroyed / recreated any time, losing any manual
changes.

Is there a way to disable the screensaver from the command line? If so,
I could run that command (or set of commands) while the instance is
provisioned with Ansible, disabling the screensaver for all accounts.
--
Florin Andrei
http://florin.myip.org/
Jim Dean
2018-08-22 01:04:33 UTC
Permalink
The screensaver isn't part of Xfce but if you are using Xscreensaver there
is manpage that shows how to configure it. On systemd distros you can
disable it with systemctl --user disable xscreensaver and restart.
Post by Florin Andrei
I'm running XFCE 4.12 on Ubuntu 16.04. It's an unattended installation,
fully automated via Ansible. The desktops are running under VNC and each
user connects remotely via VPN. All vncserver services are running all
the time for all users (it's simpler this way).
After a while, screensavers kick in for all accounts, wasting CPU
cycles. I can't ask users to disable their screensaver manually because
the instance may be destroyed / recreated any time, losing any manual
changes.
Is there a way to disable the screensaver from the command line? If so,
I could run that command (or set of commands) while the instance is
provisioned with Ansible, disabling the screensaver for all accounts.
--
Florin Andrei
http://florin.myip.org/
_______________________________________________
Xfce mailing list
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org
--
Jim Dean

Email - ***@gmail.com

On Google+ <https://plus.google.com/+JimDean>
My YouTube Channel <http://www.youtube.com/user/nkpnsw?feature=mhum>

My Photo Blog "Cewaticcey" <https://cewatticey.wordpress.com/>

My tech blog "Techodyssey" <http://ozjd.wordpress.com/>
Florin Andrei
2018-08-22 01:08:37 UTC
Permalink
I'm using whatever is the default in the Ubuntu packages - but yes, it
appears to be xscreensaver. I'll take a look at the man page. Thanks!

8728 user user Xtightvnc :5 -desktop X -auth
/home/user/.Xauthority -geometry 1440x900 -depth 16 -rfbwait 120000
-rfbauth /home/user/.vnc/passwd -rfbport 5905 -fp
/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/
8734 user user /bin/sh /etc/xdg/xfce4/xinitrc --
/etc/X11/xinit/xserverrc
8747 user user \_ xfce4-session
8771 user user \_ xscreensaver -no-splash
15696 user user \_ deco -root
Post by Jim Dean
The screensaver isn't part of Xfce but if you are using Xscreensaver
there is manpage that shows how to configure it. On systemd distros
you can disable it with systemctl --user disable xscreensaver and
restart.
Post by Florin Andrei
I'm running XFCE 4.12 on Ubuntu 16.04. It's an unattended
installation,
fully automated via Ansible. The desktops are running under VNC and each
user connects remotely via VPN. All vncserver services are running all
the time for all users (it's simpler this way).
After a while, screensavers kick in for all accounts, wasting CPU
cycles. I can't ask users to disable their screensaver manually because
the instance may be destroyed / recreated any time, losing any manual
changes.
Is there a way to disable the screensaver from the command line? If so,
I could run that command (or set of commands) while the instance is
provisioned with Ansible, disabling the screensaver for all
accounts.
--
Florin Andrei
http://florin.myip.org/
_______________________________________________
Xfce mailing list
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org
--
Jim Dean
On Google+ [1]
My YouTube Channel [2]
My Photo Blog "Cewaticcey" [3]
My tech blog "Techodyssey" [4]
------
[1] https://plus.google.com/+JimDean
[2] http://www.youtube.com/user/nkpnsw?feature=mhum
[3] https://cewatticey.wordpress.com/
[4] http://ozjd.wordpress.com/
_______________________________________________
Xfce mailing list
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org
--
Florin Andrei
http://florin.myip.org/
Continue reading on narkive:
Loading...