[Bug 968] New input driver for linux input devices (evdev)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 19 16:45:43 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://bugs.freedesktop.org/show_bug.cgi?id=968        
   




------- Additional Comments From nmirthes at gmail.com  2004-12-19 16:45 -------
With a couple of changes, I've got both drivers building against kernel 2.6.x
and the xorg sdk. Building evdev_drv against kernel 2.6.x without an xorg source
tree needs the xorg sdk installed and the following simple patches:

http://personal.nbnet.nb.ca/strawman/evdev-Imakefile-SDK.patch

and

http://personal.nbnet.nb.ca/strawman/evdev-kernel26-fix-1.patch

In my xorg.conf I've got:

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "evdev"
        Option      "Device" "/dev/input/event4"
        Option      "Protocol" "Auto"
        Option      "ZAxisMapping" "4 5"
        Option      "Buttons" "10"
        Option      "Emulate3Buttons" "no"
EndSection

/proc/bus/input/devices (mice)

I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
H: Handlers=mouse0 event1
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I've got one mouse connected, and I assume the above is a result of a particular
option regarding usb mice in my bios. USB Mouse Support

I: Bus=0003 Vendor=046d Product=c01d Version=2100
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:02.0-2/input0
H: Handlers=mouse2 event4
B: EV=f
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103
B: ABS=300 0

Unfortunately, Xorg.0.log shows me:

(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) Mouse0: fd=5
(II) Mouse0: No key events available
(II) Mouse0: missing x or y absolute axes

As well,

LookupDeviceIntRec id=0x8 not found

is also printed a lot.

The mouse ends up working well enough, and xmodmap -pp claims:

There are 32 pointer buttons defined.

However, the buttons get mappped undesirably for me. On this Logitech MX510, the
two side buttons become 4 and 5 along with the wheel. The top button gets 6, and
the "cruise control" buttons get 4 and 5 as well (as expected). The foremost
"cruise control" button also produces an extraneous ButtonRelease event. Button
4 is expected, but an event for button 7 also appears as described here:

http://bugzilla.kernel.org/show_bug.cgi?id=1786

While i was able to get the second driver, linuxevdev_drv, to build against the
xorg sdk, i had to copy several headers from the xorg tree to the linuxevdev
directory. While it did build successfully, trying to use it wedges my box
forcing me to ctrl-alt-del or reset.
        
   
   
--         
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list