Cinnamon 19.1 - Install xscreensaver

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
smurphos
Level 12
Level 12
Posts: 4113
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Cinnamon 19.1 - Install xscreensaver

Post by smurphos » Sat Dec 22, 2018 7:42 am

Missing your xscreensaver hacks in Cinnamon 19.1?

Why they were removed - https://github.com/linuxmint/cinnamon-s ... e385d48db1

Can you get them back? No.

But you can install the full version of xscreensaver and override cinnamon-screensaver. Please note that will also replace the Cinnamon lock-screen with the somewhat retro xscreensaver lock screen. I give no comment on whether the xscreensaver lock-screen is equally as secure.

Step 1 - Take a Timeshift snapshot just in case this goes horribly wrong and you need to revert

Step 2 - Disable cinnamon-screensaver

Run this command in a terminal. if you have multiple users you will need to do this for each user account.

Code: Select all

gsettings set org.cinnamon.desktop.session idle-delay 0 && gsettings set org.cinnamon.desktop.screensaver idle-activation-enabled false && gsettings set org.cinnamon.desktop.screensaver lock-enabled false
Step 3 - Install xscreensaver

Run this command in a terminal.

Code: Select all

apt install xscreensaver xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra
Step 4- Link the cinnamon-screensaver-command to xscreensaver-command

Run this command in a terminal.

Code: Select all

sudo ln -sf /usr/bin/xscreensaver-command /usr/bin/cinnamon-screensaver-command
Please note this link will be overwritten by any future updates to the cinnamon-screensaver package. Simply rerun this command after any update to cinnamon-screensaver,

Step 5 - Set xscreensaver to start at user logon

Open Startup Applications and add a custom startup entry with no delay to run the command xscreensaver if you have multiple users you will need to do this for each user account.

Image

Step 6 - Reboot

Step 7 - Set up your xscreensaver preferences

In the menu xscreensaver properties can be found in the preferences category as a 2nd Screensaver entry with the description Change screensaver properties. Alternatively you can launch it from the terminal with the command xscreensaver-demo. Most of the settings are self-explanatory. Blank time is the idle time before the screensaver kicks in.

Image

Step 8 - Test

If all has gone well your menu lock screen shortcut and Ctrl-Alt-L keyboard shortcut should lock the screen with the xscreensaver lock-screen. The screensaver should kick in after your specified idle time and if you have set it to lock after a time period in xscreensaver properties that should work too.

How to revert

Step 1 and 2 will need to be applied in each user account the changes were applied to originally.

Step 1 - Remove the startup application entry for xscreensaver

Step 2 - revert the dconf changes

Code: Select all

gsettings reset org.cinnamon.desktop.session idle-delay && gsettings reset org.cinnamon.desktop.screensaver idle-activation-enabled && gsettings reset org.cinnamon.desktop.screensaver lock-enabled
Step 3 - Use Timeshift to revert back to a snapshot prior to xscreensaver install or carry on to Step 4

Step 4 - Reinstall cinnamon-screensaver to fix the link

Code: Select all

apt install --reinstall cinnamon-screensaver
Step 5 - Remove xscreensaver

Code: Select all

apt purge --autoremove xscreensaver xscreensaver-data xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra
Edit to clarify that the gsettings commands are user account specific.
Last edited by smurphos on Mon Dec 24, 2018 1:14 am, edited 1 time in total.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
smurphos
Level 12
Level 12
Posts: 4113
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Cinnamon 19.1 - Install xscreensaver

Post by smurphos » Sat Dec 22, 2018 8:05 am

If you just want something simple you can just add a background slideshow to the native Cinnamon screensaver / lockscreen - see viewtopic.php?f=208&t=290333
Last edited by smurphos on Sun Mar 17, 2019 3:41 am, edited 1 time in total.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

tgwilt
Level 2
Level 2
Posts: 88
Joined: Fri Jun 08, 2018 2:26 am
Location: Florida, USA

Re: Cinnamon 19.1 - Install xscreensaver {SOLVED]

Post by tgwilt » Sat Dec 22, 2018 5:05 pm

Thanks for the info. I don't worry about locking my computer.

redlined

Re: Cinnamon 19.1 - Install xscreensaver

Post by redlined » Sun Dec 23, 2018 12:04 pm

undecided now if I want them back or not... Thanks for this tutorial to give me back the option though, for sure!

bagpiperlb
Level 1
Level 1
Posts: 21
Joined: Thu Nov 29, 2018 3:19 pm

Re: Cinnamon 19.1 - Install xscreensaver

