From: Marcin Zwd <marcinzwd@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: How to turn off the screen permanently
Date: Sun, 15 Feb 2009 12:56:56 +0100 [thread overview]
Message-ID: <3cbca78e0902150356n4add662ds7b1dba420e00c017@mail.gmail.com> (raw)
In-Reply-To: <3cbca78e0902150322n513217afrfcdfc5cb6a42c0c1@mail.gmail.com>
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
>
next prev parent reply other threads:[~2009-02-15 11:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-15 11:22 [gentoo-user] How to turn off the screen permanently Marcin Zwd
2009-02-15 11:56 ` Marcin Zwd [this message]
2009-02-19 9:49 ` 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3cbca78e0902150356n4add662ds7b1dba420e00c017@mail.gmail.com \
--to=marcinzwd@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox