public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to turn off the screen permanently
@ 2009-02-15 11:22 Marcin Zwd
  2009-02-15 11:56 ` [gentoo-user] " Marcin Zwd
  2009-02-19  9:49 ` [gentoo-user] " Vladimir Rusinov
  0 siblings, 2 replies; 9+ messages in thread
From: Marcin Zwd @ 2009-02-15 11:22 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] Re: How to turn off the screen permanently
  2009-02-15 11:22 [gentoo-user] How to turn off the screen permanently Marcin Zwd
@ 2009-02-15 11:56 ` Marcin Zwd
  2009-02-19  9:49 ` [gentoo-user] " Vladimir Rusinov
  1 sibling, 0 replies; 9+ messages in thread
From: Marcin Zwd @ 2009-02-15 11:56 UTC (permalink / raw
  To: gentoo-user

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 <marcinzwd@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
>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-15 11:22 [gentoo-user] How to turn off the screen permanently Marcin Zwd
  2009-02-15 11:56 ` [gentoo-user] " Marcin Zwd
@ 2009-02-19  9:49 ` Vladimir Rusinov
  2009-02-19 12:58   ` Saphirus Sage
  2009-02-20 19:00   ` Marcin Zwd
  1 sibling, 2 replies; 9+ messages in thread
From: Vladimir Rusinov @ 2009-02-19  9:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

On Sun, Feb 15, 2009 at 2:22 PM, Marcin Zwd <marcinzwd@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!


Try following:
sleep 1 && xset dpms force off



-- 
Vladimir Rusinov
http://greenmice.info/

[-- Attachment #2: Type: text/html, Size: 1220 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-19  9:49 ` [gentoo-user] " Vladimir Rusinov
@ 2009-02-19 12:58   ` Saphirus Sage
  2009-02-20 19:16     ` Marcin Zwd
  2009-02-20 19:00   ` Marcin Zwd
  1 sibling, 1 reply; 9+ messages in thread
From: Saphirus Sage @ 2009-02-19 12:58 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

On Feb 19, 2009, at 4:49 AM, Vladimir Rusinov  
<vladimir@greenmice.info> wrote:

>
>
>
>
> On Sun, Feb 15, 2009 at 2:22 PM, Marcin Zwd <marcinzwd@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!
>
> Try following:
> sleep 1 && xset dpms force off
>
>
> -- 
> Vladimir Rusinov
> http://greenmice.info/

Given you're using nvidia, if you just use the nvidia settings app,  
the graphical one, you can just disable the screen. But, that one's  
actually perminant, as in removing that screen from xorg.conf 

[-- Attachment #2: Type: text/html, Size: 1710 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-19  9:49 ` [gentoo-user] " Vladimir Rusinov
  2009-02-19 12:58   ` Saphirus Sage
@ 2009-02-20 19:00   ` Marcin Zwd
  2009-02-21 15:25     ` Florian Philipp
  1 sibling, 1 reply; 9+ messages in thread
From: Marcin Zwd @ 2009-02-20 19:00 UTC (permalink / raw
  To: gentoo-user

On Thu, Feb 19, 2009 at 10:49 AM, Vladimir Rusinov
<vladimir@greenmice.info> wrote:
> On Sun, Feb 15, 2009 at 2:22 PM, Marcin Zwd <marcinzwd@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!
>
> Try following:
> sleep 1 && xset dpms force off
>

Thanks, I tried that before as well. Besides the screen is turning off, however
just for a few seconds. My guess is that probably gnome or some other
apps is turning the screen back on.

So, it seems that only I have this kind of problem :(

Marcin



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-19 12:58   ` Saphirus Sage
@ 2009-02-20 19:16     ` Marcin Zwd
  0 siblings, 0 replies; 9+ messages in thread
From: Marcin Zwd @ 2009-02-20 19:16 UTC (permalink / raw
  To: gentoo-user

On Thu, Feb 19, 2009 at 1:58 PM, Saphirus Sage <saphirus497@gmail.com> wrote:
>
> Given you're using nvidia, if you just use the nvidia settings app, the
> graphical one, you can just disable the screen. But, that one's actually
> perminant, as in removing that screen from xorg.conf
>

I tried that, but is seems that I cannot disable the screen without some
other screen connected. So, for instance if I connect an external monitor,
then it would be possible. However connecting an external monitor is not
really an option for me.

Thanks,
Marcin



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-20 19:00   ` Marcin Zwd
@ 2009-02-21 15:25     ` Florian Philipp
  2009-02-22 10:15       ` Marcin Zwd
  0 siblings, 1 reply; 9+ messages in thread
From: Florian Philipp @ 2009-02-21 15:25 UTC (permalink / raw
  To: gentoo-user

Marcin Zwd schrieb:
> On Thu, Feb 19, 2009 at 10:49 AM, Vladimir Rusinov
> <vladimir@greenmice.info> wrote:
>> On Sun, Feb 15, 2009 at 2:22 PM, Marcin Zwd <marcinzwd@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!
>> Try following:
>> sleep 1 && xset dpms force off
>>
> 
> Thanks, I tried that before as well. Besides the screen is turning off, however
> just for a few seconds. My guess is that probably gnome or some other
> apps is turning the screen back on.
> 
> So, it seems that only I have this kind of problem :(
> 
> Marcin
> 

No, I have this problem, too. When I use 'xset dpms force off' for the 
first few times, it works (screen stays off). After that, it always 
turns back on.

It also didn't go away when I switched from XFCE to GNOME.

The problem has been there since I bought my notebook 1.5 years ago. I 
just live with it.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-21 15:25     ` Florian Philipp
@ 2009-02-22 10:15       ` Marcin Zwd
  2009-02-22 11:53         ` Marcin Zwd
  0 siblings, 1 reply; 9+ messages in thread
From: Marcin Zwd @ 2009-02-22 10:15 UTC (permalink / raw
  To: gentoo-user

On Sat, Feb 21, 2009 at 4:25 PM, Florian Philipp
<lists@f_philipp.fastmail.net> wrote:
>
> No, I have this problem, too. When I use 'xset dpms force off' for the first
> few times, it works (screen stays off). After that, it always turns back on.
>
> It also didn't go away when I switched from XFCE to GNOME.
>
> The problem has been there since I bought my notebook 1.5 years ago. I just
> live with it.
>

Thanks. At least I know that this is not something wrong with my configuration.
As I mention before this is a small problem and of course I can live
with it too, but
this is not a point. I often leave my notebook for a few hours to compile some
programs and simply it would be nice if the screen stays off during that time.
Moreover, if the lid is closed I expect that the screen stays off as well.
Fortunately, at least I have the simple solution with switching to the
console ...

Marcin



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] How to turn off the screen permanently
  2009-02-22 10:15       ` Marcin Zwd
@ 2009-02-22 11:53         ` Marcin Zwd
  0 siblings, 0 replies; 9+ messages in thread
From: Marcin Zwd @ 2009-02-22 11:53 UTC (permalink / raw
  To: gentoo-user

Lately, I notice that when I go back to fluxbox then everything seems
to be fine. Apparently, this is the problem with GNOME or some other
apps. At this point I do not know exactly how the wake up of x11 works,
but I have a question. Is it possible to set (some) options (xorg.conf?) that
*only* upon receiving keyboard or mouse events the screen is back on?

Marcin



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-02-22 11:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15 11:22 [gentoo-user] How to turn off the screen permanently Marcin Zwd
2009-02-15 11:56 ` [gentoo-user] " Marcin Zwd
2009-02-19  9:49 ` [gentoo-user] " Vladimir Rusinov
2009-02-19 12:58   ` Saphirus Sage
2009-02-20 19:16     ` Marcin Zwd
2009-02-20 19:00   ` Marcin Zwd
2009-02-21 15:25     ` Florian Philipp
2009-02-22 10:15       ` Marcin Zwd
2009-02-22 11:53         ` Marcin Zwd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox