this should do the trick:

1. Make sure the evdev kernel module is loaded or compiled into the
   kernel (CONFIG_INPUT_EVDEV)

2. lsinput (in Debian Etch, it is in the input-utils package)

3. Spot the device for the apple remote. If it's not there, try
   cat /dev/input/eventX with all eventX files, press a button on the
   remote and look if you got the right device

4. Start irrecord -H dev/input -d /dev/input/<proper device>

5. Follow the instructions given by irrecord

6. Move the resulting lircd.conf to /etc/

7. Start lircd -n -H dev/input -d /dev/input/<proper device> /etc/lircd.conf

8. Start irw, press some buttons on the remote and check if it prints
   the button press events

Now you could set up a ~/.lircrc and populate it with your desired
actions. To trigger system events/scripts, you might want to take a
look into the irexec documentation on www.lirc.org. Short example:

  begin
    prog   = irexec
    button = power
    config = /usr/bin/your_program
  end

Now start irexec and press the button you specified as "button" (above,
"power" is used. You should tweak this to a button mentioned in your
/etc/lircd.conf file).

i've tried to do this, but when i start irrecord -H dev/input -d /dev/input/<proper device> i've got this error message :
irrecord: gap not found, can't continue
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to