Date: Fri, 19 Jul 2002 19:38:03 +0200 From: Lawrence Mayer <lawmay@ki.se> To: freebsd-questions@FreeBSD.org Subject: moused(8) and X won't cooperate! Message-ID: <20020719193803.23b8f1e2.lawmay@ki.se>
next in thread | raw e-mail | index | archive | help
Hi, Can anyone help me get moused(8) to cooperate with X? I use XFree86-Server-4.2.0_3 on FreeBSD-4.6R. I have a Logitech 3-button ps/2 mouse connected to (the ps/2 mouse port of) an ancient Pentium-S 133 MHz box with 64 MB RAM and an equally ancient S3 Trio64+ 86C765 video card with 1 MB RAM. In order to get my mouse to work in text mode, I have moused(8) running protocol ps/2 and port /dev/psm0. In order to get my mouse to work in X with moused(8) running in the background, I have the following section in my X configuration file /etc/X11/XF86Config: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "SysMouse" Option "Device" "/dev/sysmouse" EndSection With the above setup, my mouse buttons work fine in text mode but very poorly in X. In X, my mouse buttons either are very sluggish or don't work at all! I get the exact same problem using KDE or my usual XFCE. So the problem is not specific to my window manager. The only way I have found to get my mouse buttons to work properly in X is to kill moused(8) and let X access my mouse directly by changing the above section of /etc/X11/XF86Config to the following: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "PS/2" Option "Device" "/dev/psm0" EndSection With this setup, my mouse buttons work just fine in X. But at the cost of killing moused(8)! When I switch from X to virtual console n using Ctrl+Alt+Fn, I can't use my mouse (on the virtual console running text mode), since moused(8) isn't running. With this setup, the only way I can use my mouse in text mode is by killing X and starting up moused(8) manually with: # moused -p /dev/psm0 -t ps/2 # vidcontrol -m on In other words, I can't have moused(8) and X running simultaneously, which is a frustrating state of affairs. There is the following note in the FreeBSD-4.6R errata file: http://www.se.freebsd.org/releases/4.6R/errata.html "Several last-minute patches were made to the x11-servers/XFree86-4-Server package. These allow the various server configuration programs to give better support for the sysmouse device supported by moused(8). The binary packages on the CDROMs and the FTP sites incoporate this patch and bear the version number 4.2.0_3. However, the ports collection included in the distribution does not contain this patch." I installed the XFree86-Server-4.2.0_3 precompiled package from CD. So, according to the above note, I should have gotten the patched version. Why won't moused(8) and X cooperate? Am I experiencing a bug in the abovementioned patch, or am I doing something wrong? If the former, should I send in a bug report with send-pr(1)? Is there a workaround whereby I can use two different ports (say psm0 and psm1: is there such an animal?) to access the same ps/2 mouse connected to the same ps/2 mouse port? That way, I could have X access my mouse directly via psm1 and keep moused(8) running on psm0. Please cc. any replies to the email address below. Friendly Greetings, Lawrence Mayer <lawmay@ki.se> Umeå, Sweden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020719193803.23b8f1e2.lawmay>