I have also given this a lot of trying but wasn't able to get it working good without LIRC. Had problem with some buttons not being mapped correctly and also repeat was horrible.
This is how I configured my system.
- No special driver required, the in-kernel module nuvoton-cir is all you need
- If installed, remove special ASRock provided files
- Reboot if you had any ASrock provided files and check for loaded module
- LIRC 0.8.7 which is provieded with Ubuntu Natty works fine
- Remove customized XBMC Lircmap.xml, you don't need it
- Wake on CIR / resume from suspend with remote
- Editing system files requires sudo/root-access. One way of doing this is to start gedit with sudo-access
Verify that the kernel has loaded support for the IR receiver:
]
Code:
$ dmesg | grep -i nuvoton
[ 7.668555] input: Nuvoton w836x7hg Infrared Remote Transceiver as /devices/virtual/rc/rc0/input4
[ 7.668805] rc0: Nuvoton w836x7hg Infrared Remote Transceiver as /devices/virtual/rc/rc0
[ 7.696340] nuvoton_cir: driver has been successfully loaded
[ 7.698640] rc rc0: lirc_dev: driver ir-lirc-codec (nuvoton-cir) registered at minor = 0
Install lirc if you don't have it
Code:
$ sudo apt-get install lirc
Reading package lists... Done
Building dependency tree
Reading state information... Done
lirc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
If needed, start gedit with sudo-access to edit system files. Press alt-f2 and type 'gksudo gedit'.
Edit /etc/lirc/hardware.conf to have this content for the section REMOTE*. You just need to change this bit, leave the rest of the config as-is.
Code:
#Chosen Remote Control
REMOTE="Nuvoton Transceivers/Remotes"
REMOTE_MODULES="lirc_dev nuvoton-cir"
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="remotes/mceusb"
REMOTE_LIRCD_ARGS=""
Or just download my full hardware.conf which is available here:
http://paste.ubuntu.com/608663/
Edit /etc/lirc/lircd.conf to have this content
Code:
$ cat lircd.conf
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"
Or again, just download my full config here:
http://paste.ubuntu.com/608666/
Restart LIRC
Code:
$ sudo /etc/init.d/lirc restart
* Stopping remote control daemon(s): LIRC [ OK ]
* Loading LIRC modules [ OK ]
* Starting remote control daemon(s) : LIRC [ OK ]
Verify that the remote buttons work
Code:
$ irw
000000037ff07bdf 00 Left mceusb
000000037ff07bde 01 Right mceusb
000000037ff07be1 00 Up mceusb
000000037ff07bdd 00 OK mceusb
000000037ff07bdd 01 OK mceusb
000000037ff07be6 00 Stop mceusb
(Abort with ctrl-c)
Make sure you don't have any customized Lircmap.xml which disturbs your remote.
Code:
cd ~/.xbmc/userdata
mv Lircmap.xml Lircmap.xml.bak
To be able to resume from suspend by pressing the power button on the remote, add CIR to /proc/acpi/wakeup. Do this by adding the following to /etc/rc.local
Code:
echo CIR > /proc/acpi/wakeup
Then start XBMC and you should be able to use the remote!
RusNeuroMancer Wrote:Just 2cents for this great manual. By default in Ubuntu Natty LIRC package LIRC daemon is disabled. User should don't forget to enable it in /etc/lirc/hardware.conf:Code:
#Enable lircd
START_LIRCD="true"