Skip to content

Input filters

Dmitry Torokhov linux-input 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Input: implement input filtersdrivers/input/input.c include/linux/input.h+40 -70 replies
2/2Input: Mac button emulation - implement as input filterdrivers/char/keyboard.c drivers/macintosh/Kconfig drivers/macintosh/mac_hid.c +1 more+186 -800 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Input filters

Hi,

The following 2 patches implement a limited version of input filters which allow suppressing certain events from reaching regular input handlers/user space.

The name inspired by the recent patch from Matthew, although implementation and intended usage quite different - Matthew needs to filter non-input (battery, wlan, AC adapter state) from the raw data stream emitted by i8042 whereas input filters are supposed to filter (and maybe replace) _input_ events, most likely without regard as to which device emitted them.

The first (and quite possible only) user of the filter facility is Mac mouse button emulation which user to be hacked into the keyboard driver. The setup worked until keyboard was the sole source of key events but now that X is switching to evdev (which is completely ignorant of mac emulation) user space started getting the original key presses along with the emulated buttons. Input filters solve the issue while encapsulating everything in drivers/macintosh and removing dependencies between mac_hid, keyboard and evdev.

Signature · 1 line
Dmitry