I got an Asus 1501p, including an internal ITE8713 CIR transceiver. To get it working I did the following, suppose the same approach would work on Zotac.
Run
Code:
#sudo dpkg-reconfigure lirc
Make sure Lirc in configured for Linux devinput device, Linux input layer (/dev/input/eventX).
Install ir-keytable
Code:
#sudo apt-get install ir-keytable
Run ir-keytable to find the device in use
Should return something like this;
Code:
xbmc@ubuntu:/dev/input$ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event2) with:
Driver ite-cir, table rc-rc6-mce
Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other
Enabled protocols: RC-6 LIRC other
Extra capabilities: <access denied>
My device is /dev/input/event2, this may change if you add/remove input devices. So make sure that you have a symlink to your device.
Go to /dev/input and list files
Code:
#cd /dev/input
#ls -l
If you are lucky there is a by-id folder, containing an symlink to your device, if not create a symlink according to this post;
http://parker1.co.uk/mythtv_tips.php ,
Make the LIRC Device Static - older kernels
Then change your LIRC config to use the new device
Code:
# sudo nano /etc/lirc/hardware.conf
REMOTE_DEVICE="/dev/input/irremote"
For some reason Lirc disables all rc protocols except LIRC, even when using dev input. Make sure RC-6 is enabled as well.
The easy fix is to change this directly in /etc/init.d/lirc:
Code:
in_kernel_support() {
if [ -d /sys/class/rc ]; then
for file in `find /sys/class/rc/*/ -name protocols`; do
if [ "$1" = "disable" ]; then
echo "lirc" > $file
echo "+RC-6" > $file
else
echo "none" > $file
for protocol in `cat $file`; do
echo "+${protocol}" > $file
done
fi
done
fi
}
Code:
echo "+RC-6" > $file
Adds the rc-6 protocol, check with ir-keytable.
After this reboot (restart of lirc and udev should perhaps be enough).
Check for input events with ir-keytable:
Code:
#sudo ir-keytable -t
irw should now report key events from devinput:
devinput is already included as device in /usr/share/xbmc/system/Lircmap.xml but some keys are missing (e.g the Windows key and Power). Just add them under the "linux-input-layer" device.