LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to fix this USB mouse with scroll (https://www.linuxquestions.org/questions/slackware-14/how-to-fix-this-usb-mouse-with-scroll-115097/)

IamDaniel 11-12-2003 02:18 AM

How to fix this USB mouse with scroll
 
I am just switch my serial mouse to USB mouse. But just can get the mouse works..below is my dmesg.
Code:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.259 $ time 15:45:26 Jun 23 2001
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.251 Georg Acher, Deti Fliegl, Thomas Sailer, Roman Weissgaerber
usb-uhci.c: USB Universal Host Controller Interface driver
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6 Vojtech Pavlik <vojtech@suse.cz>
usbmouse.c: USB HID Boot Protocol mouse driver
PCI: Found IRQ 12 for device 00:0c.0
PCI: The same IRQ used for device 00:0a.0
hub.c: USB new device connect on bus1/2, assigned device number 2
input0: A4Tech USB Optical Mouse on usb1:2.0

I do trillion of times mouseconfig and select 'USB connected mouse' but just won't works.
By the way,
Quote:

bash# ls -al /dev/mouse
lrwxrwxrwx 1 root root 12 Nov 3 13:43 /dev/mouse -> input/mouse0
Quote:

bash# ls -al /dev/usb/mouse*
crw-rw---- 1 root root 180, 16 Mar 26 2001 /dev/usb/mouse0
crw-rw---- 1 root root 180, 17 Mar 26 2001 /dev/usb/mouse1
crw-rw---- 1 root root 180, 26 Mar 26 2001 /dev/usb/mouse10
crw-rw---- 1 root root 180, 27 Mar 26 2001 /dev/usb/mouse11
crw-rw---- 1 root root 180, 28 Mar 26 2001 /dev/usb/mouse12
crw-rw---- 1 root root 180, 29 Mar 26 2001 /dev/usb/mouse13
crw-rw---- 1 root root 180, 30 Mar 26 2001 /dev/usb/mouse14
crw-rw---- 1 root root 180, 31 Mar 26 2001 /dev/usb/mouse15
crw-rw---- 1 root root 180, 18 Mar 26 2001 /dev/usb/mouse2
crw-rw---- 1 root root 180, 19 Mar 26 2001 /dev/usb/mouse3
crw-rw---- 1 root root 180, 20 Mar 26 2001 /dev/usb/mouse4
crw-rw---- 1 root root 180, 21 Mar 26 2001 /dev/usb/mouse5
crw-rw---- 1 root root 180, 22 Mar 26 2001 /dev/usb/mouse6
crw-rw---- 1 root root 180, 23 Mar 26 2001 /dev/usb/mouse7
crw-rw---- 1 root root 180, 24 Mar 26 2001 /dev/usb/mouse8
crw-rw---- 1 root root 180, 25 Mar 26 2001 /dev/usb/mouse9
And my gpm is running at boot..with the following script.
Quote:

bash# cat /etc/rc.d/rc.gpm

#!/bin/sh
# Running gpm
echo "Running gpm..."
gpm -m /dev/mouse -t imps2
# There is another way to run GPM, where it acts as a repeater outputting a
# virtual MouseSystems mouse on /dev/gpmdata. This is useful for feeding
# gpm's data to X, especially if you've got a busmouse (in that situation X
# and gpm may not coexist without using a repeater). To try running a GPM
# repeater for X, change the gpm command line to look like this:
# gpm -R msc -m /dev/mouse -t imps2
# Then, make sure that the mouse configuration in your XF86Config file refers
# to the repeater device (/dev/gpmdata) and a MouseSystems mouse type. If you
# edit the file directly, you'll want the lines to look like this (minus the
# comment marks '#' shown here, of course):
#Section "Pointer"
# Protocol "MouseSystems"
# Device "/dev/gpmdata"
How to fix this ?

evil_Tak 11-12-2003 01:58 PM

Shouldn't the mouse device be /dev/input/mice instead of /dev/input/mouse0 ?

dd78749 11-12-2003 02:56 PM

My USB mouse device shows a symbolic link pointing to input/mice (/dev/mouse --> input/mice). Change your symlink and see if that will work.

Also, check your X config file. Most USB optical mice will only work if Option "Protocol" is changed to "IMPS/2" and if you have a scroll wheel, add Option "ZAxisMapping" "4 5" below it and it should work just fine.

murray_linux 11-12-2003 04:00 PM

follow this:

http://www.linux-usb.org/USB-guide/x194.html

and your mouse will work.

IamDaniel 12-04-2003 04:05 AM

After get back to the serial mouse a while for some works, I went back to the USB mouse again..for the above solutions, I tried, I changed the mouse dev to /dev/input/mice, but no luck..also I followed links and still the same ..

I am suspect the problem might be caused by the USB hub hardware that I used, it is Insulation Displacement Cable/Connector (IDC) hence it is not built-in to the motherboard..

any idea / hints ?

oneandoneis2 12-04-2003 07:10 AM

I've added the 'Option "ZAxisMapping" "4 5" ' line to my config. file, but the scroll wheel still doesn't work.
It's a simple enough 2-button PS2 mouse - any idea why it hasn't worked?


All times are GMT -5. The time now is 05:14 AM.