New To Ubuntu

Sunday, July 15, 2007

Xbox remote under Gentoo

I have a cheap after-market Xbox DVD remote, which I bought from ebay. Because it has wrong manufacture and device ID (both are ffff), the remote will be recognized as a game pad. For 2.4 Kernel, this web page provides are solution (http://www.xbox-linux.org/wiki/LIRC).

For 2.6 kernel, there is a similar work around, but you have to do some patching yourself. There's a patch for app-misc/lirc package, /usr/portage/app-misc/lirc/files/lirc-0.8.1-atiusb-xbox.diff

At line 46, change

+#define VENDOR_MS1 0x040b

To

+#define VENDOR_MS1 0xffff


At line 55, change

+ { USB_DEVICE(VENDOR_MS1, 0x6521) }, /* Gamester Xbox DVD Movie Playback$

to

+ { USB_DEVICE(VENDOR_MS1, 0xffff) }, /* Gamester Xbox DVD Movie Playback$


Then

# emerge app-misc/lirc

The remote will work.

To verify, use lirc's tool "mode2"

#mode2

And then press some buttons on your remote, there should be some hex codes output to your terminal.

At this time, the /etc/lircd.conf may not work out of box. To verify, use lirc's tool "irw"
#irw

If it can tell you correctly which button you have pressed, then you are fine. Otherwise, you have to use "irrecord" to make a lircd.con by yourself.

Labels:

0 Comments:

Post a Comment

<< Home