LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-16-2004, 04:06 PM   #1
e88z4
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: Debian Sid
Posts: 29

Rep: Reputation: 15
usb mouse not working using kernel 2.6


Hi,
I just compiled kernel 2.6.2 this morning, switching from 2.4.24. I got a problem with my USB mouse. The mouse works fine under gpm and X using 2.4.24.

When I boot my machine using 2.6 kernel, it boots and start X properly. The X start with the mouse pointer freezing on the middle of the screen. I checked the log file but there is no error. I got the red light on from my usb mouse. There is no response when I type "cat /dev/input/mice"
Weird characters appears on the screen as I move or click on my mouse when I type "cat /dev/input/mice" using my 2.4 kernel.
The following modules are loaded while my system boot:
hid, usb-core, uhci_hcd

Am I missing something?

This my config file:

# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
# CONFIG_INPUT_TSDEV is not set
CONFIG_INPUT_EVDEV=m
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
# CONFIG_MOUSE_SERIAL is not set

This is my XF86Config-4 file (works fine with 2.4.24, but not 2.6 kernel):

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "false"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
 
Old 02-16-2004, 05:20 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
The device point is probably different under 2.4 then 2.6, boot to runlevel 1 or 3 with 2.6 and have it configure itself:

X -configure

And compare the two files, see where the kid ended up.

Cheers,

Finegan
 
Old 02-16-2004, 08:21 PM   #3
e88z4
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: Debian Sid
Posts: 29

Original Poster
Rep: Reputation: 15
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
EndSection

This is the result in mouse section after running X -configure. X failed to run using this configuration. It is pointing to the wrong device, in my system /dev/mouse is a directory. I tried to edit the device section to /dev/mouse/mice then typing "cat /dev/mouse/mice"
I don't get any response from my usb mouse.

Is there anything else I could try?

Note: Using kernel 2.6, console mouse doesn't work either.
 
Old 02-16-2004, 08:56 PM   #4
e88z4
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: Debian Sid
Posts: 29

Original Poster
Rep: Reputation: 15
Ooppss,

/dev/mouse is not a directory, it is a symbolic link to /dev/mice which is a directory.

Thanks in advance
 
Old 02-20-2004, 03:15 PM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
I'd get spooked that hid isn't loading or really... hotplugging may be doinked up a tad, check what modules you've got loaded under /sbin/lsmod and then just hand load a bunch from:

/lib/modules/2.6.X/kernel/drivers/usb/

There are 3 directories there with bunches of modules in them probably. Also, did you copy over the new 2.6 System.map to /boot?

Sorry this took so long, 1 day without net access followed by 3 spent interview crambing.

Cheers,

Finegan
 
Old 02-20-2004, 11:49 PM   #6
simjii
Member
 
Registered: Nov 2003
Distribution: SUSE 11.0 32bit and11.2 x86_64
Posts: 77

Rep: Reputation: 16
To have a mouse work, you may have to load uhci-hcd module. After I switched to kernel 2.6 I had the same problem. Although uhci-hcd modules supposed to be loaded automatically it is not. So you have to do it manually. Use modprobe instead insmod.
 
Old 02-21-2004, 08:02 AM   #7
dancar
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
I had similar problem yesterday, when I compiled 2.6.3.
Before with 2.4.23 my XF86Config was pointing to /dev/input/mouse0. I just changed to /dev/mouse and it worked.
If gdm is working (mouse on console) try to see what device it is pointing at.
 
Old 02-22-2004, 11:15 AM   #8
e88z4
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: Debian Sid
Posts: 29

Original Poster
Rep: Reputation: 15
Sorry for late reply,

I was so busy this week. This is the module loaded during the system boot:

hid 24832 0
uhci_hcd 31372 0 -> I have VIA motherboard
usbcore 111388 5 hid,usblp,uhci_hcd

I tried any possibility where found which device is my mouse pointing at. Any other modules I missed to load? The system.map was copied to my /boot partition.

I tried to locate which device my mouse is pointing at. These were my result:

/dev/usb/mouse0 -> no such device. I tried up to mouse15

/dev/usb/mice -> no such device

/dev/input/mice -> there is no output when I tried this. I should get weird characters as I scrolled or clicked my USB mouse.

/dev/input/mouse0 -> no such device. I tried up to mouse15


Other problem was every time I boot with kernel 2.6.x, the red light from my mouse just was on only for a sec. I have to unplugged my USB mouse before I can get the red light on. This also occurred when switching from kernel 2.6.x to 2.4.x.

Any other suggestion?
 
Old 02-23-2004, 04:46 AM   #9
e88z4
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: Debian Sid
Posts: 29

Original Poster
Rep: Reputation: 15
I found out why my usb mouse isn't working. X doesn't give any error but dmesg does. This is the msg I got using kernel 2.6.3. Any ideas what does it mean? Does it seems to be a buggy uchi_hcd driver?

usb 1-2: hcd_unlink_urb df627540 fail -22
usb 1-2: hcd_unlink_urb df6274c0 fail -22
drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889240] link (1f8891b2) element (1f89a040)
0: [df89a040] link (1f89a080) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a080] link (1f89a0c0) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a0c0] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889270] link (1f8891b2) element (1f89a100)
0: [df89a100] link (1f89a140) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a140] link (1f89a180) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a180] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889240] link (1f8891b2) element (1f89a040)
0: [df89a040] link (1f89a080) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a080] link (1f89a0c0) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a0c0] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889270] link (1f8891b2) element (1f89a100)
0: [df89a100] link (1f89a140) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a140] link (1f89a180) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a180] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889240] link (1f8891b2) element (1f89a040)
0: [df89a040] link (1f89a080) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a080] link (1f89a0c0) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a0c0] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889270] link (1f8891b2) element (1f89a100)
0: [df89a100] link (1f89a140) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a140] link (1f89a180) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a180] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889240] link (1f8891b2) element (1f89a040)
0: [df89a040] link (1f89a080) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a080] link (1f89a0c0) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a0c0] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)

drivers/usb/host/uhci-hcd.c: uhci_result_control() failed with status 440000
[df889270] link (1f8891b2) element (1f89a100)
0: [df89a100] link (1f89a140) e0 LS Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=2, PID=2d(SETUP) (buf=01684e80)
1: [df89a140] link (1f89a180) e3 SPD LS Active Length=0 MaxLen=1 DT1 EndPt=0 Dev=2, PID=69(IN) (buf=1f634280)
2: [df89a180] link (00000001) e3 LS IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=2, PID=e1(OUT) (buf=00000000)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Mouse not working - kernel 2.6.12.2 vasanthraghavan Red Hat 1 07-19-2005 09:10 PM
USB wireless mouse not working w/ custom RH kernel cellist Linux - Laptop and Netbook 0 12-24-2004 03:12 PM
Kernel 2.6.9 - XF86 4.4.0 - USB Mouse not working MattOlz Linux - Hardware 1 10-28-2004 05:38 PM
USB mouse not working X11 4.4 Kernel 2.6.9 MattOlz Linux - Hardware 0 10-28-2004 02:52 PM
ps/2-mouse via usb-adaptor not working - usb error=-110 mule Fedora 0 01-30-2004 06:23 AM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration