I notice that "very partial" solution for me is to switch to console
(alt+ctrl+f1)
and as a root run ./screenoff script. At least this works and I can use it
to lid.sh script, for example something like this

-----------
#open
screenon
chvt 7
# close
chvt 12
screenoff
-----------

On Sun, Feb 15, 2009 at 12:22 PM, Marcin Zwd <marcin...@gmail.com> wrote:
> 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 --------------------
> #!/bin/bash
> 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
>        else
>                exit
>        fi
> done >/dev/null 2>&1
>
> But even now screen is back on again!!!
>
> I'm using gentoo stable (gnome)
>  x11-base/xorg-server-1.3.0.0-r6
>  x11-drivers/nvidia-drivers-177.82
> without
>  gnome-extra/gnome-screensaver
>
>
> Thanks in advance for any suggestion
>

Reply via email to