From: Scott B. <sb...@ne...> - 2006-07-10 03:20:17
|
Hi all! I have built one of these - http://dlangenberg.googlepages.com/diycomputerremote Works perfectly under windows - but I would like to use it on linux. When I plug it in the device manage in Ubuntu says its recognised it as a xpad and loaded the appropriate driver. Lirc is installed but will not work with the hardware. Is there a driver I can use to get this to work with lirc and linux? Tried searching the net for a day or two and starting to pull my hair out. Cheers Scotty |
From: Michael M. <mic...@gm...> - 2006-07-10 17:02:23
|
Scott Brown wrote: > Works perfectly under windows - but I would like to use it on linux. When I > plug it in the device manage in Ubuntu says its recognised it as a xpad and > loaded the appropriate driver. As far as I understand from a bit of googling, it should show up in /proc/bus/input/devices (send the output of "cat /proc/bus/input/devices" if you are unsure). > Lirc is installed but will not work with the hardware. Probably it's not yet configured. There's a lircd.conf file for the input layer in <http://linux.bytesex.org/v4l2/linux-input-layer-lircd.conf> - download that file and name it /etc/lirc/lircd.conf A working hardware.conf file for Ubuntu: # /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD=false #Try to load appropriate kernel modules LOAD_MODULES=evdev # Run "lircd --driver=help" for a list of supported drivers. DRIVER="dev/input" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/input/eventX" MODULES="lirc_dev evdev" # Default configuration files for your hardware if any LIRCD_CONF="/etc/lirc/lircd.conf" LIRCMD_CONF="" ########### end of /etc/lirc/hardware.conf ########### Instead of DEVICE="/dev/input/eventX" use the correct event device (see the output of "cat /proc/bus/input/devices"). Now /etc/init.d/lirc start should work and you should see some output if you start "irw". Regards... Michael |
From: Scott B. <sb...@ne...> - 2006-07-11 11:33:54
|
First of all THANK YOU Michael!!! After following your instructions, the xbox dvd remote worked! But under irw every button spits out some output. Now my only problem is that when I use "irw" and analyse the output, most of the buttons are recognised under the same button name, ie BTN_B. I have checked the lircd.conf file and added in some custom elements to no avail. I have tired other versions specifically for the xbox remote to no avail, irw crashes when it detects anything but the lircd file you specified. http://prometheus.cs.wmich.edu/gentoo/rsync/app-misc/lirc/files/xbox-lircd.c onf I have tried multiple versions of the above file, mainly differing in bit size. Any help would be appreciated, Thankyou! P.S (I have also tried irrecord, but it says it cannot detect the gap??) -----Original Message----- From: lir...@li... [mailto:lir...@li...] On Behalf Of Michael Mauch Sent: Tuesday, 11 July 2006 03:02 To: lir...@li... Subject: Re: lirc and xbox remote Scott Brown wrote: > Works perfectly under windows - but I would like to use it on linux. When I > plug it in the device manage in Ubuntu says its recognised it as a xpad and > loaded the appropriate driver. As far as I understand from a bit of googling, it should show up in /proc/bus/input/devices (send the output of "cat /proc/bus/input/devices" if you are unsure). > Lirc is installed but will not work with the hardware. Probably it's not yet configured. There's a lircd.conf file for the input layer in <http://linux.bytesex.org/v4l2/linux-input-layer-lircd.conf> - download that file and name it /etc/lirc/lircd.conf A working hardware.conf file for Ubuntu: # /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD=false #Try to load appropriate kernel modules LOAD_MODULES=evdev # Run "lircd --driver=help" for a list of supported drivers. DRIVER="dev/input" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/input/eventX" MODULES="lirc_dev evdev" # Default configuration files for your hardware if any LIRCD_CONF="/etc/lirc/lircd.conf" LIRCMD_CONF="" ########### end of /etc/lirc/hardware.conf ########### Instead of DEVICE="/dev/input/eventX" use the correct event device (see the output of "cat /proc/bus/input/devices"). Now /etc/init.d/lirc start should work and you should see some output if you start "irw". Regards... Michael ------------------------------------------------------------------------- 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 |
From: Michael M. <mic...@gm...> - 2006-07-11 17:18:43
|
Scott Brown wrote: > After following your instructions, the xbox dvd remote worked! > > But under irw every button spits out some output. > > Now my only problem is that when I use "irw" and analyse the output, most of > the buttons are recognised under the same button name, ie BTN_B. I have > checked the lircd.conf file and added in some custom elements to no avail. Sorry, I'm out of ideas, then. > I have tired other versions specifically for the xbox remote to no avail, > irw crashes when it detects anything but the lircd file you specified. >http://prometheus.cs.wmich.edu/gentoo/rsync/app-misc/lirc/files/xbox-lircd.conf Apparently Gentoo uses a patched lirc on the Xbox: <http://prometheus.cs.wmich.edu/gentoo/rsync/app-misc/lirc/files/lirc-0.8.0pre4-xbox-remote.diff> The first line of that patch says that it's from <http://wojci.dk/lirc-xbox/>. There it's written that they also use a patched kernel specifically for the Xbox. Regards... Michael |