Adventurous fix for wheel mouse not working in FreeBSD 6.0

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Wed Dec 7 13:23:03 PST 2005


On Wed, 07 Dec 2005 09:29:49 +0000
Yann Golanski <yann at kierun.org> wrote:

Interesting discussion.
Does moused do scrolling in the console? I thought I had used that
feature, but now I can't get it to work. Anyway, more info below.

> Section "InputDevice"
>         Identifier  "Mouse0"
>         Driver      "mouse"
>         Option      "Protocol" "auto"
>         Option      "Device" "/dev/sysmouse"
>         Option      "ZAxisMapping" "4 5"
>         option      "Buttons" "6"
> EndSection

On my old machine (running 5.4-stable) the above (minus the ZAxisMapping
line) gives me scrolling in X (Xorg) as long as I have
moused_flags="-z4" in /etc/rc.conf
This works with both a PS/2 connected mouse, and one connected with USB.
The mice in question are:
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
ums0: IBM Corporation product 0x310b, rev 2.00/1.10, addr 3, iclass 3/1
ums0: 3 buttons and Z dir.

and I do start moused manually for the usb mouse, like this:
moused -z4 -p /dev/ums0 -I /var/run/moused.ums0.pid

(the reason for this is that 5.4 doesn't contain an  entry in
/etc/devd.conf to start moused when usb mice attaches)

this box runs the following:
root at kg-work# uname -a
FreeBSD kg-work.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #3: Fri Jul  8
14:26:44 CEST 2005     root at kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G 
i386
root at kg-work# pv | grep xorg-6
xorg-6.8.2                  =  up-to-date with port
root at kg-work# pv | grep xorg-server
xorg-server-6.8.2_7         =  up-to-date with port

Then I tested on my amd64 machine, running FreeBSD 6.0-RELEASE:
(Note: I use the same physical mice!)
root at kg-quiet# dmesg | grep psm
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
root at kg-quiet# dmesg | grep ums
ums0: vendor 0x04b3 product 0x310b, rev 2.00/1.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.

This machine has the complete InputDevice section in /etc/X11/xorg.conf,
like quoted above.
And scrolling does NOT work.
The amd64 machine runs:
root at kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov  2
19:07:38 UTC 2005     root at rat.samsco.home:/usr/obj/usr/src/sys/GENERIC 
amd64 root at kg-quiet# pv | grep xorg-6
xorg-6.8.2                  =  up-to-date with port
root at kg-quiet# pv | grep xorg-server
xorg-server-6.8.99.903      =  up-to-date with port

So I test my laptop, which runs 6.0-stable:
root at kg-jobbpc3# uname -a
FreeBSD kg-jobbpc3.kg4.no 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Nov  6
01:33:12 CET 2005    
root at kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/GENERIC 
i386

This one is a ThinkPad T41, so it has a Synaptics, and in addition I
used the same usb mouse as with the others:
root at kg-jobbpc3# dmesg | grep psm
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
root at kg-jobbpc3# dmesg | grep ums0
ums0: vendor 0x04b3 product 0x310b, rev 2.00/1.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.

and scrolling does NOT work here either.
The laptop runs 
root at kg-jobbpc3# pv | grep xorg-6
xorg-6.8.2                  =  up-to-date with port
root at kg-jobbpc3# pv | grep xorg-server
xorg-server-6.8.2_6         <  needs updating (port has 6.8.2_7)

I know that this report is a bit unorganzied, but doesn't the fact that
my 5.4-stable machine runs a newer version of the xorg-server port than
my 6.0-stable laptop indicate that the fault might be somewhere else
than in the xorg-server?
-- 
Regards, 
Torfinn Ingolfsen,
Norway



More information about the freebsd-stable mailing list