Post by bagpiperlb » Mon Dec 24, 2018 12:26 am

Thank you so much! I missed mine. As a Mac-to-Mint convert, the Flurry screensaver just rounds out the package for me. I already themed my mint with a combination of Mint-Y-Yltra-Dark, Mint-X-Aqua and Loki with the DMZ-black pointer and the Mac OS X Leopard aurora background. Of course, Flurry is the default screen saver on Mac OS X/macOS so...

rymar
Level 1
Level 1
Posts: 20
Joined: Sat May 04, 2013 3:07 pm

Re: Cinnamon 19.1 - Install xscreensaver

Post by rymar » Mon Jan 07, 2019 2:08 pm

I installed the Xscreensaver as per instructions and it worked great...except for the part that won't lock my computer. Reverted back as per instructions also. Now after my system goes into suspend it's really hard to wake up. That can take as long as 5 minutes before getting a login screen. What happens is that while suspended my VPN, which runs always, gets disconnected and after waking up tries to reconnect without success. This wasn't an issue before I tried Xscreensaver. Looking for a fix please?
Have been using Linux on and off for most of twenty years. Seen the good, the bad and..well...the ugly. Switched to Mint several years ago. Prior to that used Kubuntu. Currently I'm co-chair of the Vernon BC Canada Linux Users Group.

User avatar
smurphos
Level 12
Level 12
Posts: 4113
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Cinnamon 19.1 - Install xscreensaver

Post by smurphos » Tue Jan 08, 2019 1:00 am

I did see from your post history (had a look to see if there was a clue on what hardware you are running) that you had quite severe problems with the Cinnamon lock screen before - were those resolved before you tried xscreensaver? If so I'd try a timeshift back to just prior to trying xscreensaver

If not I'd start a new thread linking back to this one including the output of inxi -Fxz along with the output of these commands run after a reboot, followed by a suspend and a slow resume from suspend journalctl -r and the end of the output of dmesg (look at including the output after the first line including PM: suspend or similar)
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

storieTyme
Level 1
Level 1
Posts: 3
Joined: Mon Mar 04, 2019 11:54 am

Re: Cinnamon 19.1 - Install xscreensaver

Post by storieTyme » Mon Mar 04, 2019 12:24 pm

Did Linux Mint 19.1 as a fresh install (replacing 17.3, which was retained for gfx compatibility) and used this post to bring xscreensaver back because I wanted the full screensaver options. Is there any way to use the stock Cinnamon screen locker with it, though? I don't really mind the xscreensaver lock's retro look or type-timer, but a couple of times when coming back from sleep, the machine went all the way back to the desktop and allowed for a moment of interaction with it before bringing the screensaver and password lock back up, which makes me worry about its security.

Even if some people found it redundant, i wish they just left them in for those of us that still prefer to use them. In my case its a style/feng shui thing for my computer area, and protects my external monitor, which is an older HDTV with mild image retention issues.

EDIT: I ask because I'm a little apprehensive about modifying your commands and really burning something up in the background. Snapshots don't always save my butt.

EDIT 2: Answered here viewtopic.php?f=90&t=283954&p=1603852#p1603852

User avatar
farkas
Level 4
Level 4
Posts: 248
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

Re: Cinnamon 19.1 - Install xscreensaver

Post by farkas » Thu Sep 12, 2019 12:59 am

Hi smurphos!
I would like to know if your above tutorial would work in Mint 19.2 cinnamon.

Made a post on seti@home https://setiathome.berkeley.edu/forum_t ... p?id=84641
The replies aren't very encouraging. One of them points to xsrceensaver as a possible solution.
Google search for "seti@home screensaver in linux mint 19.2", returns my post at the top of the list.
Not very helpful nor are the following results of the search. Made several other searches using variations of the above query. Most are outdated or not applicable in Mint.
Made a post recently in Software & Applications. viewtopic.php?f=47&t=301529
Not many views and no replies.

Your replies to my previous posts have been a great help and successful!
viewtopic.php?f=211&t=299394&p=1669204#p1669204 and your cinnamox_themes tweaks are excellent!

Thank you!
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.

User avatar
smurphos
Level 12
Level 12
Posts: 4113
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Cinnamon 19.1 - Install xscreensaver

Post by smurphos » Thu Sep 12, 2019 2:06 am

Hi,

Should work fine for 19.2
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
farkas
Level 4
Level 4
Posts: 248
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

Re: Cinnamon 19.1 - Install xscreensaver

Post by farkas » Thu Sep 12, 2019 2:21 am

Thanks. I'll give it a try.
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.

Post Reply

Return to “Tutorials”