LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-22-2010, 07:30 PM   #1
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
ACPI events in /etc/acpi/events


I've been trying to get Fn+F3 to toggle the backlight on my trusty old Thinkpad R50 running Linux Mint 9 (~ Ubuntu 10.04 with some added codeds and stuff). I tried to do this by adding an event handler (backlight) in /etc/acpi/events:

Code:
event=button[ /]screenlock
action=/etc/acpi/backlight.sh
and a script (backlight.sh) for it in /etc/acpi:

Code:
#!/bin/sh
if [ -e /tmp/screenoff ]; then
  sudo /usr/sbin/radeontool light on
  rm -f /tmp/screenoff
else
  sudo /usr/sbin/radeontool light off
  touch /tmp/screenoff
fi
The result was that it doesn't work. However, if I run a second instance of acpid, the hotkey starts working. Then I took a look at this:

https://wiki.ubuntu.com/AcpiSupportDeprecation

From which I found out that ACPI events are passed to HAL through a socket in /var/run (is that why the /etc/apci/events doesn't work anymore?). In the same document it says that:

Quote:
hal-addon-acpi currently only handles a very limited set of ACPI events (button, ac_adapter, battery).
Bummer. So it can't be done with HAL and it doesn't work "the old fashioned way". How exactly does it work?

Last edited by alienDog; 12-22-2010 at 08:01 PM.
 
  


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
Acpi events, kernel, daemon xorg jazzor Slackware 1 01-22-2008 01:20 PM
ACPI events Lockywolf Slackware 1 10-24-2007 02:18 PM
acpi actions don't trigger events xnomad Linux - Software 0 04-30-2007 11:03 PM
Question on creating ACPI events... sephkeene Linux - Laptop and Netbook 0 08-27-2004 02:15 AM
acpi events? raven Linux - Laptop and Netbook 2 10-12-2003 03:23 PM


All times are GMT -5. The time now is 12:46 AM.

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