LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   removing xscreensaver slack64 multilib 14.2 (https://www.linuxquestions.org/questions/slackware-14/removing-xscreensaver-slack64-multilib-14-2-a-4175649577/)

jrich 03-05-2019 10:52 AM

removing xscreensaver slack64 multilib 14.2
 
Hello:

I really really want to permanently remove 'xscreensaver'. Running Slackware64 14.2 with multilib, which seems to be working ok. I've done the 'slackpkg upgrade' sequence on everything, so my xscreensaver version is 5.42 (latest according to the author).

The author says NOT to use 'kill 9' as it will mess up X. I cannot get xscreensaver to behave - blanks screen with lock even tho not instructed to do so. I'm tired of trying 'fixes' which don't work. I don't really need a screensaver anyway.

I'm reluctant to just try 'removepkg xscreensaver', since this program seems embedded in the system to a degree that messing with it might destroy the setup somehow (my worry). Is this worry justified?

Thanks for help removing xscreensaver.

cwizardone 03-05-2019 11:07 AM

What desktop are you using?

Lysander666 03-05-2019 11:08 AM

It is best not to remove it, just disable it, kill the daemon and remove it from startup:

https://www.linuxquestions.org/quest...0/#post4876903

cwizardone 03-05-2019 11:45 AM

Once upon a time the system was blanking the screen after 15 minutes, regardless of anything I did. Eventually, someone pointed me in the direction of the /etc/rc.d/rc.setterm file. Once the "offending"
line was commented out, that solved the problem. You could also comment out the call to the rc.setterm file in the /etc/rc.d/rc.M file, which would achieve the same goal.

From the default /etc/rc.d/rc.M file,
Quote:

# Call the setterm init script to set screen blanking and power management
# defaults:
if [ -x /etc/rc.d/rc.setterm ]; then
/etc/rc.d/rc.setterm
fi
The default /etc/rc.d/rc.setterm file,
Quote:

#!/bin/sh
#
# This file provides the command line for the setterm utility to set the
# terminal attributes (primarily used for screen blanking and power
# management).

# Screen blanks after 15 minutes idle time, and powers down in one hour
# if the kernel supports APM or ACPI power management (default setting):
/bin/setterm -blank 15 -powersave powerdown -powerdown 60

# Screen does not blank or use power management features:
#/bin/setterm -blank 0 -powersave off -powerdown 0
By default, the rc.setterm file is executable.

jrch 03-05-2019 03:13 PM

Well, I DID try to 'quick reply' but it seemed to disappear into bit bucket. Will try once more.

I found a workable solution for me: "xscreensaver-command -exit". I have to find a way to automate that (as user) on login.

Note author (jwz) says not to use 'kill -9'.

This is 'solved' for my purposes. Thanks for the tips. To answer one question, I am using XFCE desktop.

jrc

bassmadrigal 03-05-2019 03:41 PM

Quote:

Originally Posted by jrch (Post 5970565)
I found a workable solution for me: "xscreensaver-command -exit". I have to find a way to automate that (as user) on login.

Most desktop environments will have an autostart folder, that will run things automatically when the DE is started up. I believe most will support ~/.config/autostart/, but you'll want to check with your specific desktop.


All times are GMT -5. The time now is 02:16 PM.