LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-19-2006, 06:17 AM   #1
huru
LQ Newbie
 
Registered: Mar 2006
Location: Trondheim - Norway
Distribution: Fedora Core 5
Posts: 16

Rep: Reputation: 0
acpi can't run my script


I managed to get the backlight to turn on/off when opending/closing the lid, but somehow it doesn't work anymore. I get the following error in /var/log/acpid:

xset: unable to open display ""
or
open /dev/zero: Permission denied
or
Radeon hardware not found in lspci output.

depending on the method used to turn on/off the light (see script).

I think it stopped working after I tried to install gnome-power-manager,

Code:
#!/bin/sh
# /etc/acpi/lidswitch.sh
# Turn on/off LCD backlight when lid is opened/closed
 
LID_STATE="/proc/acpi/button/lid/LID/state"

grep -q open $LID_STATE

if [ $? -eq 0 ]; then
        #/usr/sbin/vbetool dpms on
        xset dpms force on
    #/usr/sbin/radeontool light on
else
        xset dpms force off
        #/usr/sbin/vbetool dpms off
    #/usr/sbin/radeontool light off
fi
 
  


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
How can I make ACPI run on my T41??? piggyaugu Mandriva 1 11-27-2005 01:30 PM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 07:49 AM
acpi and bash script! rohan208 Linux - General 0 07-23-2004 01:45 PM
Script to run script in multiple directories... seabass55 Linux - General 5 07-06-2004 01:44 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration