Bug 7395
Summary: | Module ir_common interfeers with lirc | ||
---|---|---|---|
Product: | Drivers | Reporter: | hexion (hexium) |
Component: | Input Devices | Assignee: | drivers_input-devices |
Status: | REJECTED INSUFFICIENT_DATA | ||
Severity: | normal | CC: | dmitry.torokhov, hexium, protasnb |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.17 and above | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
hexion
2006-10-21 07:25:38 UTC
Does the problem still exist with new kernels? Thanks. (In reply to comment #1) > Does the problem still exist with new kernels? > Thanks. > Yes, 2.6.15 was the last kernel that didn't set mandatory (that's the problem) actions to the TV remote controls. I think that managing that remote controls in the kernel is a great feature, BUT, there should neccesary be a file to configure such actions. Not in compilation time, but in the time when ir_common is loaded. I hacked some files to avoid this management, here you can see the procedure (the thread is unmantained but there's some useful info there): http://ubuntuforums.org/showthread.php?t=288229 If lirc wishes to be the sole recepient of input events from a device then it needs to grab it via EVIOCGRAB ioctl. Should I contact with Lirc developers to tell them that? Anyway, I state again... a correct design of this feature in the linux kernel should provide a way to configure the buttons and the actions asociated with each button. And that configuration should be in module loading time with a file (like Lirc does with $HOME/.lircrc), not in compilation time. (In reply to comment #4) > Should I contact with Lirc developers to tell them that? Yes, please. > Anyway, I state again... a correct design of this feature in the linux kernel > should provide a way to configure the buttons and the actions asociated with > each button. There is such a way. You can issue EVIOCSKEYCODE ioctl on corresponding event device to reprogram keymap for the device. Any remote control based on ir_common supports this mechanism. > And that configuration should be in module loading time with a > file (like Lirc does with $HOME/.lircrc), not in compilation time. You could call a program that would reprogram the remote from your init scripts or hotplug scripts. Still, it woudl not reslve your issue - you do not want events from remote device to be delivered to console but rather to lirc only. Therefore lirc must declare itself an exclusive user. Thanks for the info, I'll contact with Lirc developers and tell them to read this thread. I hope they find it usefull. But I think we are missing the main statement I made.. Don't you think it's better to have a file (or whatever method) to configure keys/actions rather than have a 3rd party tool programmed to nullify the effects of the kernel management and set its own? Note I don't want to trash any tool like Lirc (which I use, I love, and I'll keep on using), of course the mechanism to let 3rd party tools to take the control must be there, I just mention this as a [neccesary] enhacement for this feature in the kernel. The user should have the choice to select which buttons launch which actions to enhace their experience, IMHO. Any updates on this bug? hexion, were you an Lirc able to follow #5 and resolve your problem? |