LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2008, 07:18 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
Screen save


I am setting up a Debian system.

I have installed "sudo" then installed "xorg" and "xfce4" and thats pretty much it over and above a standard debian install.

After about 20 minutes of inactivity, the screen blanks during an X session.

What are the mechanisms which handle this screen blanking? (I ask because I haven't installed any screen saver packages that I know of).

I don't want the screen to go blank at all. Where should I look in order to reconfigure the screen blanking and stop it from doing that?

Regards,
Greenie
 
Old 04-12-2008, 08:21 AM   #2
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Code:
sudo xset s off
should disable xorg's automatic screen blanking (it's built into X).
If you want to check if it's really working (without waiting 20 minutes) you could do something like this:
Code:
sudo xset s 3 /* screen will go blank after 3 seconds */
sudo xset s off /* won't go off, even after the prviously specified 3-second timeout */
By the way, xset s off seems to be equivalent to xset s 0.

Also make sure you have DPMS disabled. While..
Code:
sudo xset -dpms
..turns it off, it is still automatically re-enabled upon X restart. To make sure it stays off, add..
Code:
Options "NoDPMS"
..to your screen section in /etc/X11/xorg.conf.

You can always check your current settings with xset -q.

Last edited by Maligree; 04-12-2008 at 08:50 AM. Reason: DPMS part added.
 
Old 04-12-2008, 08:20 PM   #3
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Hey thanks Maligree.

I did:

Code:
sudo xset s 3
and sure enough the screen went blank after 3 seconds.

Next I added:

Code:
 Options        "NoDPMS"
to the monitor section of xorg.conf.

After restarting X, the screen no longer went blank after 3 seconds, but still went blank after 10 minutes.

I then again did:

Code:
 xset s 3
and the screen started blanking again after 3 seconds.

I then did:

Code:
xset -q
and noticed that while the DPMS is disabled, the built in screensaving of X is still working uless we do:

Code:
 sudo xset s off
So I then put the following line into the .bashrc file:

Code:
 sudo xset s 0 0
But the screen still blanks after 10 minutes, although judging from the output of xset -q below, there should not be any more screen blanking:

Code:
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x20    BlackPixel:  0    WhitePixel:  65535
Font Path:
  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Standby: 1200    Suspend: 1800    Off: 2400
  DPMS is Disabled
Is there another underlying system external to X which could be blanking the screen after 10 minutes?

Last edited by greengrocer; 04-12-2008 at 11:48 PM.
 
Old 04-13-2008, 09:07 AM   #4
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Well this turns out to be a tough one.. I just noticed my Fedora box is acting the same way. Doesn't seem to be an X issue, since my screen goes blank after 10 minutes even when in runlevel three (no X).. Thought it may be an ACPI thing,but disabling acpid gave nothing.

Huh. Maybe check your BIOS settings for some powersaving options? No other ideas right now..

Last edited by Maligree; 04-13-2008 at 09:08 AM.
 
Old 04-13-2008, 10:08 AM   #5
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Just a guess, but would the xscreensaver daemon be running by default in Debian? Do a ps aux | grep xscreensaver and see what's up. If it's running, you can try to determine how it's called at boot, and disable it....

cheers,
 
Old 04-15-2008, 07:41 AM   #6
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Quote:
Just a guess, but would the xscreensaver daemon be running by default in Debian?
Interesting you mention xscreensaver.

Since my last post, I installed xscreensaver with a simple:

Code:
apt-get install xscreensaver
When I opened the xscreensaver settings GUI, I received a prompt saying:

"xscreensaver daemon not running, would you like to start it now?". --- So that answers your question mrclisdue.

So I started the daemon, turned off the power management in the xscreensaver GUI (there is a check box for this).

Then I set xset to 0 0 and I think that has achieved what we set out to achieve from my tests so far. Not 100% convinced just yet though. Maligree, would you like to try this and see if you get same results?

Overall I think there is another bug in X.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Listing Output Save in a File rolly frando Linux - Newbie 3 07-04-2005 01:23 AM
screen goes to power save mode in X michael_j_w Fedora 0 01-08-2005 12:17 AM
hi .. how i print screen and save it as jpg or other format? New In Linux 11 Linux - Newbie 4 07-28-2004 05:56 PM
Who can save my screen? tony yu Mandriva 2 04-07-2004 11:32 PM
Screen Goes Power Save Mode CrAzY G Linux - General 10 01-18-2004 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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