Zubbeli Wrote:Code:
http://forum.xbmc.org/showthread.php?tid=60068&highlight=dharma&page=2
(I have exactly the same hardware)
Then you are probably better off asking in that thread. I can only give you general advice about LIRC debugging.
Quote:I reconfigure manually again in the same way (except the keymap.xml) without sucess.
Forget about Lircmap.xml and keymap.xml/remote.xml - that's all XBMC stuff. You only need two programs to debug LIRC:
- mode2: Connects to the hardware device and displays the raw IR codes.
- irw: Connects to the LIRC subsystem and displays the translated button codes.
Using mode2
First you have to check if the LIRC driver is working correctly. This can be done using
mode2. As LIRC allows the configuration of multiple IR receivers on one PC, you have to know the device name of the hardware driver. Usually that is "/dev/lirc" or "/dev/lirc0",... In your case this seems to be "/dev/input/irremote" but I would have a look for /dev/lirc* devices too and test them as well.
When you know the device name you can test it using mode2. Start...
Code:
mode2 -d <device-name>
... and press some buttons on your remote. You should see some numbers on the screen whenever you press a button. If you _do_ see some numbers, then you found the right device. If you don't see any numbers, try another device.
Let's say you found "/dev/lirc" to be the right device name. Now you have to add this device name to your /etc/lirc/hardware.conf file. The configuration variable is named REMOTE_DEVICE. So if /dev/lirc is the correct device, somewhere in your hardware.conf should be the line:
Code:
REMOTE_DEVICE="/dev/lirc"
Now you can restart LIRC using:
Code:
sudo service lirc restart
Using irw
irw is used to validate your /etc/lirc/lircd.conf file. The lircd.conf contains a translation map which allows to map incoming ir-codes to cleartext button names. The LIRC service uses this file to translate the incoming ir-codes. The translated button names are then send to the client applications like i.e. XBMC.
irw is therefore the most basic infrared application which is possible. It just connects to the LIRC service and spits out whatever button names it receives. So basically if mode2 did not provide any output you don't need to try irw, because without a working device the LIRC service can not do its job and therefore irw will not receive any valid data.
If irw does work, you can start configuring your XBMC Lircmap.xml and remote.xml. If it does not work, but mode2 works, then your /etc/lirc/lircd.conf file is wrong. In this case you either have to find a valid /etc/lirc/lircd.conf file for your remote or you have to create a custom one using irrecord.