LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Forcing the O.S. to detect the mouse new port. (https://www.linuxquestions.org/questions/slackware-14/forcing-the-o-s-to-detect-the-mouse-new-port-4175436851/)

af7567 11-14-2012 07:42 AM

Quote:

Originally Posted by stf92 (Post 4828875)
Code:

semoi@darkstar:~$ sudo cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:9728 rx:6887 fe:1 brk:2841
1: uart:unknown port:000002F8 irq:3
2: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
semoi@darkstar:~$



From the tx: and rx: numbers there it looks like data is being sent and received on the port. I have no idea what fe:1 or brk:2841 means, mine does not show those. If you move the mouse then cat /proc/tty/driver/serial you should see the rx: number change after some seconds. If not, then I guess you have something different plugged into /dev/ttyS0.

jtsn 11-14-2012 12:52 PM

A serial mouse (we assume Microsoft 2 button type here) has to be powered by the serial port to send data to the host. Also the parameters of the serial port have to be setup correctly (1200 bps 7E1), so the cat /dev/ttyS0 trick will never work.

Fortunately Slackware already includes a program, which does everything we need. Just do:

Code:

# /usr/sbin/gpm -m /dev/ttyS0 -t ms
Then try moving the mouse. You should see a moving rectangle (the mouse cursor).


All times are GMT -5. The time now is 02:35 PM.