Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 186874

Summary: xorg does not hadle any more 2 axis mice
Product: Gentoo Linux Reporter: DEMAINE Benoît-Pierre, aka DoubleHP <dhp_gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/log/Xorg.0.log

Description DEMAINE Benoît-Pierre, aka DoubleHP 2007-07-28 10:25:57 UTC
End of june, I set up 2 axis wheel mouse configuration, and it worked for 2 weeks. After some system updates, it stopped working. Initial report was made in forums:
http://forums.gentoo.org/viewtopic.php?p=4152236#4152236

Facts are:
- I have a Logitech RX1000
- configured as explained on http://imaginux.com/roadtolinux/dotclear/index.php?2007/04/24/196-logitech-lx3 
- it worked for about 2 weeks
- stoped working without changing anything in Xorg conf, but seems to be after xorg re-emerging
- when I cat /dev/input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse it produces habitual garbage on scree, in the 4 possible ways to push the wheeh (I mean: mouse works fine, and kernel driver can /still/ handle both axes).
- xev do report events on vertical scrolling, but not on horizontal for this mouse
- all always worked and still works fine with my home made PS2 touchpad (home made after disassembling a laptop) (always worked, and still works => xorg still hadles horizontal events ).

My personnal conclusion is that ... driver for USB mouse broke by the mean time.

*** *** ***

I esync every night, and emerge -DaNuv world twice a week. I cant give breaking day because I dont use this feature daily.

I could give actual xorg.log, but I am not sure it would be revealant since I did not keep one from the time it used to work. I ll try if this BTS allows me to atatch such big files.

*** config *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "fr"
EndSection
# /dev/input/by-id/usb-Logitech_HID_compliant_keyboard-event-kbd

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "evdev"
        Option          "Device"                "/dev/input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
        Option          "HWHEELRelativeAxisButtons"     "7 6"
EndSection

Section "InputDevice"
        Identifier      "PS2 Mouse"
        Driver          "synaptics"
###     Synaptics Touchpad and kernel 2_6_0.htm
# the following values are the default ones; I changed them for my own use.
        Option "Protocol" "auto-dev"
        Option "Edges" "1900 5400 1900 4000"
        Option "Finger" "25 30"
        Option "MaxTapTime" "220"
        Option "MaxTapMove" "300"
        Option "VertScrollDelta" "60"
        Option "HorizScrollDelta" "60"
        Option "MinSpeed" "0.02"
        Option "MaxSpeed" "0.12"
        Option "AccelFactor" "0.0008"
        Option "SHMConfig" "on"
        Option "Device" "/dev/psaux"
        Option "Emulate3Buttons" "false"
#       Option          "Emulate3Buttons"       "true"
        Option          "SendCoreEvents"
        Option          "ZAxisMapping"          "4 5 6 7"
EndSection

[...]

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen  0       "Sun_br" 0 0    #RightOf
        Screen  1       "Sun_bl" LeftOf "Sun_br"
        Screen  2       "iiy_ur" Above "Sun_br"
        Screen  3       "Sun_ul" Above "Sun_bl"
        InputDevice     "Generic Keyboard"
        InputDevice     "USB Mouse"     "AlwaysCore"
        InputDevice     "PS2 Mouse"     "CorePointer"
        Option "BlankTime"      "60"
        Option "StandbyTime"    "61"
        Option "SuspendTime"    "62"
        Option "OffTime"        "63"
        Option  "Xinerama"      "on"
EndSection 

*** /tmp/emerge--info *** *** *** *** *** *** *** *** *** *** ***

here: http://bugs.gentoo.org/attachment.cgi?id=126207&action=view
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2007-07-28 10:26:38 UTC
Created attachment 126212 [details]
/var/log/Xorg.0.log
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2007-07-28 11:13:42 UTC
In fact, syntax of xorg.conf changed; here is the minimal conf section to get it working:

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "evdev"
        Option          "CorePointer"
        Option          "Name"  "Logitech USB Optical Mouse"   
        Option          "HWHEELRelativeAxisButtons" "7 6"
EndSection

Here is my personnal setting that also works very well:

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "evdev"
        Option          "Emulate3Buttons"       "true"  #optional
        Option          "Name"  "Logitech USB Optical Mouse"
        Option          "ZAxisMapping"          "4 5"   #optional
        Option          "HWHEELRelativeAxisButtons"     "7 6"
EndSection 

Closing INVALID.

Fix has been given on forum exactly while I was typing this report. Took a few minutes to check it.