Rotary encoder does not get used by evdev input
Submitted by Sean Cross
Assigned to Peter Hutterer @whot
Description
We did a board based on the Novena core. It had a rotary coder connected via GPIO pins. The device tree file had the following definition:
rotary@0 {
compatible = "rotary-encoder";
gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>, <&gpio1 02 GPIO_ACTIVE_HIGH>;
linux,axis = `<REL_WHEEL>`;
rotary-encoder,relative-axis;
rotary-encoder,half-period;
};
Upon initialization, the kernel would create an evdev device present under /dev/input/. This device has only a mouse wheel, and no other axes. In order to get the device to actually send events to applications, the following xorg.conf.d file was created:
60-rotary.conf:
Section "InputClass" Identifier "Rotary encoder" MatchProduct "rotary.20" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection