From: Martin J. S. <dar...@bt...> - 2006-09-05 17:26:06
|
Tino, Thanks for the tips so far.. I've rebuilt the kernel with EVDEV included, lsinput reports the following: /dev/input/event0 bustype : BUS_ADB vendor : 0x1 product : 0x1 version : 256 name : "Macintosh mouse button emulation" bits ev : EV_SYN EV_KEY EV_REL /dev/input/event1 bustype : BUS_USB vendor : 0x5ac product : 0x1000 version : 6501 name : "HID 05ac:1000" phys : "usb-0000:00:1d.3-1/input0" uniq : "" bits ev : EV_SYN EV_KEY EV_LED EV_REP /dev/input/event2 bustype : BUS_USB vendor : 0x5ac product : 0x1000 version : 6501 name : "HID 05ac:1000" phys : "usb-0000:00:1d.3-1/input1" uniq : "" bits ev : EV_SYN EV_KEY EV_REL I've cat each eventX and receive nothing unfortunately when pressing the buttons on my IR remote. Any thoughts? Thanks again for your help Martin -----Original Message----- From: mac...@li... [mailto:mac...@li...] On Behalf Of Tino Keitel Sent: 05 September 2006 06:35 To: mac...@li... Subject: Re: [Mactel-linux-users] apple-ir.c - Mac Mini IR Remote with LIRC 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 Mac...@li... https://lists.sourceforge.net/lists/listinfo/mactel-linux-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 04/09/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 04/09/2006 |