RE: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-28 Thread Ted Mittelstaedt


> -Original Message-
> From: Valery [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 28, 2005 4:24 AM
> To: Ted Mittelstaedt
> Cc: freebsd-questions@freebsd.org
> Subject: Re: HOWTO : Setting Up a mouse + wheel on a traditional ps/2
> port in FBSD 5.3
>
>
> Ted Mittelstaedt wrote:
>
> > Hey Valery, a few things on this:
> >
> > This only works for mice that support the intellimouse protocol.
> >
> > Simplest way to find out if your mouse supports this is to kill
> > the moused daemon, then issue the command:
> >
> > moused -p /dev/psm0 -t auto -d -f
> >
>
> All right, this explain a lot of mis-understand things i found
> on the net (same parms working for one and not for others)
>
> > You should NEVER set the protocol for the mouse in either Xfree86 or
> > xorg to anything other than sysmouse, when using FreeBSD.  And, if
> > your going to run X you should -always- run moused.
> >
> Ok, that's what i found. But, why X choose ps/2 when "Protocol"
> is set to "Auto" ?

"auto" instructs the mouse daemon that when it sees a ps/2 port to use
the ps/2 protocol, when it sees a serial port to probe for that, when
it sees a usb port to setup for usb protocol.

It is preferable particularly in a doc like this because it applies
universally.

> I'm afraid that informations about "Protocol" "sysmouse" are very
> difficult to find. I did not on my side, not even on the net nor
> on the FreeBSD or X documentations.
>

You don't need to worry about it.  Any problems between moused and
X's support for the sysmouse protocol are something an ordinary user
probably will never see.  This can be ignored as the problem of the
moused authors and X authors.

What an ordinary user needs to be concerned with is if moused is
correctly talking to their rodent.

> > Note - many wheel mice use a push on the wheel as a second button.
>
> Thank
>
> > I don't understand how your X server got:
> >
> >>  My X.log whith the 'sysmouse' protocol :
> >>(**) Option "ZAxisMapping" "4 5"
> >>(**) Mouse0: ZAxisMapping: buttons 4 and 5
> >
> > when you had configured
> >
> >   Option"ZAxisMapping" "X"
> >
> > If I knew I could probably tell you why rebooting worked.
>
> Sorry, it was the previous version of my log file.
> (always difficult to write a summary with a lot of pieces)
> Perhaps a mobo pb., or a forgot of mine, no matter to worry about that.
> I'm sometimes "Aemnesiac" too ... :o)
>
> Many thanks Ted for your tips. i hope that the whole thing will be
> interesting for others, sheding a light on this stuff.
>
> Just a little thing - to be clean - i found after posting :
> 2. Parameters
>   /etc/X11/xorg.conf :
>  Section "InputDevice"
># All parms according to previous posts and ...
>Option  "Emulate3Buttons" "Off"

It's off whenever more than 2 buttons are detected - a wheel mouse always
has more than 2 - but this might prevent a useless error message in the
log

Ted

>  EndSection
>
> Regards,
>
> v/
>

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


Re: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-28 Thread Valery
Ted Mittelstaedt wrote:
Hey Valery, a few things on this:
This only works for mice that support the intellimouse protocol.
Simplest way to find out if your mouse supports this is to kill
the moused daemon, then issue the command:
moused -p /dev/psm0 -t auto -d -f
All right, this explain a lot of mis-understand things i found
on the net (same parms working for one and not for others)
You should NEVER set the protocol for the mouse in either Xfree86 or
xorg to anything other than sysmouse, when using FreeBSD.  And, if
your going to run X you should -always- run moused.
Ok, that's what i found. But, why X choose ps/2 when "Protocol"
is set to "Auto" ?
I'm afraid that informations about "Protocol" "sysmouse" are very
difficult to find. I did not on my side, not even on the net nor
on the FreeBSD or X documentations.
Note - many wheel mice use a push on the wheel as a second button.
Thank
I don't understand how your X server got:
 My X.log whith the 'sysmouse' protocol :
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
when you had configured
  Option"ZAxisMapping" "X"
If I knew I could probably tell you why rebooting worked.
Sorry, it was the previous version of my log file.
(always difficult to write a summary with a lot of pieces)
Perhaps a mobo pb., or a forgot of mine, no matter to worry about that.
I'm sometimes "Aemnesiac" too ... :o)
Many thanks Ted for your tips. i hope that the whole thing will be
interesting for others, sheding a light on this stuff.
Just a little thing - to be clean - i found after posting :
2. Parameters
 /etc/X11/xorg.conf :
Section "InputDevice"
  # All parms according to previous posts and ...
  Option  "Emulate3Buttons" "Off"
EndSection
Regards,
v/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-28 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Valery
> Sent: Saturday, February 26, 2005 10:35 PM
> To: freebsd-questions@freebsd.org
> Subject: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port
> in FBSD 5.3
>
>
> * Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3
>... and others ... *
>

Hey Valery, a few things on this:

This only works for mice that support the intellimouse protocol.

Simplest way to find out if your mouse supports this is to kill
the moused daemon, then issue the command:

moused -p /dev/psm0 -t auto -d -f

and read the first line, it will print out the model of the mouse
(for example MouseMan+) then move the
wheel up and down should generate a stream of events on the console

If moving the wheel generates nothing, buy a different mouse.

usb and serial mice with wheels can be tested with the same procedure
except change the port -p  of course.

> 1. Must know
>   ps2 bus   : the ps/2 bus is mapped as /dev/psm0
>   /dev/psm0 : support only 'ps/2' protocol ( moused(8) )
>   moused : map /dev/psm0 as a virtual port to
>/dev/sysmouse (ie like /dev/ttyv0 is a virtual tty)
>   X : work with the /dev/sysmouse virtual device as
> input device.
>   xorg.conf : When setting up "Protocol" to "Auto" the protocol choosed
>   by X is ps/2 which don't work for me (i don't know how to
>   use a wheel with it without setting up parms for
> each apps)
>   xorg.conf : setting up "Protocol" to "sysmouse" is the best
> way i find
>   to use my wheel. /sysmouse/ work "natively" with xterm,
>   Mozilla, and so on. No needs to change anything.
>

