LinuxQuestions.org
Visit Jeremy's Blog.
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 11-10-2003, 02:15 PM   #1
alpinweiss88
LQ Newbie
 
Registered: Oct 2003
Location: Chicagoland
Distribution: Redhat, Mandrake, SUSE, Peanut, Knoppix
Posts: 14

Rep: Reputation: 0
RedHat8.0 screen blanking


Hopefully someone can figure this out, because I can't.

I have an old P166 running at work with a 15" monitor. I just use it to display various pictures in a slideshow (shell script using xloadimage). I used to have RedHat 6.2 on it, and everything was working fine. But I reinstalled it with RedHat8.0 and am using ICEWM.

Now, the screen goes blank after about 15 minutes. It is like a power-saving feature I guess, because when I move the mouse or hit a key, it comes back on.

Now it isn't the monitor or the BIOS, because it didn't do these before (and I checked the settings)

It isn't apmd, I have disabled that. I don't have xscreensaver installed, and I have tried the command to turn off screen blanking at a console window.

The only thing I can still see that could be doing it is [kapmd]. This is the power management stuff that is built into the kernel. I don't want to have to recompile the kernel to remove this, so somebody please tell me that it is something else that is causing this!

Thanks

Michael
 
Old 11-10-2003, 04:30 PM   #2
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
I have a RedHat 8.0 installation that definately doesn't do what you are claiming. I am using GNOME though - so perhaps it's an Ice setting?
 
Old 11-11-2003, 11:28 AM   #3
alpinweiss88
LQ Newbie
 
Registered: Oct 2003
Location: Chicagoland
Distribution: Redhat, Mandrake, SUSE, Peanut, Knoppix
Posts: 14

Original Poster
Rep: Reputation: 0
Probably is ICE, but...

I was thinking it was ICE too, but I can't figure out how to turn it off. I found this in the icewm FAQ:
--------
By default IceWM uses xlock (without any argument) to lock your screen. There may be several reasons for using a different lock command:

There is no xlock on your machine.
xlock tends to crash on your machine either leaving you locked out (best case) or unlocking your session (worst case).
xlock has some CPU intensive modes compiled in that interfere with your SETI@HOME session.

It is very easy to set a lock command: Simply add


LockCommand="xlock -mode blank"

to your $HOME/.icewm/preferences and xlock will run in blank mode (which shows nothing but a black screen).

The example was chosen on purpose: Using this mode you have the best chance of your monitor going asleep (enter power saving mode).

-----

But I don't have xlock installed. So I tried to set it to a dummy program, and it still happens. I have also tried "xset x noblank", but it doesn't work either.

I did find this on the icewm mailing list archive:

----

> how can I make ice not go into screensaving-mode/lock up the screen
> (currently I set everything I could find with a name even remotely
> similar to screensaver or lock, but my screen still goes blank after a
> while)..

It is not icewm blanking your screen. It is the X system itself. The
behavior can be changed using the "xset" command with "s" (screensaver)
and/or "dpms" (power saving) option. See xset man page for details.

----

I had tried the "xset s" command, but not the one for dpms.
"xset -dpms" didn't work either. Argggh.
 
Old 11-11-2003, 01:58 PM   #4
alpinweiss88
LQ Newbie
 
Registered: Oct 2003
Location: Chicagoland
Distribution: Redhat, Mandrake, SUSE, Peanut, Knoppix
Posts: 14

Original Poster
Rep: Reputation: 0
Possible answer

Maybe I found my answer....

"xset q" will show you the settings you have configured.

Even though I had dpms (Energy Star) disabled, it was still blanking. I could verify that it was the screen saver doing it by setting the timeout to 10 seconds.

"xset s 10 10"

After 10 seconds, the screen would go black, even though I don't have a screensaver installed.

So I set it to this:

"xset s 28800 28800"

This will set the timeout to 8 hours. (I tried 10, but got an "out of range" error)

So I put it in my .Xclients just before I launch icewm, and I should be all set!
Phew!
 
Old 11-11-2003, 02:07 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You can also add

Code:
Option "BlankTime"  "0"
Option "NoPM"  "true"
to the
Section "ServerFlags"
of your /etc/X11/XF86Config


Cheers,
Tink
 
Old 11-11-2003, 02:52 PM   #6
alpinweiss88
LQ Newbie
 
Registered: Oct 2003
Location: Chicagoland
Distribution: Redhat, Mandrake, SUSE, Peanut, Knoppix
Posts: 14

Original Poster
Rep: Reputation: 0
I hate to keep replying to my own messages, but after I thought I had it, the screen went blank again.

You have to have BOTH of the following set for it to work:

"xset s 28800 28800"
"xset -dpms"
 
Old 11-11-2003, 03:46 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Or, as I suggested, turn powersaving off
for X completely ;)

Cheers,
Tink
 
Old 11-11-2003, 04:01 PM   #8
alpinweiss88
LQ Newbie
 
Registered: Oct 2003
Location: Chicagoland
Distribution: Redhat, Mandrake, SUSE, Peanut, Knoppix
Posts: 14

Original Poster
Rep: Reputation: 0
I checked, there is no "ServerFlags" section in my /etc/X11/XF86Config file for me to add those commands to...

Would I need to create that section, like this?:

Section "ServerFlags"

Option "BlankTime" "0"
Option "NoPM" "true"

EndSection
 
Old 11-11-2003, 04:25 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That's it :)

Cheers,
Tink
 
  


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
Screen Blanking b0mb3r Slackware 6 03-16-2005 02:39 PM
How to turn off screen blanking screen saver in run level 3? Arodef Linux - Software 1 01-04-2005 12:50 PM
screen blanking nowonmai Linux - Software 2 08-15-2003 09:44 AM
Screen Blanking/non-X ldieter Linux - General 0 03-11-2002 09:05 PM
Screen Blanking bretthoward Linux - General 7 03-19-2001 05:50 AM

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

All times are GMT -5. The time now is 11:57 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