LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2009, 01:55 PM   #1
linux_newb
Member
 
Registered: Aug 2009
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55

Rep: Reputation: 15
How to Disable Screen Saver Permanently in KDE script??


Hi guys,

I want to know how I can permanently disable screen savers in linux KDE. I don't want to just be able to login to KDE and goto control panel system settings and disable it. I want a script to be able to be run everytime I install linux to automate the process of disabling the screensaver forever because I would like to install this on 100 computers and would not like to have to go to each machine individually.
 
Old 09-30-2009, 02:43 PM   #2
JPlum
LQ Newbie
 
Registered: Jun 2005
Location: PA (USA)
Posts: 6

Rep: Reputation: 0
A blunt approach would be to uninstall the screen saver program (likely using rpm, yum, yast, or apt-get depending on your distribution).

A more thoughtful approach would be to disable the "start" of the screen saver--which could be triggered from numerous places. A crude way of looking for it would be to run a command like 'grep -R ~/ xscreensaver' and it will likely suggest what configuration (or other startup script) is launching the screen-saver (sometimes it's ~/.kde/share/config)... and you could remove or comment out the lines of interest (e.g. using sed to insert the appropriate comment character to the start of the lines of interest '#','!', etc). This approach is specific to the account you run it under though--there are likely some template files stashed in /etc/ that are used as defaults for new accounts that you may be inclined to monkey with also.

If you mention what distribution you're using, someone familiar with it might be better able to chime in as to where xscreensaver is typically launched under KDE on your distro.
 
Old 09-30-2009, 02:43 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You should just be able to uninstall the screen saver package. What distribution is this?
 
Old 09-30-2009, 03:56 PM   #4
linux_newb
Member
 
Registered: Aug 2009
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MS3FGX View Post
You should just be able to uninstall the screen saver package. What distribution is this?
Its CenTOS I believe version 5 something.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Disable Screen Saver Permanently in KDE script linux_newb Linux - Desktop 3 09-30-2009 12:20 PM
about disable screen saver andrias DamnSmallLinux 0 04-16-2008 09:22 AM
Cant disable screen saver.. madspikes Linux - General 1 04-13-2007 05:45 AM
question on disable the screen saver bbmak Linux - Software 2 10-03-2004 08:37 PM
disable screen saver? duaux Linux - General 1 09-05-2002 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration