Peter B. Steiger wrote:
On Tue, 2005-07-26 at 23:49 +0400, developerman wrote:
I have a serial mouse (COM1 port). What features should I enable in
kernel for turning on serial mouse support?
At a guess, I'd say device drivers / input devices / serial mouse
(MOUSE_SERIAL=y), but I could be wrong.
The answer above is indeed wrong.
There are two ways of working with serial mice in 2.6 kernels. The old
one is when the program (gpm or Xorg) opens the serial port and decodes
mouse data by itself. For this to work, you need:
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_CORE=y
Then configure the program to use /dev/ttyS1 and the proper mouse protocol.
The second way is to decode mouse data in the kernel and feed it to the
application using the input framework. For this to work, you need, in
addition to the above:
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_SERIAL=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
CONFIG_SERIO_LIBPS2=y
Also you need the "inputattach" program:
http://www.doc.ic.ac.uk/~jpc1/linux/ipaq/inputattach.c
Compile and install it:
gcc -D_LINUX_INTERRUPT_H -o inputattach inputattach.c
install -m 755 inputattach /usr/bin
Then run it:
inputattach --intellimouse /dev/ttyS1 &
While this program is running in the background, the serial mouse data
can be used via /dev/input/mice (summed with all other mice in the
system) using the ImPS/2 protocol (independently of the native protocol
of the serial mouse).
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page