Quote:
Originally Posted by NiLuJe
Using a logical path (c.f., /dev/input/by-path) might be better to handle enumeration quirks like that  .
(Plus, some Kindle variants *natively* have more stuff enumerated over USB (usually, an accelerometer or some weird extra thingy on 3G models)).
|
I'm not sure the absolute paths don't change all the time as well between devices. How about the following?
Returns "event4"
Code:
grep -B2 'EV=120013' /proc/bus/input/devices | grep -o 'event[0-9]'
Returns "event3"
Code:
grep -B2 'EV=1f' /proc/bus/input/devices | grep -o 'event[0-9]'
/proc/bus/input/devices contents:
Explanation for the bitmasked EV field here:
https://unix.stackexchange.com/quest...t-devices-data