That's interesting... I have a Kensington 7-button mouse (including
scroll wheel) http://ftp.kensington.com/pdfs/OpticalFS.pdf
I wanted to use one of the extra buttons as the gesture button. Here
are the two (sensible) combinations that I tried:
(running XFree86 4.1, kernel 2.4.19-rc3-ac3).
This is what I thought it should be:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection
(What should protocol be for /dev/input/mice?)
Result: Everything works except for buttons 6 and 7. The scroll wheel
reports as buttons 4 and 5, and scrolling works fine. When I hit the
first extra button, however, it reports as button 2, and the second extra
button reports as button 3 (as verified by xev).
So I tried this:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
Result: The scroll wheel reports as buttons 6 and 7. Therefore, scrolling
doesn't work. The extra buttons on the mouse still report as buttons 2 and 3.
So I gave up. :) I figured it was an X limitation. Maybe not...?
- Scott
On Wed, 2002-08-14 at 04:58, Stefan Seidel wrote:
> Brad Hards schrieb:
>
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >On Wed, 14 Aug 2002 10:47, Stefan Seidel wrote:
> >
> >
> >>Hi,
> >>I got a little more further in this thing. After making a new kernel
> >>(2.4.18), I can use the /dev/input/eventX interface. When hexdump'ing
> >>this, I can see that all 4 buttons are recognized right. Unfortunately,
> >>X does not support the event interface.
> >>How can it be that /dev/input/mice only gives me 3 distinct buttons and
> >>/dev/input/event0 gives me all the 4 ones? Moreover, how can I fix this?
> >>
> >>
> >Are you really using /dev/input/mice? Your config file showed /dev/usbmouse
> >(which is definately not the same).
> >
> >
> Yes, really. See:
> <----------------------------/>
> [root@stefan stefan]# lsmod | grep "hid" ; echo ----------- ; ls -l
> /dev/usbmouse /dev/input
> hid 18528 0 (unused)
> input 3616 0 [keybdev mousedev hid usbkbd]
> usbcore 59072 1 [fxusb hid usbkbd usb-uhci]
> -----------
> lr-xr-xr-x 1 root root 12 Aug 9 14:23 /dev/usbmouse ->
> input/mouse0
>
> /dev/input:
> insgesamt 0
> crw-r--r-- 1 root root 13, 63 Jan 1 1970 mice
> crw-r--r-- 1 root root 13, 32 Jan 1 1970 mouse0
> <----------------------------/>
>
> And meanwhile I changed the XF86Config-4 to use /dev/input/mice.
>
> I really wonder what's going on, because in the source code for mousedev
> I cannot find anything which would not permit 4 buttons. But X itself
> only sees 3 buttons. Is this maybe a problem of the recognition of the
> USB receiver? I also know someone else whose 7-button Mouse is only
> recognized as 5-button.
>
> Couldn't we just join our forces to eventually write a event input
> driver for X? I know that there is already one for USB Keyboards!
>
> Thanks,
> Stefan
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users