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 04-27-2004, 04:02 AM   #1
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Rep: Reputation: 30
How to disable screen blanking in X?


Searched through the forum but seems no-one has asked this before. Why does my Debian (woody) Linux keep blanking the monitor in XFree86? The screen goes blank every 15 min. until I press something. I want to disable this!

Already did these:
setterm -blank 0
xset -dpms
xset s noblank
xset s off

It still keeps blanking. What shall I try next? Also disabled all power management from KDE. And I did all of these to both, root and the normal user.
 
Old 04-27-2004, 06:16 AM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
I've also been trying to get this to stop on my red hat and also my fedora box. i't would be great to find the answer. I was actually looking for a few hours today to no avail.

>Craig
 
Old 05-31-2004, 10:44 AM   #3
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
It sounds like you've already tried the things I have done on my RedHat 8.0 laptop. As root I tried:

xset -dpms
xset s off
xset s noblank

One thing you didn't mention is what 'xset q' tells you. If it says that your dpms is disabled and that the screensaver is off, then I would look at your bios settings.

I'm not sure what type of pc you are using, but on my laptops there is the ability to turn off any power management being done in the bios.

Also for others, these links have addressed this issue.
It sounds like you've already tried the things I have done on my RedHat 8.0 laptop. As root I tried:

xset -dpms
xset s off
xset s noblank

One thing you didn't mention is what 'xset q' tells you. If it says that your dpms is disabled and that the screensaver is off, then I would look at your bios settings.

I'm not sure what type of pc you are using, but on my laptops there is the ability to turn off any power management being done in the bios.

Also for others, these links have addressed this issue.
http://www.linuxquestions.org/questi...creen+blanking
http://www.linuxquestions.org/questi...creen+blanking
 
Old 05-31-2004, 10:46 AM   #4
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Whoops - sorry about the accidental cut-n-paste
 
Old 06-01-2004, 12:55 AM   #5
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by mattkat
[B]One thing you didn't mention is what 'xset q' tells you. If it says that your dpms is disabled and that the screensaver is off, then I would look at your bios settings.
That's what it says... The first thing I did, was to check the BIOS for power management settings. I've turned them all off. With Windows 98, though, it did not blank the screen. So I assume this is a problem with Linux. Either X or something else is doing it.
 
Old 06-01-2004, 07:51 AM   #6
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
It sounds like you are on the right track. Do you boot your linux box to runlevel 5 - to X? If so, most of them will allow you to boot with another windows manager. On my redhat box, there is a menu item on the login screen labeled "Session" which allows me to pick a different login manager.

You can continue to diagnose the problem by logging in with different window managers. The pc I have disabled screen blanking on boots into gnome with a default user. I doubt the default user has anything to do with my success.

Some of the other links I posted mention disabling screensavers in KDE. I don't use KDE much so I'm of no help if that is really where the problem is. Good luck.
 
Old 06-02-2004, 03:59 AM   #7
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by mattkat
It sounds like you are on the right track. Do you boot your linux box to runlevel 5 - to X?
I guess runlevel 5 does not mean booting into X in Debian. But anyways, I boot into runlevel 2, which is the text mode, X is not starting automatically.

I'm not running any window manager, just a single program starting with X. But I have the screen blanking problem at least with Fluxbox, IceWM and without any window manager. KDE is much too heavy for this computer, but I do have it installed and also disabled screensavers and power managements from the KDE Control Center.

I guess it's the X Server itself causing the screen blanking.
 
Old 06-09-2004, 05:55 AM   #8
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Solved!

Actually, it was more than a simple thing to do. X just simply didn't remember the screen blanking settings, after each time it had been closed.

So everytime I start X, I need to enter:

xset s off
xset s noblank

I made a script to do this after each X startup.


Now I wish I could make auto-login for a normal user with no rights... and to console, since I'm not booting into X by default.
 
Old 06-16-2004, 12:02 PM   #9
obewan
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
I've got the same problem.

Can you describe the script you wrote and how you execute it each boot (with chron?) to get it to work?
 
Old 06-17-2004, 03:45 PM   #10
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by obewan
Can you describe the script you wrote and how you execute it each boot (with chron?) to get it to work?
I start X manually from the command line, so I just edited $HOME/.xinitrc and added a line there:
Code:
exec $HOME/launcher
Home folder contains the launcher-script, which has:
Code:
xset s off
xset s noblank

exec firefox
The last line would naturally be "exec startkde", or "exec icewm-session", depending on which window manager you use.

The purpose of this computer is just display continuously some webpages. I also made it to automatically log in and start X. This I made by writing /etc/rc2.d/S99alogin-script (which contains "login -f username") and renaming S99rmnologin to S89rmnologin. $HOME/.bash_profile has the "startx"-command then.
 
Old 06-17-2004, 07:43 PM   #11
obewan
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Thanks for your reply.

I also found an alternative solution.

I add the following to /etc/X11/xdm/Xsetup_0

xset -dpms // This *should* turn off the dpms power management stuff
xset s noblank // This should turn off screen blanking
xset s off // This turns off the screen saver

I *ALSO* need to comment out the dpms statement in the monitor section of
/etc/X11/XF86Config

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unprobed Monitor"
HorizSync 31.5 - 37.9
VertRefresh 50.0 - 70.0
# Option "dpms"
EndSection


This solved the problem for me on Redhat 9.
 
Old 06-18-2004, 07:27 AM   #12
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by obewan
Thanks for your reply.

I also found an alternative solution.
I noticed that your way might had been easier, after all. Thanks for pointing it out.
 
Old 06-18-2004, 10:58 AM   #13
ericth
LQ Newbie
 
Registered: Jun 2004
Location: Los Angeles, CA
Distribution: Fedora Core 1
Posts: 1

Rep: Reputation: 0
I've just installed Fedora 1 and have the same problem. I did all what you guys suggested but it didn't work for me. I think this is still a problem which was submitted to RedHat as a bug for a pending solution. I'm thinking about trying Mandrake 10 to see if it can be better.
 
Old 07-15-2004, 06:27 AM   #14
8networks
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Another method to disable the screensaver is to goto the menu bar / preferences / control panel / screen saver

set MODE to "Disable Screensaver".
 
Old 07-15-2004, 05:15 PM   #15
junkken
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
My Panasonic monitor on IBM G30 running Linux debian 2.4.25-1-386 was blanking out after 10 minutes while KDE was idle. I edited XF86Config and removed Option "dpms" like obewan mentioned and followed the directions in the file to allow future updating. After rebooting, screen no longer blanks out. I did not run # dpkg-reconfigure xserver-xfree86 because this sent me thru a new configuration wipeing out the changes I just made.
 
  


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
how to disable screen blanking in fedora core 1? ujjwal_mh Linux - Software 3 07-26-2004 11:58 AM
how can I disable the auto screen blanking? r0dr0ddy Linux - Newbie 9 02-03-2004 01:33 PM
screen blanking nowonmai Linux - Software 2 08-15-2003 09:44 AM

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

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