LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2002, 10:37 AM   #1
legroschat
LQ Newbie
 
Registered: Nov 2002
Posts: 4

Rep: Reputation: 0
How to disable screensaver for some applications ...


I have tried this script in order to disactivate the screensaver for my TV application :

#!/bin/sh
xset s off
kwintv
xset s on

But it doesn't seem to work, do you know where I'm wrong ?
 
Old 07-05-2003, 10:31 PM   #2
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
Re: How to disable screensaver for some applications ...

Quote:
Originally posted by legroschat
I have tried this script in order to disactivate the screensaver for my TV application :

#!/bin/sh
xset s off
kwintv
xset s on

But it doesn't seem to work, do you know where I'm wrong ?
That worked for me but the next time I rebooted it no longer
worked. I would like to destroy delete disable remove uninstall
any and all screen savers and I get the impression all I can do is run the damn thing and set it to 720 minutes. What an idiotic fucntion. Some of us hate screensavers and nuke em as soon as theya re found. Now if only I could find it. Mandrake 9.1.
the other think that worked sometimes was
setterm -blank 0
though I dont think it worked.
And there is no /etc/defaults/rc.conf with which I can
say xset -dpms
Bunch of idiots think I want screensavers......I want to have some control of it (As I slam the keyboard again to get rid of the blank)
Pretty soon the keys will be popping out of that keyboard
(To illustrate how stupid and disliked this function is to some of us)
IF you insist on screen savers fine but leave me out of it Jeeze.
 
Old 07-06-2003, 12:23 AM   #3
kamsin
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
AFAIK, xset can only control X's internal screensaver... not external ones like xscreensaver et al. Here's a little script that I use for this purpose.

Code:
#!/usr/bin/bash

if [ ! -z "`ps -e | egrep xscreensaver$`" ]; then
    echo "Stopping XScreenSaver"
    xscreensaver-command -exit
    $*
    echo "Restarting XScreenSaver"
    xscreensaver -no-splash &
else
    echo "XScreenSaver was not active"
    $*
fi
Save this to a file and run it such as:

nosaver.sh quake3

(you can also pass parameters to the program if needed.)
 
Old 08-28-2003, 01:26 AM   #4
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
I know this is an old thread, but I came across it and tried to use that script as recommended

one thing I changed was

#!/usr/bin/bash

TO

#!/bin/bash

however, any of these changes wouldnt' work

whenever I run for example

./nosaver.sh gmplayer
.nosaver.sh
./nosaver.sh quake
or any other application, then it comes out as
bash: ./nosaver.sh: Permission denied

I couldnt' really see anything that has to be done as root - I didn't wanna try root as for security purposes
 
Old 08-28-2003, 02:03 AM   #5
kamsin
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
Hi,

Did you mark the script executable? The error message seems to be indicating that it hasn't been. Use 'chmod 755 nosaver.sh' to set the correct permissions.

You could also run it such as: 'sh nosaver.sh gmplayer'
 
Old 08-28-2003, 02:49 AM   #6
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
that'll do it! works great! thanks a lot again for the hint and little nice script
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can MythTV disable the gnome screensaver? cdhgee Linux - Software 1 03-06-2012 05:07 PM
what are the services i can disable, also disable ads, banners in konqueror? greythorne SUSE / openSUSE 3 03-16-2005 09:30 AM
Console screensaver won't disable jev-bird Linux - Software 0 10-13-2004 01:51 PM
Disable screensaver in slack 9.1 without any x or sth ice_world Linux - Newbie 3 06-06-2004 01:52 PM
Who is Knowing about daemon applications and how to develop these applications? ms_890 Linux - Software 0 04-14-2004 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 AM.

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