LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-04-2004, 02:31 PM   #1
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian, LMDE, n some untus
Posts: 215

Rep: Reputation: 30
ACPI: edit lid.sh to blank screen, turn backlight off, no-suspend ?????


Debian Linux, SID

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.

Again, nVidia!

Thanks in advance

Last edited by Outabux; 10-04-2004 at 02:33 PM.
 
Old 10-04-2004, 05:33 PM   #2
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian, LMDE, n some untus
Posts: 215

Original Poster
Rep: Reputation: 30
Another thread, same kinda question: both answers would be great!

From this URL ==> http://www.linuxquestions.org/questi...hreadid=201134

Quote:
Turning the graphic card off (ACPI) ( post #1)

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
The answer to this would be great also!!!!!!!!!!!

Keep Viewing, and I'll keep searching.

Thanx Again!
 
Old 10-31-2004, 11:27 PM   #3
bejean
LQ Newbie
 
Registered: Mar 2004
Location: Atlanta, GA
Distribution: Slackware 9.1
Posts: 9

Rep: Reputation: 0
RE: ACPI

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.
 
Old 11-02-2004, 01:49 AM   #4
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian, LMDE, n some untus
Posts: 215

Original Poster
Rep: Reputation: 30
Um, that is what im looking for...w/nvidia video card

Thanx!
 
Old 11-02-2004, 08:53 AM   #5
bejean
LQ Newbie
 
Registered: Mar 2004
Location: Atlanta, GA
Distribution: Slackware 9.1
Posts: 9

Rep: Reputation: 0
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:
Code:
Option "DPMS"
 
Old 11-15-2004, 08:11 AM   #6
jfromcanada
LQ Newbie
 
Registered: Nov 2004
Posts: 22

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen stays blank after re-opening lid. . . K2712 Fedora 3 05-10-2005 06:59 PM
screen suspend/blank conf file? chunlee Linux - Newbie 1 01-07-2005 10:38 AM
Backlight turns off, Suspend/Resume fixes but looses USB nickI-S Linux - Laptop and Netbook 0 09-04-2004 06:28 AM
Dell Inspiron 8200 Blank screen on lid open Huski1 Linux - Laptop and Netbook 3 04-15-2004 04:39 PM
Blank Screen - Powersave Turn Off aggiefl Linux - General 3 03-26-2004 07:00 AM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration