johnwrussell@comcast.net
2005-Dec-06 23:04 UTC
Adventurous fix for wheel mouse not working in FreeBSD 6.0
After installing FreeBSD 6.0, I was no longer able to scroll using the wheel on my Logitech Optical Mouse. I ran moused with the -fd flags and confirmed that the mouse daemon was catching the z-axis events. My xorg.conf looked OK to me: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Device" "/dev/sysmouse" Option "CorePointer" Option "AlwaysCore" Option "Protocol" "Auto" Option "Buttons" "5" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "no" EndSection I struggled for days and tried dozens of things. I came to suspect that the problem was related to changes in the way ZAxisMapping is handled by Xorg. Based on stuff in an Xorg mailing list, I suspect further changes, likely to be corrective, will be in future versions of the FreeBSD xorg-server port. However, for the adventurous and impatient, this is what I did to fix my problem: 1. Edit /usr/ports/x11-servers/xorg-server/work/xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c and change from NULL to "4 5" in the following line: 530c530 < s = xf86SetStrOption(pInfo->options, "ZAxisMapping", "4 5"); ---> s = xf86SetStrOption(pInfo->options, "ZAxisMapping", NULL);2. portupgrade -Wwf xorg-server 3. Restart the X server with CTRL-ALT-Backspace. I don't really know why it works, so I recommend it only for daredevils, unless someone wiser can say it is sound. Cheers, John
On Wed, 07 Dec 2005 09:03:19 +0200, <johnwrussell@comcast.net> wrote:> After installing FreeBSD 6.0, I was no longer able to scroll using the > wheel on my Logitech Optical Mouse. I ran moused with the -fd flags and > confirmed that the mouse daemon was catching the z-axis events. My > xorg.conf looked OK to me: > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Device" "/dev/sysmouse" > Option "CorePointer" > Option "AlwaysCore" > Option "Protocol" "Auto" > Option "Buttons" "5" > Option "ZAxisMapping" "4 5" > Option "Emulate3Buttons" "no" > EndSection > > I struggled for days and tried dozens of things. I came to suspect that > the > problem was related to changes in the way ZAxisMapping is handled by > Xorg. Based on stuff in an Xorg mailing list, I suspect further > changes, likely to be corrective, will be in future versions of the > FreeBSD xorg-server port. > > However, for the adventurous and impatient, this is what I did to fix my > problem: > > 1. Edit > /usr/ports/x11-servers/xorg-server/work/xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c > and change from NULL to "4 5" in the following line: > > 530c530 > < s = xf86SetStrOption(pInfo->options, "ZAxisMapping", "4 5"); > --- >> s = xf86SetStrOption(pInfo->options, "ZAxisMapping", NULL); > > 2. portupgrade -Wwf xorg-server > > 3. Restart the X server with CTRL-ALT-Backspace. > > I don't really know why it works, so I recommend it only for daredevils, > unless someone wiser can say it is sound. > > Cheers, > > JohnFunny, besides upgrading from 5.4 to 6.0, I changed from nVidia to Radeon and from a bloated old mouse to a Logitech Optical USB mouse. Anyway, the video cards were easy to change. But the mouse was tricky. The generic /dev/sysmouse didn't work for me so i had to specify /dev/ums0 and "ZAxisMapping" "4 5" and the rest was history. I don't use xdm/gdm/kdm though, i have startx with kde for now. And sometimes i have to kill the moused daeomn before starting X. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -------------- next part -------------- ++++++++++++++++++++++++++++++++++ Serverele DataNet scaneaza automat toate mesajele dumneavoastra impotriva virusilor pentru a mentine un mediu cat mai curat. Retineti ca exista intotdeauna un risc pe care vi-l asumati atunci cand deschideti un mesaj e-mail. This message has been scanned automatically against viruses on DataNet servers. Please note that you allways assume a risk when you open an e-mail message.
Yann Golanski
2005-Dec-07 01:28 UTC
Adventurous fix for wheel mouse not working in FreeBSD 6.0
Quoth johnwrussell@comcast.net on Wed, Dec 07, 2005 at 07:03:19 +0000> After installing FreeBSD 6.0, I was no longer able to scroll using the > wheel on my Logitech Optical Mouse. I ran moused with the -fd flags > and confirmed that the mouse daemon was catching the z-axis events. > My xorg.conf looked OK to me:The following works fine with a Logitech UltraX optical mouse. However, I have using it in PS2 mode and not usb. Maybe the problem is there? Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5" option "Buttons" "6" EndSection I am running: ; uname -a FreeBSD hovel.york.ac.uk 6.0-RC1 FreeBSD 6.0-RC1 #0: Sun Oct 9 20:32:57 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 ; pkg_info | grep xorg xorg-clients-6.8.2_1 X client programs and related files from X.Org xorg-documents-6.8.2 Documentation of X11 protocol and libraries from X.Org xorg-fonts-100dpi-6.8.2 X.Org 100dpi bitmap fonts xorg-fonts-75dpi-6.8.2 X.Org 75dpi bitmap fonts xorg-fonts-encodings-6.8.2 X.Org font encoding files xorg-fonts-miscbitmaps-6.8.2 X.Org miscellaneous bitmap fonts xorg-fonts-truetype-6.8.2 X.Org TrueType fonts xorg-fonts-type1-6.8.2 X.Org Type1 fonts xorg-fontserver-6.8.2 X font server from X.Org xorg-libraries-6.8.2 X11 libraries and headers from X.Org xorg-manpages-6.8.2 X.Org library manual pages xorg-server-6.8.2_7 X.Org X server and related programs -- yann@kierun.org -=*=- www.kierun.org PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051207/fa6f80c0/attachment.bin