Re: evdev Protocol in RELENG_7

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sean C. Farley
Date: Friday, October 19, 2007 - 6:43 am

On Fri, 19 Oct 2007, Sam Fourman Jr. wrote:


Here is my setup for using the MX1000.  It is probably not entirely
correct, but I have been too busy to spend time restructuring it.  If
you get some better ideas, please let me know.

First, I disable moused since it will not pass that many buttons (max
seven buttons?) to Xorg.  /etc/rc.conf:
moused_enable="NO"
moused_nondefault_enable="NO"

Next, I tell Xorg how to use this mouse:
Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "auto"
         Option      "Device" "/dev/ums0"
         Option      "Emulate3Buttons" "false"
         Option      "ZAxisMapping" "9 10"
EndSection

I run this in my .xinitrc/.xsession file:
xmodmap -e "pointer = 1 11 3 9 10 6 7 8 4 5 2 12 13 14"

Swapping buttons 11 and 2 moves the paste button from pressing the wheel
to the up arrow.  It stops all those paste-and-scroll up mistakes.

Amusingly, I get this warning:
Warning: Only changing the first 14 of 32 buttons.

Yes!  I have 32 buttons.  :)  I think it sees the press down and release
actions as two separate buttons.  No.  xev does not show these actions
as separate buttons.

Lastly, I run a little program I wrote to disable CruiseControl else the
up button will keep pasting or something else wicked that I no longer
recall.

Some buttons do not work for me, but I have not seen any need for them.
Hopefully, this will help you get started to finding a better way.  My
payment then is for you to tell us (especially me! :)) of that way.

Sean
-- 
scf@FreeBSD.org
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
evdev Protocol in RELENG_7, Sam Fourman Jr., (Thu Oct 18, 10:58 pm)
Re: evdev Protocol in RELENG_7, Sean C. Farley, (Fri Oct 19, 6:43 am)
Re: evdev Protocol in RELENG_7, Alexander Leidinger, (Fri Nov 9, 6:15 am)