Re: moused and 7-button mice

2004-11-06 Thread Danny MacMillan
On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote:
> I have a Microsoft Trackball Optical that I'd been using with a Debian system 
> but that I want to switch to my FreeBSD workstation.  The problem I'm having 
> is that it has 7 buttons:
> 
>   Left
>   Middle (clicking the scroll wheel)
>   Right
>   Up scroll
>   Down scroll
>   Far-left button (narrow, to the left of the regular left button)
>   Far-right button
> 
> and moused only seems to pass the first 5 through to X.  That is, it works 
> perfectly well like a regular scroll mouse but those wonderful extra buttons 
> are ignored.  I don't even know where to begin looking for a solution.  Any 
> pointers?

I have a Microsoft IntelliMouse Explorer that also has 7 buttons (two
thumb buttons).  I have all of the buttons working in X using imwheel,
which is in the ports.  To get everything working as it should I did
have to do a little messing around.  I'll outline it here since it
took a while to figure out.

Here is the contents of my .xinitrc:

xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -p -k -b "67"
exec startkde

Here is the contents of my /usr/X11R6/etc/imwheelrc:

".*"
None,Up,Alt_L|Left
None,Down,Alt_L|Right

Note that my requirements are =very= simple.  You might do better to
edit the imwheelrc file installed by default than creating one from
scratch, as I did.

Here's the InputDevice section of my XF86Config:

Identifier  "Mouse1"
Driver  "mouse"
Option "Protocol""Auto"
Option "Device"  "/dev/psm0"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"

This is the only configuration I could get working.  I couldn't get it
working with moused, for example.  Of course, I only invested about 5
hours in it so maybe I just quit too soon :)

I suspect your trackball, also being a Microsoft device, will respond
to a similar configuration.

One last thing I'll point out:  my mouse has a USB connector but I
punch it through a USB -> PS/2 adapter to force it to work with my KVM
switch.

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


Re: moused and 7-button mice

2004-11-06 Thread Christian Hiris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 06 November 2004 19:31, Danny MacMillan wrote:
> On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote:
[...]
> Here's the InputDevice section of my XF86Config:
>
> Identifier  "Mouse1"
> Driver  "mouse"
> Option "Protocol""Auto"
> Option "Device"  "/dev/psm0"
> Option "Buttons" "7"
> Option "ZAxisMapping" "6 7"
>
> This is the only configuration I could get working.  I couldn't get it
> working with moused, for example.  Of course, I only invested about 5
> hours in it so maybe I just quit too soon :)

Moused should work, if you change Option Device from "/dev/psm0" to  
"/dev/sysmouse".

Cheers,
ch

- -- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBjRsT09WjGjvKU74RAhrHAJ9H+zAgl4i7d2ynIvqoEhInOFsLjgCcCjtl
EBrc7mJVOYLLQb8dV+xfQDg=
=MjEM
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: moused and 7-button mice

2004-11-06 Thread Danny MacMillan
On Sat, Nov 06, 2004 at 11:42:04AM -0700, Christian Hiris wrote:
> On Saturday 06 November 2004 19:31, Danny MacMillan wrote:
> > On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote:
> [...]
> > Here's the InputDevice section of my XF86Config:
> >
> > Identifier  "Mouse1"
> > Driver  "mouse"
> > Option "Protocol""Auto"
> > Option "Device"  "/dev/psm0"
> > Option "Buttons" "7"
> > Option "ZAxisMapping" "6 7"
> >
> > This is the only configuration I could get working.  I couldn't get it
> > working with moused, for example.  Of course, I only invested about 5
> > hours in it so maybe I just quit too soon :)
> 
> Moused should work, if you change Option Device from "/dev/psm0" to
> "/dev/sysmouse".

I understand that this will give me basic mouse functionality in X using
moused.  What it doesn't get working is all 7 mouse buttons in X using
moused.

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


Re: moused and 7-button mice

2004-11-06 Thread Christian Hiris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 06 November 2004 20:59, Danny MacMillan wrote:
> On Sat, Nov 06, 2004 at 11:42:04AM -0700, Christian Hiris wrote:
> > On Saturday 06 November 2004 19:31, Danny MacMillan wrote:
> > > On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote:
> >
> > [...]
> >
> > > Here's the InputDevice section of my XF86Config:
> > >
> > > Identifier  "Mouse1"
> > > Driver  "mouse"
> > > Option "Protocol""Auto"
> > > Option "Device"  "/dev/psm0"
> > > Option "Buttons" "7"
> > > Option "ZAxisMapping" "6 7"
> > >
> > > This is the only configuration I could get working.  I couldn't get it
> > > working with moused, for example.  Of course, I only invested about 5
> > > hours in it so maybe I just quit too soon :)
> >
> > Moused should work, if you change Option Device from "/dev/psm0" to
> > "/dev/sysmouse".
>
> I understand that this will give me basic mouse functionality in X using
> moused.  What it doesn't get working is all 7 mouse buttons in X using
> moused.

