1 |
I notice that "very partial" solution for me is to switch to console |
2 |
(alt+ctrl+f1) |
3 |
and as a root run ./screenoff script. At least this works and I can use it |
4 |
to lid.sh script, for example something like this |
5 |
|
6 |
----------- |
7 |
#open |
8 |
screenon |
9 |
chvt 7 |
10 |
# close |
11 |
chvt 12 |
12 |
screenoff |
13 |
----------- |
14 |
|
15 |
On Sun, Feb 15, 2009 at 12:22 PM, Marcin Zwd <marcinzwd@×××××.com> wrote: |
16 |
> Well, I've just upgraded my laptop. The old one has ati |
17 |
> radeon r250 graphics card. On this card I can easily turn |
18 |
> off the screen using nice program "radeantool" of course |
19 |
> "xset dpms force off" worked as well. And "turn off" was |
20 |
> permanent. It is worth to mention that I was using |
21 |
> x11-drivers/xf86-video-ati opensource drivers... On the |
22 |
> other hand, the new laptop has nvidia (quadro 135) aboard |
23 |
> and now I'm using x11-drivers/nvidia-drivers-177.82. |
24 |
> Everything works fine except one tiny problem now if I turn |
25 |
> off the screen and backlight after a few seconds the |
26 |
> backlight is back on! |
27 |
> |
28 |
> For example: |
29 |
> |
30 |
> $ xset dpms 0 0 5 |
31 |
> |
32 |
> The screen is nicely turning off after 5 seconds but after |
33 |
> 3-8 seconds the backlight is back on! Then, I notice that |
34 |
> this is the screensaver. So I tried again |
35 |
> |
36 |
> $ xset s off |
37 |
> $ xset dpms 0 0 5 |
38 |
> |
39 |
> And now after about 10 seconds I have whole screen back on! |
40 |
> I even tried vbetool dpms off. By the way it is not working |
41 |
> smoothly for me, so manage little ugly hack |
42 |
> |
43 |
> --- screenoff -------------------- |
44 |
> #!/bin/bash |
45 |
> for ((i=0;i<256;i++)); do |
46 |
> /usr/sbin/vbetool dpms off & |
47 |
> sleep 0.5 |
48 |
> PID=`pidof vbetool` |
49 |
> if [ -n "$PID" ]; then |
50 |
> kill -9 $PID >/dev/null 2>&1 |
51 |
> else |
52 |
> exit |
53 |
> fi |
54 |
> done >/dev/null 2>&1 |
55 |
> |
56 |
> But even now screen is back on again!!! |
57 |
> |
58 |
> I'm using gentoo stable (gnome) |
59 |
> x11-base/xorg-server-1.3.0.0-r6 |
60 |
> x11-drivers/nvidia-drivers-177.82 |
61 |
> without |
62 |
> gnome-extra/gnome-screensaver |
63 |
> |
64 |
> |
65 |
> Thanks in advance for any suggestion |
66 |
> |