Next, reconfigure LIRC to use the devinput driver – when it asks which device you have, DOT NOT SELECT THE SOUNDGRAPH IMON but ‘Linux input layer (/dev/input/eventX)’. Lets begin by stopping lirc if you still have it running. I inserted this rule in a file called /etc/udev/rules.d/les: KERNEL="event*", SYSFS="iMON Remote (15c2:0038)", NAME="input/%k", SYMLINK="input/imon_remote", MODE="0666" Make sure the device name matches whatever hardware you have. This way we will not have to rely on obscure device names like ‘input1’. To find the iMon receiver in the list of input devices, lets create a udev rule to symlink to the device. All your LIRC capable programs will then use LIRC like they used to – we only need to use the new button names. This driver reads the key strokes from the input layer device and converts them into LIRC events. Instead, we will use ‘lircd’ again using a special driver called ‘devinput’. I got the impression it would send keystrokes to a graphical application but I didn’t get that working. The ‘imon’ receiver will now be a HID input device. The fastest way to get up and running again is as follows. As such, lircd will fail when attempting to claim it and loading ‘lirc_imon’ (provided you still have it) will not work as the device is already claimed by the ‘imon’ driver. With the move to the new input layer driver for supported IR devices in the kernel, the new ‘imon’ driver (version 0.8 at the time of writing) no longer provides a ‘lirc0’ device. Further inspection showed that the ‘lirc_imon’ driver was not loaded at all. To my surprise, while the remote was dead, the LCD screen was working fine. When I upgraded from Ubuntu 10.04 running lirc 0.8.6 to Ubuntu 10.10 and lirc 0.8.7, the entire IR subsystem died on me. The exact details are unknown to me as I have an SoundGraph iMon receiver (device ID 0038 – LCD), which does not deliver raw sensory input but rather complete scancodes. As such, LIRC is not completely written off as it can be used to do userspace IR processing as it used to. Writing universal drivers for such devices can be bothersome or even impossible, for example when dealing with universal receivers. In reality, the glass is only half full as some IR receivers (and transmitters) deal with raw data. This subsystem is a partial replacement for lirc as it features complete IR drivers for numerous devices. In Linux 2.6.36, a new sub-system is introduced for remote controls. While the title may sound a tad cryptic, that matched my first impression about the new infrared remote subsystem used in Ubuntu 10.10 and kernel 2.6.36+ based distributions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |