Canopus CRM2005 USB Remote Control Driver for Linux
Having received this remote control as a present, I was determined to get it
working in Linux for use on my (at the time) Freevo
box, which is now a MythTV box.
The
Canopus CRM2005 consists of a small USB IR dongle and a decent remote
control. It is fairly inexpensive as well. I assumed that since it was USB
it would simply be an HID device. I was half-right and half-wrong. It is
an HID device, but it uses a vendor specific protocol. Thankfully it is
really simple, and only requires reading from the USB dongle (no setup
required). I used the kernel's ATI remote driver as a base for my driver,
and just ripped out everything that wasn't needed.
The driver currently requires
a 2.6 kernel, and of course USB and input layer support enabled in your kernel
or built as a module. I believe that the CRM2004 version of the remote is
identical, and so have added a USB ID for that remote as well. If you have
hotplug enabled, the driver should load automatically and report keyboard
events as a normal keyboard would. If you are wondering what buttons map to
which keyboard keys, look at the top of the source file as they are all
described there.
To build the driver just unpack it, run make and then as root make install.
tar -zxvf canopus_remote-0.9.0.tar.gz
cd canopus_remote-0.9.0
make
su -c "make install"
The makefile should automatically pick up your currently running kernel
version and install the module in the appropriate place. Plug in the USB
dongle and all should work fine. Please email me with your success stories
or problems.