2013-03-16, 05:18
So i just finished updating my Zotac XBMC box (XBMC10.1 - Ubuntu 10.10) to the latest version (XBMC12.0 - Ubuntu Frodo).
Getting the xbox dvd remote working was a pain as always, and the information out there is scattered. I have an old post outlining the process from my last upgrade so i figured i would write one up for this version.
I've parsed information from a lot of posts and mainly from Mr. Plows post in the Ubuntu forums.
I usually start off by creating a folder in my home directory to do all the work in - this makes cleanup easier, all i need to do is delete it when i'm done.
1 - Update VI [Optional]
The default installation comes with the horrible vim-tiny installation, the first thing i did was upgrade vim so i can edit my files in peace. Install vim-nox using the following commands
2 - Blacklist xpad & mceusb
3 - Get lirc xbox driver patch
4 - Apply patch and build lirc_xbox driver
5 - Backup /etc/lirc/hardware.conf and replace with this
6 - Backup /etc/lirc/lircd.conf and replace with this
7 - Reboot to apply changes
Your remote should be working now
8 - Verify the new lirc_xbox
Check lsmod, you should see the following output.
Shameless plea for reputation in my signature
Getting the xbox dvd remote working was a pain as always, and the information out there is scattered. I have an old post outlining the process from my last upgrade so i figured i would write one up for this version.
I've parsed information from a lot of posts and mainly from Mr. Plows post in the Ubuntu forums.
I usually start off by creating a folder in my home directory to do all the work in - this makes cleanup easier, all i need to do is delete it when i'm done.
1 - Update VI [Optional]
The default installation comes with the horrible vim-tiny installation, the first thing i did was upgrade vim so i can edit my files in peace. Install vim-nox using the following commands
Code:
sudo apt-get update
sudo apt-get -y install vim-nox
2 - Blacklist xpad & mceusb
Code:
sudo echo blacklist xpad >> /etc/modprobe.d/blacklist
sudo echo blacklist mceusb >> /etc/modprobe.d/blacklist
3 - Get lirc xbox driver patch
Code:
sudo update-initramfs -u
sudo apt-get update
sudo apt-get build-dep lirc
sudo apt-get -y install git dialog automake autoconf libtool
git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
wget http://old.nabble.com/attachment/31787507/0/lirc_0.9.1_lirc_xbox_driver.patch
4 - Apply patch and build lirc_xbox driver
Code:
cd lirc/
patch -p1 <../lirc_0.9.1_lirc_xbox_driver.patch
sed -i '/#include <linux\/smp_lock.h>/d' drivers/lirc_xbox/lirc_xbox.c
./autogen.sh
./configure -with-driver=userspace
cd drivers/lirc_xbox/
make
sudo make install
5 - Backup /etc/lirc/hardware.conf and replace with this
Code:
vi /etc/lirc/hardware.conf
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES="lirc_xbox lirc_dev"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="xbox/lircd.conf.xbox"
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=""
6 - Backup /etc/lirc/lircd.conf and replace with this
Code:
# brand: Microsoft Xbox DVD Receiever (also works with generic)
# remote control: Xbox remote or any remote using RCA DVD player codes
begin remote
name XboxDVDDongle
bits 8
eps 30
aeps 100
one 0 0
zero 0 0
gap 163983
toggle_bit_mask 0x0
begin codes
LEFT 0xA9
UP 0xA6
RIGHT 0xA8
DOWN 0xA7
SELECT 0x0B
1 0xCE
2 0xCD
3 0xCC
4 0xCB
5 0xCA
6 0xC9
7 0xC8
8 0xC7
9 0xC6
0 0xCF
MENU 0xF7
DISPLAY 0xD5
REWIND 0xE2
FFWD 0xE3
PLAY 0xEA
PAUSE 0xE6
STOP 0xE0
SKIP- 0xDD
SKIP+ 0xDF
TITLE 0xE5
INFO 0xC3
BACK 0xD8
end codes
end remote
7 - Reboot to apply changes
Code:
sudo shutdown -r now
Your remote should be working now
8 - Verify the new lirc_xbox
Check lsmod, you should see the following output.
Code:
# lsmod | grep lirc
lirc_xbox 17506 0
lirc_dev 18671 4 lirc_xbox
Shameless plea for reputation in my signature