Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Turnoff LCD when closing Laptop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
xeniac
n00b
n00b


Joined: 21 May 2003
Posts: 11
Location: Vienna DC

PostPosted: Tue May 27, 2003 12:29 pm    Post subject: Turnoff LCD when closing Laptop Reply with quote

OK this sounds really stuipid:
Like all Laptops my Toshiba Satellite 1110 have a little button.
Pressing this button will "shutdown" the display. This stupid Button will be pressed down when closing the Laptop. A nice and simple feature of all laptops over the World.

Now the stupid thing: the LCD is actually running, closing the laptop disables only the background LID, and the LCD eats my battery. :evil:

The good thing is that the LCD Button sends an ACPI event, so i thought it must be possible to shutdown the LCD when closing the Notebook, and turn it on again when i open it.

The only thing i need is a command to do this :?
Does anybody have an idea how i can do this? Please!
_________________
[img:34481681b8]http://www.computerpannen.com/cwm/contrib/ed/kodomagnam.gif[/img:34481681b8]
Traue niemanden der nicht einmal bis 2 zählen kann.
Back to top
View user's profile Send private message
Naughtyus
Guru
Guru


Joined: 14 Jul 2002
Posts: 463
Location: Vancouver, BC

PostPosted: Wed May 28, 2003 7:50 am    Post subject: Reply with quote

You might want to check your BIOS for an option to have it do that automatically. My laptop has this as an option in the BIOS, and I didn't have to configure anything differently than a desktop to get it to work. :)
Back to top
View user's profile Send private message
silverter
Guru
Guru


Joined: 10 Apr 2002
Posts: 491
Location: Ulm, DE

PostPosted: Wed May 28, 2003 9:54 am    Post subject: Reply with quote

I second what Naughtyus said. That's the way it works on my Laptop too.

regards
_________________
-- A Guru was once a Beginner --
Back to top
View user's profile Send private message
en4cer2
n00b
n00b


Joined: 16 Nov 2002
Posts: 7

PostPosted: Tue Jun 03, 2003 3:05 pm    Post subject: Reply with quote

Hi! The tip with the BIOS settings doesn't work for me :/
I can only set it to suspend or suspend to disk...
Can someone say what i have to do to get the LCD display off when i close my notebook?
Back to top
View user's profile Send private message
thagenesis
n00b
n00b


Joined: 18 May 2003
Posts: 36
Location: Germany

PostPosted: Tue Jun 03, 2003 3:57 pm    Post subject: Reply with quote

ACPID is configured through /etc/acpid/events/
The default configuration executes /etc/acpi/default.sh
You must look up which type auf event acpi sends when the notebook is closed (my Acer Travelmate 506t sends "button lid 00000080 00000000")
You can now add that event to default.sh. For example:
Code:
case "$1" in
        button)
                case "$2" in
                        # Close Notebook
                        lid)    /bin/echo 1 > /proc/acpi/sleep
                                ;;
                        *)      logger "ACPI action $2 is not defined"
                                ;;
                esac
                ;;

        *)
                logger "ACPI group $1 / action $2 is not defined"
                ;;
esac
Back to top
View user's profile Send private message
en4cer2
n00b
n00b


Joined: 16 Nov 2002
Posts: 7

PostPosted: Tue Jun 03, 2003 4:19 pm    Post subject: Reply with quote

ah, ok.. THX!
but what must i do to turn the LCD off?
i have found nothing in /proc/acpi what looks like LCD off :/
Back to top
View user's profile Send private message
xeniac
n00b
n00b


Joined: 21 May 2003
Posts: 11
Location: Vienna DC

PostPosted: Wed Jun 04, 2003 10:10 am    Post subject: Reply with quote

Now you are at the same point as me. :?
Why the hell are the now phonix BIOSes so lame?

Does anybody here now a command to turn of the LCD?
_________________
[img:34481681b8]http://www.computerpannen.com/cwm/contrib/ed/kodomagnam.gif[/img:34481681b8]
Traue niemanden der nicht einmal bis 2 zählen kann.
Back to top
View user's profile Send private message
thagenesis
n00b
n00b


Joined: 18 May 2003
Posts: 36
Location: Germany

PostPosted: Wed Jun 04, 2003 10:41 am    Post subject: Reply with quote

Try /bin/echo 1 > /proc/acpi/sleep
This turns off the backlight of the LCD (at least on my notebook). One disadvantage ist, that the picture stays (you can see that with a bright flash light). I havn't found a possibility to execute a VESA DPMS off, but the backlight should be the more power-consuming device so it should be an acceptable solution.
Back to top
View user's profile Send private message
metalac
Apprentice
Apprentice


Joined: 21 Aug 2002
Posts: 191
Location: Seattle, USA

PostPosted: Fri Jun 06, 2003 1:31 am    Post subject: Reply with quote

you might want to get your kernel patched with the newest ACPI so that you get all the newest features and best support, i had to do it to get some of the things like battery status and such.
_________________
>>>>> Ignorance is bliss <<<<<
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum