Re: [slackware-alphadevel] Bug report (and fix) - gpm

From: Chris Lumens (chris@slackware.com)
Date: Thu Nov 30 2000 - 14:59:44 PST


> I got an error during boot about the -t option missing an argument. When
> I looked in /etc/rc.d/rc.gpm I saw that this was indeed the case. I also
> took a look at the /dev/mouse link, and it's symlinked to /dev/cua0
>
> lrwxrwxrwx 1 root root 4 Nov 30
> 01:10 /dev/mouse -> cua0
>
> that seems a bit strange to me all the Alphas I've come across have used
> ps/2 mice, never serial mice. So wouldn't it be a more logical default to
> have /dev/mouse symlinked to /dev/psaux ?
> That's what I changed it to on my box.

Yes, that does seem strange. It's actually a bug in the devs package
install script. I'll fix that right up.

> The missing parameter for -t is the mouse type (ps2), and after adding
> that (and fixing the symlink) then rc.gpm works nicely. See below for
> patch to rc.gpm
>
>
> --- rc.gpm~ Thu Nov 30 19:05:19 2000
> +++ rc.gpm Fri Dec 1 00:41:31 2000
> @@ -1,6 +1,6 @@
> # Running gpm
> echo "Running gpm..."
> -gpm -m /dev/mouse -t
> +gpm -m /dev/mouse -t ps2
> # There is another way to run GPM, where it acts as a repeater
> outputting a
> # virtual MouseSystems mouse on /dev/gpmdata. This is useful for
> feeding
> # gpm's data to X, especially if you've got a busmouse (in that
> situation X

There's actually a better fix than that. We don't include an rc.gpm by
default in Slackware. If one is included in a package, that's a bug.
rc.gpm is generated for you once you run mouseconfig. It will ask you for
the type of mouse, write out rc.gpm, and set the /dev/mouse symlink
appropriately.

So the proper fix is to make sure that rc.gpm does not exist in any
package, and to fix the default symlink in the devs package.

-- 
Chris Lumens - chris@slackware.com - KG6CIH
@n=(-42,-85,-83,-19,65,2,-10,-10,-15,-3,2,-10,73,-4,8,-4,2,79,8,17,15,7,14,2);
print map{chr(-$n[$i++]+ord)} sort(split(//,'place random string here')),"\n";



This archive was generated by hypermail 2b30 : Fri May 09 2003 - 10:00:02 PDT