Bug 159405 - Feature Request: Support for Tilt-Wheel Mouse in SaX2
Summary: Feature Request: Support for Tilt-Wheel Mouse in SaX2
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: SaX2 (show other bugs)
Version: Beta 8
Hardware: i686 SuSE Linux 10.1
: P5 - None : Enhancement with 10 votes (vote)
Target Milestone: ---
Assignee: Marcus Schaefer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-19 18:28 UTC by Thomas Meindl
Modified: 2006-09-08 10:00 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Meindl 2006-03-19 18:28:41 UTC
I've noticed that the 'horizontal' wheel on my Logitech G5 mouse is not recognized. xev shows no activity, but a simple 'cat /dev/input/event2' does. 

I've found a howto for debian, which goes like this:

* Event interface evdev must be enabled in the kernel - AFAIK it is SL10.1 beta8
* Create a udev rule like this:
KERNEL=="event*", SYSFS{manufacturer}=="Logitech", SYSFS{product}=="USB Gaming Mouse", NAME=="input/g5", MODE=="0644"
* Apply changes to /etc/X11/xorg.conf:
   Section "InputDevice"
       Identifier "Mouse[1]"
       Driver "evdev"
       Option "Device" "/dev/input/g5"
       Option "CorePointer"
    EndSection

(HowTo (in German): http://jonix.de/wiki/GentooLinux )
I'm not experienced enough to get this working, though.
Comment 1 Thomas Meindl 2006-03-19 18:30:55 UTC
hwinfo --mouse   

17: USB 00.0: 10503 USB Mouse
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_46d_c041_noserial_if0_logicaldev_input
  Unique ID: hSuP.xCkw_U0ZPy7
  Parent ID: pBe4.HuT0cES8p82
  SysFS ID: /devices/pci0000:00/0000:00:02.1/usb2/2-2/2-2:1.0
  SysFS BusID: 2-2:1.0
  Hardware Class: mouse
  Model: "Logitech USB Gaming Mouse"
  Hotplug: USB
  Vendor: usb 0x046d "Logitech Inc."
  Device: usb 0xc041 "USB Gaming Mouse"
  Revision: "46.00"
  Compatible to: int 0x0210 0x0028
  Driver: "usbhid"
  Device File: /dev/input/mice (/dev/input/mouse0)
  Device Files: /dev/input/mice, /dev/input/mouse0, /dev/input/event2
  Device Number: char 13:63 (char 13:32)
  Speed: 12 Mbps
  Module Alias: "usb:v046DpC041d4600dc00dsc00dp00ic03isc01ip02"
  Driver Info #0:
    Buttons: 8
    Wheels: 2
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #16 (Hub)
Comment 2 Marcus Schaefer 2006-03-20 07:56:27 UTC
Stefan what about the udev rules ? You mentioned we will include
such rules but currently we don't ? Assign the bug back to me if
I can rely on the rules to make use of the evdev driver

Thanks
Comment 4 Forgotten User ZhJd0F0L3x 2006-04-11 14:26:41 UTC
i have no clue about udev at all. Probably Christian or Hannes can help on this one
Comment 5 Christian Zoz 2006-04-12 09:53:20 UTC
Why don't you ask mister udev himself?

Further, Marcus, every package may add special rules to /etc/udev/rules.d.
Comment 8 Kay Sievers 2006-04-13 09:16:49 UTC
What does:
  find /dev/input/
print?
Comment 9 Thomas Meindl 2006-04-13 09:38:37 UTC
It shows the following:

/dev/input/
/dev/input/event2
/dev/input/by-path
/dev/input/by-path/pci-0000:00:02.1-usb-0:2:1.0-event-mouse
/dev/input/by-path/pci-0000:00:02.1-usb-0:2:1.0-mouse
/dev/input/by-id
/dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse
/dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-mouse
/dev/input/mouse0
/dev/input/mice
/dev/input/event0
/dev/input/event1
Comment 10 Kay Sievers 2006-04-13 09:41:43 UTC
Marcus,
  /dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse
is created by the generic "persistent input rules". That should work the same way like the custom rule mentioned here.
Comment 11 Forgotten User ZhJd0F0L3x 2006-07-03 14:34:35 UTC
ok, so we should probably add the rules for mice to the X packages? or to the Basesystem? Not my area anyway :-)
Comment 12 Marcus Schaefer 2006-08-28 15:07:28 UTC
put Stefan to CC
Comment 13 Stefan Dirsch 2006-09-02 20:16:47 UTC
Ok. What needs to be done exactly, Seife? I can add some files to xorg-x11-driver-input, if this helps.
Comment 14 Forgotten User ZhJd0F0L3x 2006-09-04 06:56:40 UTC
I have no idea. Maybe we should just get such a device and try it.
I am not sure if the special udev rules are needed at all - shouldn't the kernel abstract this all for us?
Comment 15 Stefan Dirsch 2006-09-04 07:14:08 UTC
Yes, I think if we need a special SaX2 configuration for this device anyway
(driver "evdev", device "/dev/input/g5") - probably by a profile - it would make sense to add this special udev rule to SaX2 as well.
Comment 16 Thomas Meindl 2006-09-04 09:35:00 UTC
Finaly, I've got it working! The following works for me unter SL10.1:

Section "InputDevice"
    Identifier     "Mouse[1]"
    Driver         "evdev"
    Option         "Protocol" "event"
    Option         "SendCoreEvents" "true"
    Option         "Buttons" "8"
    Option         "Device" "/dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse"
    Option         "Name" "Logitech USB Gaming Mouse"
    Option         "Vendor" "Sysp"
    Option         "ZAxisMapping" "7 8"
EndSection

This was mentioned under http://www.unixboard.de/vb3/showthread.php?t=20028 and should also work for Logitech MX 500 and MX 1000 mice.
Comment 17 Marcus Schaefer 2006-09-04 10:26:25 UTC
yes I see that /dev/input listed this device as:

   /dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse

but hwinfo doesn't list this device. How can I check that the device
listed in hwinfo for example:

  /dev/input/event3

is mapped to 

  /dev/input/by-id/usb-Logitech_USB_Gaming_Mouse-event-mouse

? Added snwint to CC
  
  
Comment 18 Steffen Winterfeldt 2006-09-04 12:24:26 UTC
Hm, was indeed missing. Fixed in hwinfo-13.2.
Comment 19 Marcus Schaefer 2006-09-08 10:00:08 UTC
I added support for the evdev driver into sax2. currently only
one device is using the driver because it's a very new driver.

support has been added for the following device:

   0x046d : 0xc041 : logitech-Gaming

if evdev works reliable we can enhance the Input map