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
 
LinkBack Search this Thread
Old 11-24-2002, 09: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, 09: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-05-2003, 11:23 PM   #3
kamsin
LQ Newbie
 
Registered: May 2003
Posts: 8

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, 12:26 AM   #4
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
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, 01:03 AM   #5
kamsin
LQ Newbie
 
Registered: May 2003
Posts: 8

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, 01:49 AM   #6
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 12:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration