Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182484 - gentoo-sources-2.6.20-r8 - USB optical Logitech mouse not working properly. Weird motion behavior
Summary: gentoo-sources-2.6.20-r8 - USB optical Logitech mouse not working properly. W...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.21
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-18 17:18 UTC by Ronne
Modified: 2007-06-22 15:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg Log messages (dmesg.log,17.21 KB, text/plain)
2007-06-18 17:20 UTC, Ronne
Details
lspci -vv messages (lspci.log,8.42 KB, text/plain)
2007-06-18 17:21 UTC, Ronne
Details
lswh - List of hardware (lshw.log,11.64 KB, text/plain)
2007-06-18 17:22 UTC, Ronne
Details
hardware connected in the bus - cat /proc/bus/input/devices (proc-bus-input-devices.log,909 bytes, text/plain)
2007-06-18 17:23 UTC, Ronne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ronne 2007-06-18 17:18:07 UTC
Hi guys, I getting almost crazy trying fix this problem. I have already google it and try every single fix to this bug but I couldn't fix it. So, I hope somebody could help me on that.
That is the problem:
I have this mouse, USB-PS2 Logitech optical mouse (model: M-BJ58) attached to my laptop. It is a Compaq Presario 1700 laptop. I recently installed Linux-gentoo-2.6.20-r8. Every thing went smoothly until I pluged the usb mouse. I already had the synaptics mouse working but I prefer work with the normal mouse. The system recognize the mouse and after configure the X11-Xorg properly (I think) when I move the mouse very slowly the pointer move but with a weird motion, like jumping along the direction of the motion. And if a move the it fast I couldn't even see the pointer, they just jump around the whole screen. Fix that I had already tried:
Make sure the hotplug is working.
Several different configuration of the kernel, like complie the USB, USB-HID, HID, PS-MOUSE etc... as modules or as kernel modules (*.o or *.ko)
Several different configuration of the X11-Xorg. 
add udev rule to link the hardware to a specific path. 
etc... 
pretty much every fix that I could find, I tried, but noting worked.
Curios thinks:
If I use the gentoo Live-CD the same behavior happens, but if I use the ubunto Live-CD, the mouse works just fine.
When I cat the synaptics mouse the characters on the screen appear in a smoothly way, but cat the usb mouse, the characters appears in the screen in a weird manner, like much slower and like jumping behavior, similar in what happens with the mouse behavior. 

I don't know why or how it works but the system is linking both mouse, the synaptics and the usb to the same device, /dev/input/mice. Therefore I am using the event or mouse path to configure the Xorg. My mouse configuration in the xorg is:

Section "InputDevice"
        Identifier  "Logitech"
        Driver      "evdev"
        Option      "Device" "/dev/input/mouse1"
        Option "Protocol" "ExplorerPS/2"
EndSection

Section "InputDevice"
   Driver       "synaptics"
   Identifier   "TouchPad"
   Option       "Device"        "/dev/input/mouse0"
   Option       "Protocol"      "SynPS/2"
(More options not relevant)
EndSection

All kinds of Protocol or Device or driver I already had tried. but the behavior is the same of even worst (ex. when I use the mouse driver), some times the freeze, other times the synaptics doesn't work, or just the usb doesn't work. The last config it is the most stable one. My guess is the the driver assign for the hardware (USB Optical mouse) is not the properly one. I think that because the weird behavior of the mouse is evident in a layer before the Xorg even start, for example, when I cat the USB mouse device. So, that is my description, somebody brave enough to help me out?
Thanks in advanced.

Reproducible: Always

Steps to Reproduce:
1.Reboot the system
2.Start the X and gnome


Actual Results:  
The mouse acct weird, since the beginning, even on the logon screen.
Comment 1 Ronne 2007-06-18 17:20:47 UTC
Created attachment 122420 [details]
dmesg Log messages
Comment 2 Ronne 2007-06-18 17:21:26 UTC
Created attachment 122422 [details]
lspci -vv messages
Comment 3 Ronne 2007-06-18 17:22:18 UTC
Created attachment 122423 [details]
lswh - List of hardware
Comment 4 Ronne 2007-06-18 17:23:40 UTC
Created attachment 122425 [details]
hardware connected in the bus - cat /proc/bus/input/devices
Comment 5 Mike Pagano gentoo-dev 2007-06-21 18:45:25 UTC
Can you test with kernel sources 2.6.22-rc5?

This is the latest stable prepatch as of this comment.

A note on bugzilla states that much USB work was done in 2.6.22-rc4.
Comment 6 Ronne 2007-06-21 21:50:55 UTC
(In reply to comment #5)
> Can you test with kernel sources 2.6.22-rc5?
> 
> This is the latest stable prepatch as of this comment.
> 
> A note on bugzilla states that much USB work was done in 2.6.22-rc4.
> 

How do I install Kernel Sources 2.6.22-rc5 ?

It not show up when I try to emerge it. 

emerge gentoo-sources -s

*  sys-kernel/gentoo-sources
      Latest version available: 2.6.20-r8
      Latest version installed: 2.6.20-r8
      Size of files: 42,597 kB
      Homepage:      http://dev.gentoo.org/~dsd/genpatches
      Description:   Full sources including the Gentoo patchset for the 2.6 kernel tree
      License:       GPL-2

Comment 8 Ronne 2007-06-22 05:00:27 UTC
BANG!!!! BANG BANG !!!

Problem solved.

I compiled the Kernel-2.6.21-r5 and guess what, it works. Thank you guys for all suggestions. I guess there was some problem with the USB and the udev in the kernel that I was using (2.6.20-r8). It is just a guess based in what I did:

1st:
I ran the Ubuntu Live CD (my mouse worked just fine with the Ubunto Live CD) and I figured out what was the kernel on that live CD (Kernel 2.6.12-r9). Than I download the Kernel 2.6.12-r6 sources from kernel.org (they don't have 2.6.12-r9, I think that is a specific version for Ubunto distro), and installed it. 
Result: The mouse didn't work either. Therefore the problem wasn't something else additional to the kernel, probably wasn't the kernel et all. My second guess was with the udev package. I checked and compared the rules from the Ubunto Live CD and the one installed on my computer. I even copied the udev rules from the Ubunto CD to my system and tested with that, guess what? didn't work either. 

Finally I downloaded, compiled and installed the Kernel 2.6.21-r5 from the Kernel.org. I configured the kernel as simple as possible, with only support for the hardware on my computer. Most of the things as a built-in (not module). And guess what IT WORKS!!!!!

So many hours working on that, you guys can image how happy I am. Was a leaning experience. Thank you guys, see you next time... 
Best
RT