Tag Archive for xbox

Xbox IrDA Ubuntu 10.04 alá

Haven’t found any consistant instructions on how to do this so here it is. This is not my work it’s the combination of other threads I’ve come across that seemed to work for me.

  1. Blacklist xpad
    Code:
    sudo nano /etc/modprobe.d/blacklist.conf

    add:

    Code:
    blacklist xpad
  2. Install lirc – config menu will pop up. select none.
    Code:
    sudo apt-get install lirc
  3. Install lirc source modules
    Code:
    sudo apt-get install lirc-modules-source
  4. Configure hardware.conf
    Code:
    sudo nano /etc/lirc/hardware.conf

    replace all and add:

    Code:
    # /etc/lirc/hardware.conf
    #
    #Chosen Remote Control
    REMOTE="None"
    REMOTE_MODULES="lirc_atiusb lirc_dev"
    REMOTE_DRIVER=""
    REMOTE_DEVICE="/dev/lirc0"
    REMOTE_SOCKET=""
    REMOTE_LIRCD_CONF=""
    REMOTE_LIRCD_ARGS="-r"
    
    #Chosen IR Transmitter
    TRANSMITTER="None"
    TRANSMITTER_MODULES=""
    TRANSMITTER_DRIVER=""
    TRANSMITTER_DEVICE=""
    TRANSMITTER_SOCKET=""
    TRANSMITTER_LIRCD_CONF=""
    TRANSMITTER_LIRCD_ARGS=""
    
    #Enable lircd
    START_LIRCD="true"
    
    #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="true"
    
    # Default configuration files for your hardware if any
    LIRCMD_CONF="lircd.conf"
    
    #Forcing noninteractive reconfiguration
    #If lirc is to be reconfigured by an external application
    #that doesn't have a debconf frontend available, the noninteractive
    #frontend can be invoked and set to parse REMOTE and TRANSMITTER
    #It will then populate all other variables without any user input
    #If you would like to configure lirc via standard methods, be sure
    #to leave this set to "false"
    FORCE_NONINTERACTIVE_RECONFIGURATION="true"
    START_LIRCMD=""
  5. configure lircd.conf
    Code:
    sudo nano /etc/lirc/lircd.conf

    replace and add:

    Code:
    # LIRCD configuration file for Xbox DVD Kit
    #
    # Marko Friedemann <mfr@bmx-chemnitz.de>
    #
    #
    # brand:             Microsoft
    # model:             Xbox DVD Remote
    # supported devices: Xbox DVD Remote via xpad-ir driver
    #
    # comment:           EXPERIMENTAL
    #
    begin remote
    
        name  XboxDVDDongle
        bits           8
    
        begin codes
    
            SELECT          0x0b
            UP              0xa6
            DOWN            0xa7
            RIGHT           0xa8
            LEFT            0xa9
            INFO            0xc3
    
            9               0xc6
            8               0xc7
            7               0xc8
            6               0xc9
            5               0xca
            4               0xcb
            3               0xcc
            2               0xcd
            1               0xce
            0               0xcf
    
            DISPLAY         0xd5
            BACK            0xd8
            SKIP+           0xdd
            SKIP-           0xdf
            STOP            0xe0
            REVERSE         0xe2
            FORWARD         0xe3
            TITLE           0xe5
            PAUSE           0xe6
            PLAY            0xea
            MENU            0xf7
    
          end codes
    
    end remote
  6. configure modules to load at startup
    Code:
    sudo nano /etc/modules

    add:

    Code:
    lirc_dev
    lirc_atiusb
  7. edit lirc_dev.h
    Code:
    sudo nano /usr/src/lirc-0.8.7/drivers/lirc_dev/lirc_dev.h

    change the line “#define LIRC_HAVE_KFIFO” to “#undef LIRC_HAVE_KFIFO”

  8. reconfigure lirc source modules
    Code:
    sudo dpkg-reconfigure lirc-modules-source
  9. reboot
  10. test
    Code:
    irw

    press a button on the remote.should see something like this:

    Code:
    00000000000000a7 00 DOWN XboxDVDDongle
    00000000000000a7 01 DOWN XboxDVDDongle
    00000000000000a7 00 DOWN_UP XboxDVDDongle
    00000000000000a7 00 DOWN XboxDVDDongle
    00000000000000a7 00 DOWN_UP XboxDVDDongle
    00000000000000a7 00 DOWN XboxDVDDongle
    00000000000000a7 00 DOWN_UP XboxDVDDongle
    00000000000000a9 00 LEFT XboxDVDDongle
    00000000000000a9 00 LEFT_UP XboxDVDDongle

    That it!