Xscreensaver to working normally? I am quite happy without it. Xscreensaver waste unnecessary CPU cycles. I'd rather just use the Lock Screen. But yes, there is a way. Follow the instructions explicitly.
(A) You should at minimum have the following installed:
- xscreensaver
- xscreensaver-base
- xscreensaver-common
(B) Open Konsole and type,
[user@localhost ~] $ xscreensaver-demoWhen Warning:
The XscreenSaver daemon doesn't seem to be running on display ":0". Launch it now? Click OK.
On the Display Modes tab, set your preferences accordingly. Do the same with the Advanced tab (if you have anything to set). Once done, select File > Quit.
(C) Test your xscreensaver module selection with the following command:
[user@localhost ~] $ xscreensaver-command --activateXscreensaver should display your selected module
(D) Still on the konsole, type,
[user@localhost ~] $ xset s onThis should be OK for your session and launch xscreensaver on its designated timeout ... but when you shutdown and bootup, you will need to restart the daemon, etc. again. To make it permanent, do the following:
First, repeat the instructions on (B).
You should also disable KDE screensaver if you have it turned on. Open SystemSettings > Hardware > Display and Monitor > Screen Saver. Uncheck everything on the Settings.
Next, use your favorite text editor to create an xscreensaver.desktop file in your ~/.config/autostart directory that contains the following five lines:
[Desktop Entry]
Exec=xscreensaver
Name=XScreenSaver
Type=Application
X-KDE-StartupNotify=false
Then save the file and exit. The next time you reboot, xscreensaver will autostart.
As an added bonus, the following is how you'd change the right-click of your mourse button and selecting Lock Screen.
Open your konsole and su to root.
# cp /usr/lib/kde4/libexec/kscreenlocker /usr/lib/kde4/libexec/kscreenlocker.kde
# touch /usr/lib/kde4/libexec/kscreenlocker
# cat > /usr/lib/kde4/libexec/kscreenlocker << EOF
#!/bin/sh
xscreensaver-command -lock
EOF
When you are returned to the # prompt, type
chmod a+x /usr/lib/kde4/libexec/kscreenlocker .
You should be able to use the right-click > Lock Screen with xscreensaver. The Unlock screen is pretty ugly!
Repeated warning: In my own personal experience, xscreensaver WILL waste a terrible amount of CPU cycles which can cause CPU temperature to rise. Blank your screen after 5 or 10 minutes of xscreensaver. Use at your own risk.