On Tue, Sep 05, 2006 at 00:12:46 +0100, Martin J. Smith wrote:
> Hi all..
> 
>  
> 
> I?m pretty new to the list, so apologies is this has been discussed before.
> 
> 
> Can anyone confirm if they?ve had any luck using the mac mini IR
> remote/receiver with LIRC?
> 
>  
> 
> I?m unsure where to start and would appreciate any tips if its possible
> please, I?m looking to use it to trigger system events/scripts if possible,
> although I must admit I?ve not explored the abilities & limits of LIRC yet.
> 
>  
> 
> Any tips or help would be appreciated.

Hi,

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).

Regards,
Tino

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to