Re: Mouse configuration with 2.4 kernel


Subject: Re: Mouse configuration with 2.4 kernel
From: William K. Gibson (firstdesk@columbus.rr.com)
Date: Fri May 18 2001 - 07:27:37 MDT


on 5/17/01 10:43 PM, David C. Hacker, DVM at dh55145@alltel.net wrote:

> I switched to kernel version 2.4 to get sound and usb printing but everytime
> I try to start X it says mouse device not found. How can I fix this
> problem. I looked in XF86Config and the mouse is set to /dev/mouse. Any
> help would be appreciated. Thanks
> --
> David C. Hacker, DVM

David, here is an explanation of what I did to get my usb mouse working. I
have taken it from a previous post so it may not be complete in terms of the
context. As per usual, what you have to do is obscure and involves multiple
point of change and esoteric knowledge. Let me know if this helps...

I discovered through some digging that the 2.4.2 kernel will
not use /dev/mouse anymore, but now uses /dev/input/mice This is better
because it allows usage of both adb and usb mice from the same place
("mieces to pieces" <- obligatory obscure cartoon quote).

This I found also at
http://home.munich.netsurf.de/Franz.Sirl/inputppc.html

---begin quote---
Mouse changes:
Benjamin's current kernels are preconfigured to be mostly compatible, just
/dev/adbmouse will be nonfunctional by default. All ADB mice and mouse-like
devices end up as /dev/input/mouseX now and will be mixed onto
/dev/input/mice. If you update your dev package to dev-2.7.18-3b.ppc.rpm or
better, all you have to do is to configure gpm, XFree86 and MOL to use
/dev/mouse with protocol IMPS/2. Xpmac with USB mouse support (eg. rev10) is
able to autodetect this and works like before.

All mouse events end up on /dev/mouse with a common protocol (IMPS/2),
including a new artificial mouse button emulation device. This emulation
device lets you use mouse button emulation (see below) even with USB mice
now :-).

---end quote---

Here's another fun one about using the mouse:

from
http://www.imaclinux.net/php/imaclinux_faq.php3?single=159

---begin quote---
After that you have to point GPM (the textmode mouse cut&paste tool) and
XFree to this device to use it - GPM should be called like:
gpm -t ps2 -m /dev/input/mice

And in X:
Section "Pointer"
Protocol "ImPS/2"
Device "/dev/input/mice"
ZAxisMapping 4 5
EndSection

When you do all of the above, you can use your USB mouse and keyboard

---end quote---

After discovering this, I had to edit /etc/rc.d/init.d/gpm to make the call
given above. Oops, but wait, gpm uses MOUSECONFIG variable which gets its
contents from the /etc/sysconfig/mouse file. Whose contents I had to change
to ps2 instead of Busmouse (yes ps2 instead of ImPS/2- the information for
which I found on some other obscure site that I cannot remember).

The XF86Config file changes worked too. OK, the mouse is working in the
console and in X!

--William K. Gibson
1stDesk Systems
firstdesk@columbus.rr.com



This archive was generated by hypermail 2a24 : Fri May 18 2001 - 06:32:16 MDT