Gentoo Archives: gentoo-user

From: Marcin Zwd <marcinzwd@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How to turn off the screen permanently
Date: Sun, 15 Feb 2009 11:22:48
Well, I've just upgraded my laptop. The old one has ati
radeon r250 graphics card.  On this card I can easily turn
off the screen using nice program "radeantool" of course
"xset dpms force off" worked as well. And "turn off" was
permanent.  It is worth to mention that I was using
x11-drivers/xf86-video-ati opensource drivers...  On the
other hand, the new laptop has nvidia (quadro 135) aboard
and now I'm using x11-drivers/nvidia-drivers-177.82.
Everything works fine except one tiny problem now if I turn
off the screen and backlight after a few seconds the
backlight is back on!

For example:

$ xset dpms 0 0 5

The screen is nicely turning off after 5 seconds but after
3-8 seconds the backlight is back on! Then, I notice that
this is the screensaver. So I tried again

$ xset s off
$ xset dpms 0 0 5

And now after about 10 seconds I have whole screen back on!
I even tried vbetool dpms off. By the way it is not working
smoothly for me, so manage little ugly hack

--- screenoff --------------------
for ((i=0;i<256;i++)); do
        /usr/sbin/vbetool dpms off &
        sleep 0.5
        PID=`pidof vbetool`
        if [ -n "$PID" ]; then
                kill -9 $PID >/dev/null 2>&1
done >/dev/null 2>&1

But even now screen is back on again!!!

I'm using gentoo stable (gnome)

Thanks in advance for any suggestion


Subject Author
[gentoo-user] Re: How to turn off the screen permanently Marcin Zwd <marcinzwd@×××××.com>
Re: [gentoo-user] How to turn off the screen permanently Vladimir Rusinov <vladimir@×××××××××.info>