Re: 5-Button Trackball

2004-02-07 Thread Jeff Elkins
> On Friday 06 February 2004 07:24 pm, Jeff Elkins wrote:
> > I'm using a 5-button Microsoft Trackball/Explorer (a gift) that
> > functions perfectly under Debian Unstable/KDE3.1
>
> [...]
>
> > Section "InputDevice"
> >   Identifier "Mouse0"
> >   Driver "mouse"
> >   Option "Protocol""auto"
> >   Option "Device"  "/dev/sysmouse"
> >   Option "ZAxisMapping""4 5"
> >   Option "Buttons" "5"
> > EndSection
> >
> > but only three of the buttons are functional. Are there any tips
> > for making this beast work with FreeBSD 5.2?

Thanks for the responses. Thus far, no joy trying any of the suggestions, but 
I'll keep working on it.

Jeff

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 5-Button Trackball

2004-02-06 Thread Steve D
On Friday 06 February 2004 07:24 pm, Jeff Elkins wrote:

> I'm using a 5-button Microsoft Trackball/Explorer (a gift) that
> functions perfectly under Debian Unstable/KDE3.1
>
[...]
> Section "InputDevice"
>   Identifier "Mouse0"
>   Driver "mouse"
>   Option "Protocol""auto"
>   Option "Device"  "/dev/sysmouse"
>   Option "ZAxisMapping""4 5"
>   Option "Buttons" "5"
> EndSection
>
> but only three of the buttons are functional. Are there any tips
> for making this beast work with FreeBSD 5.2?
--- --- ---


I don't know if this will help you, but I'll describe how I got my 
trackball (a Logitech Marble Mouse USB) to work with FreeBSD 
(currently using 5.1). I used xev in X during the process in order to 
see what X thought was happening when I pressed various buttons or 
moved the trackball on the mouse.

Like you, I use the FreeBSD mouse daemon (moused) in the XF86Config 
file (Option "Device"  "/dev/sysmouse"). My trackbal has two large 
buttons, one on either side, and two smaller buttons located just at 
the top side of the larger buttons, one on each side. Those are 
normally used for scrolling in Windows or the MacOS.

Although the trackball has only four buttons, I used 'Options 
"Buttons" "5"' in XF86Config because I set the mouse daemon to 
emulate a third (middle) button with the -3 option.

In addition, I wanted to enable scrolling. So my XF86Config looks like 
yours with respect to the following:

   Option "ZAxisMapping""4 5"
   Option "Buttons" "5"

So, even though my trackball only has four buttons, I told X that it 
has 5 (four physical buttons and an additional virtual middle button 
supplied by the mouse daemon, used by pressing both the left and 
right buttons at the same time). In addition, because I am asking X 
to use the mouse daemon (/dev/sysmouse), I gave the mouse daemon an 
extra flag:

-z 4

which tells the mouse daemon to report a z-axis movement (vertical 
scrolling) when the fourth button is pressed and held while the 
trackball is moved. When X starts and I press the fourth button (the 
small button above the large left button) while moving the trackball, 
the FreeBSD mouse daemon (moused) reports z-axis movement to X just 
as though I were repeatedly pressing a fourth and fifth button for 
"up" and "down" scrolling, so the 'Option "ZAxisMapping" "4 5"' in 
XF86Config works.

So, to summarize, in my XF86Config file I have:

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "Auto"
Option  "Device" "/dev/sysmouse"
Option  "Buttons" "5"
Option  "ZAxisMapping" "4 5"
EndSection

--notice that there is no 'Option "Emulate3Buttons"' in my XF86Config 
file--the FreeBSD mouse daemon does the emulation instead, both on 
the command line and for XFree86--

and my /etc/rc.conf file includes:

moused_enable="YES"
moused_type="auto"
moused_port="/dev/ums0"
# the port listed above refers to my USB, not a PS/2, trackball
moused_flags="-3 -z 4"

Best wishes,

Steve D
New Mexico, US
-- 

I have not a particle of confidence in a man who has no redeeming 
vices. -Mark Twain


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 5-Button Trackball

2004-02-06 Thread Dan Nelson
In the last episode (Feb 06), Jeff Elkins said:
> I'm using a 5-button Microsoft Trackball/Explorer (a gift) that
> functions perfectly under Debian Unstable/KDE3.1
> 
> I copied the Debian X settings to my BSD XFree86 config file, which
> added ZAxis and Buttons settings:
> 
> Section "InputDevice"
>   Identifier "Mouse0"
>   Driver "mouse"
>   Option "Protocol""auto"
>   Option "Device"  "/dev/sysmouse"
>   Option "ZAxisMapping""4 5"
>   Option "Buttons" "5"
> EndSection
> 
> but only three of the buttons are functional. Are there any tips for
> making this beast work with FreeBSD 5.2?

You probably need to say you have 7 buttons: the five physical buttons,
and two more for the wheel up/down events.  Try setting ZAxisMapping to
"6 7".  I don't know if X is hardcoded to think buttons 4 and 5 are
wheel buttons or not.  If it is, you can shuffle the button mappings
around with moused -m.  moused -df (console) and xev (X) are handy for
debugging button and wheel problems.


-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"