You are not logged in.
Hi, my touchscreen device (which uses a driver not included in the kernel) is attached to udev:/sys/devices/platform/i8042/serio2/input/input13/event9 and I have a custom configuration* in xorg.conf file to make it work (standard kernel)...
When I boot a custom kernel, like pf-kernel (installed from repo) the event does change every boot! Eg. event9 will became event3 and I have to modify xorg.conf accordingly each boot to make the touchscreen working again...
How can I fix it? Is there some kernel option to enable/disable or maybe is it related to BFS scheduler?
Thank you
*
Section "InputClass"
Identifier "touchscreen"
MatchIsTouchscreen "true"
#MatchDevicePath "/dev/input/event9"
MatchDevicePath "/dev/input/event9"
Driver "evdev"
Option "Mode" "absolute"
Option "Device" "/dev/input/touchscreen"
Option "DeviceName" "touchscreen"
Option "Calibration" "11 1010 28 1000"
Option "EmulateThirdButton" "yes"
Option "EmulateThirdButtonButton" "3"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonMoveThreshold" "50"
EndSection
Information [ 32.142] (II) config/udev: Adding input device semtech psaux/serial TouchScreen (/dev/input/event9)
Information [ 32.142] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input13/event9"
Last edited by Xemertix (2013-03-05 23:17:34)
Offline
The solution is to not match by device path, but by product and/or vendor. Do you even need any additional matches, isn't the match by touchscreen enough?
Offline
/dev/input/event* device nodes as created by the kernel are not reliable in the same way that you can't rely on partition nodes (e.g. /dev/sda2). You need to use the by-path or by-id symlinks if you want persistent naming.
Or, as gusar suggests, match on another attribute entirely.
Offline
Read wiki regarding e.g. MatchProduct, MatchVendor.
MatchDevicePath "/dev/input/event*"
Notice that asterix, rather than binding to an arbitrary, unreliable number.
Offline
Replaced MatchDevicePath "/dev/input/event9" with Option "Device" "/dev/input/by-path/platform-i8042-serio-2-event"
Thanks
Offline