Copyright (c) 2007 Version 1.1
0
How to rebuild kernel to support PS/2 controller
By default, the PS/2 TouchKit controller connected with PS/2 auxiliary port always be
directed to be as a standard PS/2 mouse device under Linux kernel 2.6.x or later. It
can not be used as a char device for other devices such as touchscreen like kernel
2.4.x does. To make it possible to work with PS/2 touchscreen, it needs to rebuild the
kernel for kernel later than 2.6.
Note: Some kernel version later than 2.6.15 ( such as Ubuntu 6.06 or Fedora Core 6 )
already include the compiled kernel module “serio_raw”. The user can enter
“lsmod | grep serio_raw” to check in a terminal window if this kernel module
exist and be loaded or not. If this kernel module was loaded already, it does
not need to rebuild kernel. Otherwise, rebuild kernel is required. User must
append the following description into the file “rc.local” ( It is renamed boot.local
under SuSE Linux series ) in order to support PS2 auxiliary port as a char
device like kernel 2.4.x does. This file can be found in the /etc/rc.d.
## SERIO_RAW section begin ##
echo -n "serio_raw" > /sys/bus/serio/devices/serioX/drvctl
## SERIO_RAW section end ##
It needs user to check with serio port was for PS2 auxiliary port to assign
correct above serioX value. If it is on serio0, the above setting should be
echo -n “serio_raw” > /sys/bus/serio/devices/serio0/drvctl
The user can use “cat /sys/bus/serio/devices/serio0/description” to check
in a terminal window. By default, the PS2 auxiliary port is assigned to serio0
under Ubuntu 6.06 and Fedora Core 6 Linux.
After reboot, the PS2 auxiliary port can be used as a char device like kernel
2.4.x does. For touchscreen application, the user still needs to install the
TouchKit driver to make sure touchscreen work.
评论7