Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 12-22-2010, 07:30 PM   #1
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:

event=button[ /]screenlock
and a script ( for it in /etc/acpi:

if [ -e /tmp/screenoff ]; then
  sudo /usr/sbin/radeontool light on
  rm -f /tmp/screenoff
  sudo /usr/sbin/radeontool light off
  touch /tmp/screenoff
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:

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:

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.


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 09:36 PM.

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