DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
2.6.8-7 w/ dsdt-initrd, debianlogo patches No suspend enabled in kernel, NVIDIA 5336 or 6111 depending, currently 5336 (GeForce 4 440Go)
Inspiron 8200 w/ Precision M50 A12 BIOS (C/Dock II functionallity)
ACPI components compiled as modules (no fan, that is done by BIOS; I use i8k module and gkrellm & i8k plugin for that)
How do I configure ACPI (lid.sh) to blank the screen and turn off backlight upon LID CLOSE and reenergize upon open?
I have KDE do this after five minutes without user interaction.
Would like to perform this action of blanking screen/backlight off during non-X as well.
Please include code and a place of a good direction to start.
I've been trying to put my nVidia GForce 2 card to sleep. Before booting Linux, my computer turns the display off after 1 minute (I can tell that turns of the graphic card because the power consumption - monitor excluded - drops by 25 watts)! I could not get the computer to turn the display off in linux, is there a way to enable that so Linux can listen to my ACPI BIOS?
I have kernel 2.6.6 with ACPI support (it does work) and I am using the latest nvidia driver that has ACPI support (I also tried switching from agpgart to nvagp but it didn't help).
ANOTHER POSSIBLE SOUTION, would be to turn the graphic card off through linux. The only way I know how to turn the display off is using KDE Display Power Management but that only turns of the monitor not the graphic card.
I'd really appriciate any help, specially since I've wasted more power than one year of turning display off by compiling the kernel so many time!!!
Last edited by hoomanb on 07-05-2004 at 06:12 PM
Reason Edited: Correction
download and install acpid. Here is a mini-howto that shows a command being executed on the button/power event. The lid would be a button/lid event. There is a little more to it that I'm still figureing out, but you would also need a command that would blank the screen and turn off the backlight.
ok, I think i've got it figured out now. My default acpi event handler looks liek this:
Code:
case "$group" in
button)
case "$action" in
power) /sbin/init 0
;;
lid)
case `cat /proc/acpi/button/lid/LID/state | awk '{print $2}'` in
open) /usr/X11R6/bin/xset -display :0 dpms force on
;;
closed) /usr/X11R6/bin/xset -display :0 dpms force off
;;
esac
;;
sleep) echo 1 >/proc/acpi/sleep
;;
*) logger "ACPI action $action is not defined"
;;
esac
;;
*)
logger "ACPI group $group / action $action is not defined"
;;
esac
To get xset to work for the acpi daemon, you have to give root permission to use the X display. you can do this by running a command like this:
Code:
xhost +local:root
the sleep button still doesn't do what it's supposed to do (it starts to sleep, and then comes back), but the backlight turns off alright.
also, the following needs to be in the Monitors section of your x config:
provided your X is propery configured and your screen supports is, just use "xset dpms force off" to switch off the display, and "xset dpms force on" to switch it back on
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.