Preventing the kernel from responding to input devices



Is there a way to stop the kernel from responding to certain input
devices? I've got a DVB card with a remote control and the kernel thinks
it's a keyboard, outputting key events on /dev/console, and worse, it
now shuts down if I press the Power button, which has only started
happening recently (since kernel 2.6.29 I think).

This means I can't use the power button to do anything else useful in
applications. The keyboard events are also a nuisance because I find it
best to read the input device directly to deal with debounce and repeat
instead of pretending it's a keyboard, so if I want it to respond to the
real keyboard too it gets two events for one press of certain keys. I've
worked around that by specifiying the keyboard device in xorg.conf but I
have to reconfigure it every so often when the event device numbers
change.

I've tried removing the device's keyboard-related properties in the HAL
configuration, but it didn't stop the key press problem. I haven't tried
removing the power button property so far.

--
TH * http://www.realh.co.uk

.



Relevant Pages

  • PROBLEM: no keyboard and mouse on 2.6.0-test4 (notebook)
    ... One line summary of the problem: on my laptop, neither keyboard nor ... A very similar config on my desk machine works. ... Running a 2.4.x kernel on the laptop works. ... # ACPI Support ...
    (Linux-Kernel)
  • Re: keyboard problem with 2.6.6
    ... > Once in kernel space, ... Upgrading the kernel will make your keyboard stop working. ... installed your userspace daemons on the system. ... > Vojtech> userspace. ...
    (Linux-Kernel)
  • Re: 2.6.{28,30} Keyboard not working on oldish machine
    ... kernel for a long time, seems to work OK on a 2.6.18 kernel ... no keyboard - but otherwise OK ... # IPVS transport protocol load balancing support ... # Device Drivers ...
    (Linux-Kernel)
  • Re: Power button policy and mechanism
    ... and it would simplify my life alot if I didn't need to depend on userland applications to be able to suspend/resume. ... It should apply to other devices also like for example Zaurus branches (those with keyboard and designated power button). ... Does mainline policy allow static power button events inside kernel? ...
    (Linux-Kernel)
  • Re: input: evdev.c EVIOCGRAB semantics question
    ... been a while) to each device struct, and to each handler struct, and if ... kernel console layer, bit 1 is any further handlers in the kernel like ... a utility that adjusts the masks on input devices. ... X needs to keep the keyboard driver from receiving events while it has ...
    (Linux-Kernel)