'imwheel -p -k -b "67"' is probably wrong. This limits button grabbing to 
buttons 6 and 7, where imwheel maps the buttons 6/7 to wheel up/down.
If you run 'xmodmap -e "pointer = 1 2 3 6 7 4 5"' the buttons are mapped as 
should be. I'm running imwheel w/o options and I use the default imwheelrc, 
which was installed by the port. 

- -- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBjVjw09WjGjvKU74RAjfoAJ980qRkELXj4Dp7YuPVX0BA1DkxEQCePfFt
UzVv98LZ01tKmwG6vOp7IRI=
=rZhy
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: moused and 7-button mice

2004-11-06 Thread Nikolas Britton
How do you operate a 7 button mouse when you only have 5 fingers?
;-P
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: moused and 7-button mice

2004-11-06 Thread Christian Hiris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 07 November 2004 00:26, Nikolas Britton wrote:
> How do you operate a 7 button mouse when you only have 5 fingers?
>
> ;-P

Oh sorry, forgot to mention I have 10 fingers ;-)) 

- -- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBjWCI09WjGjvKU74RAipnAJ9HBl9xb2tGhv+D90MMRp1XAdYSEQCaA4E9
RuDDFRimqUnMWahwpb4orgM=
=i2XZ
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: moused and 7-button mice

2004-11-06 Thread Christian Hiris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 07 November 2004 00:06, Christian Hiris wrote:
> On Saturday 06 November 2004 20:59, Danny MacMillan wrote:
> > On Sat, Nov 06, 2004 at 11:42:04AM -0700, Christian Hiris wrote:
> > > On Saturday 06 November 2004 19:31, Danny MacMillan wrote:
> > > > On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote:
> > >
> > > [...]
> > >
> > > > Here's the InputDevice section of my XF86Config:
> > > >
> > > > Identifier  "Mouse1"
> > > > Driver  "mouse"
> > > > Option "Protocol""Auto"
> > > > Option "Device"  "/dev/psm0"
> > > > Option "Buttons" "7"
> > > > Option "ZAxisMapping" "6 7"
> > > >
> > > > This is the only configuration I could get working.  I couldn't get
> > > > it working with moused, for example.  Of course, I only invested
> > > > about 5 hours in it so maybe I just quit too soon :)
> > >
> > > Moused should work, if you change Option Device from "/dev/psm0" to
> > > "/dev/sysmouse".
> >
> > I understand that this will give me basic mouse functionality in X using
> > moused.  What it doesn't get working is all 7 mouse buttons in X using
> > moused.
>
> 'imwheel -p -k -b "67"' is probably wrong. This limits button grabbing to
> buttons 6 and 7, where imwheel maps the buttons 6/7 to wheel up/down.
> If you run 'xmodmap -e "pointer = 1 2 3 6 7 4 5"' the buttons are mapped as
> should be. I'm running imwheel w/o options and I use the default imwheelrc,
> which was installed by the port.

I did some more testing about imwheel:
If you run 'imwheel -p -k "45"' things should work as before + moused support 
working. It seems that Option "Device" "/dev/sysmouse" works fine, while 
"/dev/psm0" switches buttons 4 5 to 6 7.

Another thing that showed up was that some newer X-apps can do 
button/kbd-event translation out of the box. So maybe some of theese appear 
to be much better "mouse-supported", when imwheel is not running (ie. kde). 
   

- -- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBjX7409WjGjvKU74RAglIAJ9HAfrI0JWY7Qiqdj7+Pry1OrQuhQCaAokj
MHhfs3bKTkjG/XtYnoGXEKY=
=Qp3o
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: moused and 7-button mice

2004-11-06 Thread Danny MacMillan
On Sat, Nov 06, 2004 at 06:48:25PM -0700, Christian Hiris wrote:
> I did some more testing about imwheel:
> If you run 'imwheel -p -k "45"' things should work as before + moused
> support working. It seems that Option "Device" "/dev/sysmouse"
> works fine, while "/dev/psm0" switches buttons 4 5 to 6 7.

That's very interesting ... I wondered because my configuration seemed
unnecessarily ornate.  In fact it never made perfect sense to me why it
worked the way it did.  However since getting it working with moused was
never more than an academic exercise for me, I'll leave it as is.

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