You should NEVER set the protocol for the mouse in either Xfree86 or
xorg to anything other than sysmouse, when using FreeBSD.  And, if
your going to run X you should -always- run moused.

Per the man page if you use moused, ps/2 or auto are the only acceptable
protocols that are allowed to be set for the ps/2 port.

During the FreeBSD installation for 4.X you are asked to set these up.

> 2. Parameters
>   /etc/rc.conf :
>   moused -p /dev/psm0 -t ps/2

moused -p /dev/psm0 -t auto

is setup by the FreeBSD installation program and it will work just as
well.

Note - many wheel mice use a push on the wheel as a second button.

>
>   /etc/X11/xorg.conf :
>   Section "InputDevice"
> Identifier  "Mouse0"
> Driver  "mouse"
> Option"Protocol" "sysmouse"
> Option"Device" "/dev/sysmouse"
> Option"Buttons" "5"
> Option"ZAxisMapping" "X"

This probably should be:

  Option"ZAxisMapping" "4 5"

In fact, the only thing that generally needs to be added to this section
is:

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


>   EndSection
>
> 3. Some tips
>   Testing :
>   1 - kill the moused daemon
>   2 - set mouse on console : vidcontrol -m on
>   3 - launch moused on foreground to see if it's work :
>moused -f -p /dev/psm0 -t ps/2
>   4 - press ^C to end
>   5 - if result are ok, launch moused with your previous parms
>   6 - set up rc.conf && xorg.conf as above.
>   7 - try to use a lightweight wm like IceWM or twm to test,
>   it respect well X parms.
>

For testing with twm:

fill an xterm with text, scroll up and down.

firefox also supports the scroll wheel.

> 4. Comments
>i don't know why, but logoff/login or reboot your computer
> in order to
>   get this stuff working properly : first time i set this parms, they
>   don't work. Because i was almost sure they must work, i rebooted my
>   computer and they work fine. Perhaps some guy from BSD could
>   explain ...
>

I don't understand how your X server got:

>   My X.log whith the 'sysmouse' protocol :
.
.
>   (**) Option "ZAxisMapping" "4 5"
>   (**) Mouse0: ZAxisMapping: buttons 4 and 5

when you had configured

  Option"ZAxisMapping" "X"

If I knew I could probably tell you why rebooting worked.

Ted

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


HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-27 Thread Valery
* Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3
  ... and others ... *
1. Must know
 ps2 bus   : the ps/2 bus is mapped as /dev/psm0
 /dev/psm0 : support only 'ps/2' protocol ( moused(8) )
 moused: map /dev/psm0 as a virtual port to
 /dev/sysmouse (ie like /dev/ttyv0 is a virtual tty)
 X : work with the /dev/sysmouse virtual device as input device.
 xorg.conf : When setting up "Protocol" to "Auto" the protocol choosed
 by X is ps/2 which don't work for me (i don't know how to
 use a wheel with it without setting up parms for each apps)
 xorg.conf : setting up "Protocol" to "sysmouse" is the best way i find
 to use my wheel. /sysmouse/ work "natively" with xterm,
 Mozilla, and so on. No needs to change anything.
2. Parameters
 /etc/rc.conf :
moused -p /dev/psm0 -t ps/2
 /etc/X11/xorg.conf :
Section "InputDevice"
  Identifier  "Mouse0"
  Driver  "mouse"
  Option"Protocol" "sysmouse"
  Option"Device" "/dev/sysmouse"
  Option"Buttons" "5"
  Option"ZAxisMapping" "X"
EndSection
3. Some tips
 Testing :
 1 - kill the moused daemon
 2 - set mouse on console : vidcontrol -m on
 3 - launch moused on foreground to see if it's work :
  moused -f -p /dev/psm0 -t ps/2
 4 - press ^C to end
 5 - if result are ok, launch moused with your previous parms
 6 - set up rc.conf && xorg.conf as above.
 7 - try to use a lightweight wm like IceWM or twm to test,
 it respect well X parms.
4. Comments
  i don't know why, but logoff/login or reboot your computer in order to
 get this stuff working properly : first time i set this parms, they
 don't work. Because i was almost sure they must work, i rebooted my
 computer and they work fine. Perhaps some guy from BSD could
 explain ...
 My X.log whith the 'sysmouse' protocol :
(**) Option "Protocol" "sysmouse"
(**) Mouse0: Device: "/dev/sysmouse"
(**) Mouse0: Protocol: "sysmouse"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/sysmouse"
(**) Option "BaudRate" "1200"
(**) Option "StopBits" "2"
(**) Option "DataBits" "8"
(**) Option "Parity" "None"
(**) Option "Vmin" "1"
(**) Option "Vtime" "0"
(**) Option "FlowControl" "None"
(**) Option "Buttons" "5"
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 5
(**) Mouse0: BaudRate: 1200
// ... //
(II) 3rd Button detected: disabling emulate3Button
5. Probed apps
  xterm
  Mozilla
  gVim
6. Ref.
  sysmouse(4), moused(8)
  /usr/X11R6/lib/X11/doc/README.mouse ...
  ... no information about sysmouse protocol
  http://colas.nahaboo.net/mouse-wheel-scroll/#FAQ
yours
v/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"