Bug 380734 - sax2: support for Logitech VX Nano Mouse
Summary: sax2: support for Logitech VX Nano Mouse
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: SaX2 (show other bugs)
Version: Factory
Hardware: All openSUSE 11.0
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: Marcus Schaefer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 11:47 UTC by Jörg Hermsdorf
Modified: 2008-04-18 08:48 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
lsusb -d 046d:c521 -vvv (3.08 KB, text/plain)
2008-04-17 11:47 UTC, Jörg Hermsdorf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Hermsdorf 2008-04-17 11:47:16 UTC
Created attachment 208586 [details]
lsusb -d 046d:c521 -vvv

As requested in https://bugzilla.novell.com/show_bug.cgi?id=262317#c156 I open a new issue for this topic on openSUSE 11.0.

The Logitech VX Nano mouse seems to be working well using evdev on openSUSE 11.0 FACTORY. Due to a bug evdev was disabled on openSUSE 10.3 by default. I would like to request to enable evdev on openSUSE 11.0 by default (at least for this mouse model if possible).

Here's my xorg.conf setup, which works well on openSUSE 11.0:

Section "InputDevice"
  Driver       "evdev"
  Identifier   "Mouse[1]"
  Option       "eName" "Logitech USB Receiver"
  Option       "evendor" "046d"
  Option       "product" "c521"
  Option       "InputFashion" "Mouse"
  #Option       "evBits" "+1-2"
  #Option       "keyBits" "~272-287"
  #Option       "relBits" "~0-2 ~6 ~8"
  Option       "HWHEELRelativeAxisButtons" "7 6"
EndSection

It seems like the "eName" option is essential, without it, Xorg fails to start. The "evendor" and "product" options seem to have no effect however, but they don't hurt. The last option line is required to setup horizontal scrolling using the wheel correctly. Without this line the directions are wrongly inverted. I don't know if this is a hardware bug of this model or an edev bug!?
The three (commented out) "*Bits" options, I took from the various /usr/share/sax/profile/logitech-* profiles. I don't know what they are good for. Seems like they are not needed. Without them the mouse works fine and if they are uncommented I experience no difference.

I could create a logitech-vxnano profile, by using the other /usr/share/sax/profile/logitech-* profiles as a template, If nobody else has the time to create this profile. However, I don't know how to tell SAX how to use this profile if this mouse was detected on an openSUSE 11.0 system! Does this require an update to the SAX internal hardware database?

Here's some information about the mouse if needed:

I'll attach the output of 'lsusb -d 046d:c521 -vvv' as a file.

# cat /proc/bus/input/devices
...
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0/input/input3
U: Uniq=
H: Handlers=mouse1 event3
B: EV=17
B: KEY=ffff0000 0 0 0 0
B: REL=143
B: MSC=10

I: Bus=0003 Vendor=046d Product=c521 Version=0111
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.1/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=1f
B: KEY=37fff002c3027 bf00444400000000 1 f848a27c000 667bfad9415fed 8e000000000000 0
B: REL=40
B: ABS=100000000
B: MSC=10
...
Comment 1 Marcus Schaefer 2008-04-17 12:11:27 UTC
could you provide the information from

   /usr/sbin/sysp -s mouse

I need the ID's displayed there

thanks
Comment 2 Marcus Schaefer 2008-04-17 12:22:06 UTC
already found the information and added the profile:

logitech-vxnano 

!remove InputDevice -> [X] -> Option -> Device
!remove InputDevice -> [X] -> Option -> Buttons
!remove InputDevice -> [X] -> Option -> Protocol
!remove InputDevice -> [X] -> Option -> ZAxisMapping

InputDevice -> [X] -> Identifier = Mouse[[X]]
InputDevice -> [X] -> Driver     = evdev
InputDevice -> [X] -> Option -> InputFashion         = Mouse
InputDevice -> [X] -> Option -> Name                 = Logitech USB Receiver
InputDevice -> [X] -> Option -> evendor              = 046d
InputDevice -> [X] -> Option -> product              = c521
InputDevice -> [X] -> Option -> HWHEELRelativeAxisButtons = 7 6


assigned to input map:

0x046d : 0xc521 : logitech-vxnano
Comment 3 Stefan Dirsch 2008-04-17 12:36:22 UTC
I'm afraid this won't work. Jörg, could you please try

Section "InputDevice"
  Driver       "evdev"
  Identifier   "Mouse[1]"
  Option       "Name" "Logitech USB Receiver"
  Option       "InputFashion" "Mouse"
  Option       "evBits" "+1-2"
  Option       "keyBits" "~272-287"
  Option       "relBits" "~0-2 ~6 ~8"
  Option       "Pass" "3"
  Option       "HWHEELRelativeAxisButtons" "7 6"
EndSection

instead. Then it would be consistent to any other evdev profile and a general solution. Specifying eName will not work (Name is just ignored) since the string can be different for the same vendor/product IDs. We stumbled across
this problem before. :-(
Comment 4 Stefan Dirsch 2008-04-17 12:36:58 UTC
needinfo.
Comment 5 Jörg Hermsdorf 2008-04-17 14:12:16 UTC
This seems to work fine, too. What makes me wonder though is, that I tested a similar configuration today (using the Name option and including no Device option) which caused the Xorg startup to fail. But now this one works... strange!
Comment 6 Stefan Dirsch 2008-04-17 14:16:45 UTC
So Marcus please use this profile

!remove InputDevice -> [X] -> Option -> Device
!remove InputDevice -> [X] -> Option -> Buttons
!remove InputDevice -> [X] -> Option -> Protocol
!remove InputDevice -> [X] -> Option -> ZAxisMapping

InputDevice -> [X] -> Identifier = Mouse[[X]]
InputDevice -> [X] -> Driver     = evdev
InputDevice -> [X] -> Option -> InputFashion         = Mouse
InputDevice -> [X] -> Option -> Name                 = Logitech USB Receiver
InputDevice -> [X] -> Option -> evBits               = +1-2
InputDevice -> [X] -> Option -> keyBits              = ~272-287
InputDevice -> [X] -> Option -> relBits              = ~0-2 ~6 ~8
InputDevice -> [X] -> Option -> Pass                 = 3
InputDevice -> [X] -> Option -> HWHEELRelativeAxisButtons = 7 6
Comment 7 Jörg Hermsdorf 2008-04-17 14:30:49 UTC
What about 
InputDevice -> [X] -> Option -> Name = Logitech VX Nano Laser Mouse
?

This is a bit more descriptive than "Logitech USB Receiver"!
Comment 8 Stefan Dirsch 2008-04-17 14:33:01 UTC
Yes, this makes perfectly sense.
Comment 9 Marcus Schaefer 2008-04-18 08:48:55 UTC
thanks, fixed