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

Re: mouse for x



On Sun, Aug 22, 2004 at 02:46:31PM +0200, Christian T. Steigies wrote:
> On Sun, Aug 22, 2004 at 02:26:46PM +0200, Wouter Verhelst wrote:
> > Better use /proc/hardware
> > 
> > wouter@ska:~$ cat /proc/hardware
> > Model:          Motorola MVME167
> > [...]
> > 
> > wouter@kiivi:~$ cat /proc/hardware
> > Model:          Macintosh Quadra 840AV
> > [...]
> 
> cat /proc/hardware 
> Model:          Amiga A2000
[...]
> > > We have Q40 kernels since 2.4.26 IIRC,
> > 
> > Oh, we do?
> > 
> > > they should run on Q40 and Q60. Roman Zippel should be able to say how
> > > /proc/hardware looks like for those machines.
> > 
> > Reading the kernel source, I think that'll always be "Q40", even on Q60.
> 
> That's what I'm using for debian-installer archdetect.

Okay.  Please comment on the following.

    m68k)
      # A good default for m68k depends on which sub-architecure this is.
      if [ -r /proc/hardware ]; then
        subarch=$(grep -w Model: | sed 's/Model:[[:space:]]+//')
        case "$subarch" in
          Amiga*)
            mouse_port_choices="/dev/amigamouse, /dev/gpmdata"
            default_port="/dev/amigamouse"
            ;;
          Atari*)
            mouse_port_choices="/dev/atarimouse, /dev/gpmdata"
            default_port="/dev/atarimouse"
            ;;
          Macintosh*)
            mouse_port_choices="/dev/adbmouse, /dev/gpmdata"
            default_port="/dev/adbmouse"
            ;;
          Motorola*) # BVME/MVME
            trace "$func(): no good defaults known for VME mouse"
                  "configuration"
            ;;
          Q40*) # Q40/Q60
            trace "$func(): no good defaults known for Q40/Q60 mouse"
                  "configuration"
            ;;
        esac

I'd appreciate knowing:

1) If the available and default choices for Amiga, Atari, and Mac are sane;
2) If anyone has anything to regarding VME or Q40/Q60 machines.

Without an answer to 2), VME and Q40 boxen will get the "architecture-neutral"
choices and defaults:

  if [ -n "$using_devfs" ]; then
    trace "$func(): devfs appears to be in use; using devfs names for mouse" \
          "port choices"
    mouse_port_choices="/dev/misc/psaux, /dev/tts/0, /dev/tts/1, /dev/tts/2, /dev/tts/3, /dev/input/mice, /dev/misc/atixl, /dev/gpmdata"
  else
    trace "$func(): devfs does not appear to be in use"
    mouse_port_choices="/dev/psaux, /dev/ttyS0, /dev/ttyS1, /dev/ttyS2, /dev/ttyS3, /dev/input/mice, /dev/atibm, /dev/sunmouse, /dev/gpmdata"
  fi

-- 
G. Branden Robinson                |    Of two competing theories or
Debian GNU/Linux                   |    explanations, all other things
branden@debian.org                 |    being equal, the simpler one is to
http://people.debian.org/~branden/ |    be preferred.      -- Occam's Razor

Attachment: signature.asc
Description: Digital signature


Reply to: