[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The quest for rodent power



Harry Putnam wrote:
Running woody (testing)

I've been ignoring this issue and working on other things but I really
miss having my little rodent in text mode.

Its a logitec 3 button ps2, critter that works in X just fine.

I can't remember how to tell with no doubt where the mouse is
connected. At which device.  I remember saying /dev/psaux during install
but that was just a guess.

Boot messages indicate gpm services are being started. But I have no
functioning mouse in text mode.

A grep of ps waux shows"
ps waux|grep 'gpm'  turns up nothing

If gpm is starting, it should show up via ps. However, I remember some little bug in gpm a few weeks back in sid that I had to start gpm twice in order for it to start.


The devices directory itself shows
ls -l /dev/ |grep 'mouse\|psaux\|gpm'
prw-r--r--    1 root  root       0 Mar  1 15:26 gpmdata
lrwxrwxrwx    1 root  root       7 Feb 28 21:41 mouse -> gpmdata
crw-------    1 root  root 10,   1 Nov  4 14:52 psaux
crw-rw----    1 root  root 10,  32 Nov  4 14:52 usbmouse

From posts here, I got the idea that the XF86Config mouse section is
related to text mode mouse settings in some way.  That section of mine
looks like this:


Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

How can I tell beyond doubt which device the mouse is on.  And get this
thing configured and working.

I've never figured out weather X uses the "Configured Mouse" or the "Generic Mouse"; if I have problems I typically just comment out one section, forcing X to use the other, and make sure that section is correct.

Here's the general idea:

gpm controls the text-based mouse.
XF86Config-4 controls the mouse in X.
You can't have both apps watching the same mouse port, because one will grab the mouse data before the other one can, resulting in erratic mouse behaviour.

The way to get around this is to tell gpm to watch the mouse port, then to repeat this data, and tell X to read the repeated data.

To configure gpm, run "gpmconfig"; tell it to use the RAW repeat type (which repeats the raw data); then edit XF86Config-4 to use /dev/gpmdata instead of /dev/psaux (you could also use /dev/mouse since it's a symlink to /dev/gpmdata according to your info above).

Then exit X, start gpm (make sure it's running via ps), then restart X, and you should be good to go.

Kent







Reply to: