You are not logged in.

#1 2007-09-27 17:23:36

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

How to disable "screen blackening"

Good evening,

there is an issue, which I could not track down until now: When watching a video eg. on youtube, I am usually idle, regarding my input devices. However, the screen turns all black after approx. 5 minutes, forcing me to move the mouse or give another input in order to have the screen displaying the desktop again.

I find this 'feature' very annoying and would be grateful if anyone could tell me how to turn it off.

regards,
cg


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#2 2007-09-27 17:40:34

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: How to disable "screen blackening"

It's called "blanking", and it's sort of a built in screensaver in xorg. You can have that as well as the "real" blanking where dpms turns monitor off.
control it with "xset", or with an "Option" stanza in xorg.conf.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#3 2007-09-27 21:50:50

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: How to disable "screen blackening"

Are you using mplayer and xscreensaver?  Arch mplayer package is built with gnome screensaver patch which makes it possible for mplayer to stop the gnome screensaver while something is being played - because of this patch, however, mplayer can't control xscreensaver which I for example use. 

I just recompile mplayer without the patch and then I can enable "stop xscreensaver" option in preferences and it all works as it should.

EDIT: Oh, wait, I guess I didn't read you post very carefully.... Nevermind hmm

Last edited by fwojciec (2007-09-28 01:54:44)

Offline

#4 2007-09-28 00:37:30

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: How to disable "screen blackening"

At the end of /etc/rc.sysinit is an option for blank time 15 minutes. Some people have said that changing this to zero works for them. It doesn't work for me. It just keeps going back to 15 minutes, even after I change it to zero. I had to add this to my xorg:
under section serverlayout

Option "BlankTime" "0"
      Option "StandbyTime" "0"
      Option "SuspendTime" "0"
      Option "OffTime" "0"

This is the only thing that works for me. It should work for you. And in the meantime, can anyone tell me why my rc.sysinit keeps going back to the 15 minutes?!

Offline

#5 2007-09-28 01:01:51

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: How to disable "screen blackening"

Because that file gets overwritten by every initscripts update. setterm has nothing to do with Xorg anyway.


1000

Offline

#6 2007-09-28 02:58:14

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: How to disable "screen blackening"

byte wrote:

Because that file gets overwritten by every initscripts update. setterm has nothing to do with Xorg anyway.

Well, every Arch install I have ever done, with or without X, goes blank after 15 minutes. It goes blank while I watch videos in X, or if I am sitting in the shell. xset never worked for me. sad
The only workaround I have found are the options I posted above, but if anyone has a cleaner suggestion, I am all ears. smile

Offline

#7 2007-09-28 14:09:24

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: How to disable "screen blackening"

this bugs me as well.


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#8 2007-09-28 17:44:23

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: How to disable "screen blackening"

listen, "xset s" does essentially what gnome-screensaver does, and "xset dpms" what gnome-power-manager does. If you run those applications, xset will have no effect, since gnome deactivate all X preferences.
Also you shouldn't run xset as root. That rules out putting xset in rc.local or any other script run as root. use your .xinitrc or gnomes "session".

xset s off

"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#9 2007-11-03 19:52:29

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: How to disable "screen blackening"

Good evening,

there is an entry in the end of /etc/rc.sysinit which could be interesting in this regard.

# Screen blanks after 15 minutes idle time
/usr/bin/setterm -blank 15

Do you think that this entry causes the default blanking?


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#10 2007-11-04 01:18:15

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: How to disable "screen blackening"

chaosgeisterchen wrote:

Good evening,

there is an entry in the end of /etc/rc.sysinit which could be interesting in this regard.

# Screen blanks after 15 minutes idle time
/usr/bin/setterm -blank 15

Do you think that this entry causes the default blanking?

I posted this above:

Misfit138 wrote:

At the end of /etc/rc.sysinit is an option for blank time 15 minutes

Offline

#11 2007-11-04 10:06:36

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: How to disable "screen blackening"

Ah, sorry, overread this one.

I'll try to apply it and will see if it works.


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#12 2007-11-04 12:53:36

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: How to disable "screen blackening"

You may want to remember this:

byte wrote:

Because that file gets overwritten by every initscripts update.

I'm not sure when initscripts are updated though.

Also, instead of calling setterm -blank 0, I just deleted the whole line. I haven't taken the time to test though (but my system boots fine)!

Offline

#13 2009-03-05 14:58:49

taz
Member
Registered: 2009-03-04
Posts: 24

Re: How to disable "screen blackening"

my rc.sysinit doesnt have this,
but screen get's down after 15 min (


linux is <3

Offline

#14 2009-03-05 15:28:12

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: How to disable "screen blackening"

What about updating rc.sysinit in /etc/rc.local?
That should be the last thing that happens before the login prompt - and _after_ all other initscripts are finished.

Funnily enough, though, I dont have that entry in _my_ rc.sysinit ... wonder where it comes from.

<edit>
sorry - head under my arm (as usual)
use the 'setterm' command in /etc/rc.local
</edit>

Last edited by perbh (2009-03-05 15:59:44)

Offline

#15 2009-03-05 19:42:28

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: How to disable "screen blackening"

blanking X and blanking terminal are two different things. It looks like these are mixed up (as someone pointed up already).

# Screen blanks after 15 minutes idle time
/usr/bin/setterm -blank 15

is used to set terminal blanking (not X).
Deleting this line will simply keep defaults. This is used by command line freaks who hate X!
But obviously it does not affect X session.

if one enter
in the terminal window (from x session)
xset s off
this will work only per one session. gnome manager is invoking this per each session

to see all xset options run in terminal
xset q
this is going to be really messy as you will see a lot of
"Xlib:  extension "Generic Event Extension" missing on display ":0.0"." stupid errors

if you want to see what you can modify per session
run
xset
without any flags

Last edited by broch (2009-03-05 19:44:19)

Offline

#16 2009-03-06 04:00:54

marduik
Member
Registered: 2009-02-18
Posts: 4

Re: How to disable "screen blackening"

chaosgeisterchen wrote:

Good evening,

there is an issue, which I could not track down until now: When watching a video eg. on youtube, I am usually idle, regarding my input devices. However, the screen turns all black after approx. 5 minutes, forcing me to move the mouse or give another input in order to have the screen displaying the desktop again.

I find this 'feature' very annoying and would be grateful if anyone could tell me how to turn it off.

regards,
cg

Personally I go to system settings, then Display then Power Control. Enable power management. Then put them all to disabled hit apply. done.

Now everytime I update video drivers i have to do it again. but that solved my blanking issue. Hate when a movie goes blank but i hear the sound, its always at a good part lol

Offline

#17 2009-08-18 19:24:50

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: How to disable "screen blackening"

I get this behavior all the time.  Just started popping up again after update so I built this script to toggle it on and off:

#!/bin/bash
# screenblank - Toggle screen blanking/powersaving on/off

XBLANKTEXT=$(xset -q | grep timeout | awk '{printf $2}')
DPMSTEST=$(xset -q | grep "  DPMS is Enabled")

if [[ "$XBLANKTEXT" -gt 0 ]] || [[ -n "$DPMSTEST" ]]; then
  xset s off; xset -dpms
  echo " Disabled screen blanking and powersaving"; else
  xset s on; xset +dpms
  echo " Enabled screen blanking and powersaving"
fi

Last edited by Gen2ly (2009-08-18 19:27:12)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#18 2009-08-18 21:11:18

kowalski
Member
Registered: 2009-05-07
Posts: 82

Re: How to disable "screen blackening"

Doesn't one need an 'Option "DPMS" "True"' entry in the monitor section in /etc/X11/xorg.conf to enable dpms features?

Edit: At least I do ;-)

Last edited by kowalski (2009-08-18 21:11:31)


He who says A doesn't have to say B. He can also recognize that A was false.

Offline

#19 2010-03-07 21:26:46

YAOMTC
Member
Registered: 2010-02-23
Posts: 204

Re: How to disable "screen blackening"

I still can't change this. Why didn't 'xset s off' work?

Offline

#20 2010-03-07 21:44:49

SnapShot
Member
Registered: 2008-08-26
Posts: 43

Re: How to disable "screen blackening"

Maybe this is related to this issue http://blogs.gnome.org/hughsie/2009/08/ … of-bodges/

Quote from the end of the article:

If you are trying to run gnome-power-manager with a broken version of X, gnome-power-manager will warn you in the notification area. Distributors will just need to patch xserver with my previous patch and the current one to have all the issues resolved with git master.

This blog entry is 6 months old and I don't know if these patches are included in the latest version of X server or if X server in Arch is patched. I know I've been getting warnings from gnome power manager about this in the notification area recently.

Last edited by SnapShot (2010-03-07 21:46:10)

Offline

Board footer

Powered by FluxBB