Re: mouse for x

2004-11-11 Thread Branden Robinson
On Sun, Oct 31, 2004 at 11:14:37PM +0100, Richard Zidlicky wrote:
> On Wed, Sep 22, 2004 at 01:13:25PM +0200, Geert Uytterhoeven wrote:
> 
> > > 2) If anyone has anything to regarding VME or Q40/Q60 machines.
> > 
> > Q40/Q60 has PS/2 keyboard, so I guess it has a PS/2 mouse as well. Richard?
> 
> sorry for the late reply, was away for a long while.
> 
> Q40/Q60 uses serial mouse.

Thanks for the information!  I have committed this update to the
debconf-overhaul branch (r2024).

-- 
G. Branden Robinson| There is resilient security in
Debian GNU/Linux   | openness, and brittle security in
[EMAIL PROTECTED] | secrecy.
http://people.debian.org/~branden/ | -- Bruce Schneier


signature.asc
Description: Digital signature


Re: mouse for x

2004-11-01 Thread Richard Zidlicky
On Wed, Sep 22, 2004 at 01:13:25PM +0200, Geert Uytterhoeven wrote:

> > 2) If anyone has anything to regarding VME or Q40/Q60 machines.
> 
> Q40/Q60 has PS/2 keyboard, so I guess it has a PS/2 mouse as well. Richard?

sorry for the late reply, was away for a long while.

Q40/Q60 uses serial mouse.

Ruchard



Re: mouse for x

2004-09-28 Thread Branden Robinson
On Sat, Sep 25, 2004 at 11:28:31PM -0700, Brad Boyer wrote:
> The only type of mouse on a 68k mac is ADB, and the entire ADB layer
> got converted over to use the generic input system for 2.4. The old
> adbmouse driver doesn't even exist in the tree in 2.6, but it was
> still possible to compile it in during 2.4, i think.
> 
> Because of this, if a 68k mac is running anything 2.4 or 2.6, the
> mice should show up in /dev/input/mice.

Okay.

> If it is running a 2.2 kernel, they should show up in /dev/adbmouse
> (busmouse protocol).

Okay.

> The ppc macs made the same transition a few years ago. It's actually
> an integrated code base for ADB support now.

That's good.  I think.  (Isn't it ADB regressions on mac-m68k that render
2.4 unusable on that sub-arch?)  :)

Revision 1884 in the X Strike Force XFree86 Subversion repository contains
code changes reflecting what you've told me.

Thanks for your advice!

-- 
G. Branden Robinson|If you wish to strive for peace of
Debian GNU/Linux   |soul, then believe; if you wish to
[EMAIL PROTECTED] |be a devotee of truth, then
http://people.debian.org/~branden/ |inquire. -- Friedrich Nietzsche


signature.asc
Description: Digital signature


Re: mouse for x

2004-09-26 Thread Brad Boyer
On Sat, Sep 25, 2004 at 11:14:16PM -0500, Branden Robinson wrote:
> On Wed, Sep 22, 2004 at 01:13:25PM +0200, Geert Uytterhoeven wrote:
> > Except that Mac uses the new input layer in 2.4 and later.
> 
> Even for bus mice?

The only type of mouse on a 68k mac is ADB, and the entire ADB layer
got converted over to use the generic input system for 2.4. The old
adbmouse driver doesn't even exist in the tree in 2.6, but it was
still possible to compile it in during 2.4, i think.

Because of this, if a 68k mac is running anything 2.4 or 2.6, the
mice should show up in /dev/input/mice. If it is running a 2.2
kernel, they should show up in /dev/adbmouse (busmouse protocol).

The ppc macs made the same transition a few years ago. It's actually
an integrated code base for ADB support now.

Brad Boyer
[EMAIL PROTECTED]



Re: mouse for x

2004-09-25 Thread Branden Robinson
On Wed, Sep 22, 2004 at 01:13:25PM +0200, Geert Uytterhoeven wrote:
> > 1) If the available and default choices for Amiga, Atari, and Mac are sane;
> 
> I think they are.
> 
> Except that Mac uses the new input layer in 2.4 and later.

Even for bus mice?

> This is also valid for other subarchs in 2.6.

You can review the full code in question at:

svn://necrotic.deadbeast.net/xfree86/branches/debconf-overhaul/debian/xserver-xfree86.config.in

> > 2) If anyone has anything to regarding VME or Q40/Q60 machines.
> 
> Q40/Q60 has PS/2 keyboard, so I guess it has a PS/2 mouse as well. Richard?

I could still use an answer on this point.

-- 
G. Branden Robinson|Computer security is like an onion:
Debian GNU/Linux   |the more you dig in, the more you
[EMAIL PROTECTED] |want to cry.
http://people.debian.org/~branden/ |-- Cory Altheide


signature.asc
Description: Digital signature


Re: mouse for x

2004-09-22 Thread Geert Uytterhoeven
On Wed, 22 Sep 2004, Branden Robinson wrote:
> 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
> > > 
> > > [EMAIL PROTECTED]:~$ cat /proc/hardware
> > > Model:  Motorola MVME167
> > > [...]
> > > 
> > > [EMAIL PROTECTED]:~$ 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;

I think they are.

Except that Mac uses the new input layer in 2.4 and later.
This is also valid for other subarchs in 2.6.

> 2) If anyone has anything to regarding VME or Q40/Q60 machines.

Q40/Q60 has PS/2 keyboard, so I guess it has a PS/2 mouse as well. Richard?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds



Re: mouse for x

2004-09-22 Thread Branden Robinson
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
> > 
> > [EMAIL PROTECTED]:~$ cat /proc/hardware
> > Model:  Motorola MVME167
> > [...]
> > 
> > [EMAIL PROTECTED]:~$ 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
[EMAIL PROTECTED] |being equal, the simpler one is to
http://people.debian.org/~branden/ |be preferred.  -- Occam's Razor


signature.asc
Description: Digital signature


Re: mouse for x

2004-08-22 Thread Richard Zidlicky
On Sun, Aug 22, 2004 at 02:50:33PM +0200, Wouter Verhelst wrote:
> 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:
> > > What you need to grep for is "Macintosh" for mac hardware, "Amiga" for
> > > amiga, or "Atari" for atari. VME doesn't support X AFAIK, and Debian
> > > doesn't support any of the other m68k subarchitectures.
> > 
> > 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.

yes.

Richard



Re: mouse for x

2004-08-22 Thread Stephen R Marenka
On Sun, Aug 22, 2004 at 02:50:33PM +0200, Wouter Verhelst wrote:
> 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:
> > > What you need to grep for is "Macintosh" for mac hardware, "Amiga" for
> > > amiga, or "Atari" for atari. VME doesn't support X AFAIK, and Debian
> > > doesn't support any of the other m68k subarchitectures.
> > 
> > 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.

-- 
Stephen R. Marenka If life's not fun, you're not doing it right!
<[EMAIL PROTECTED]>


signature.asc
Description: Digital signature


Re: mouse for x

2004-08-22 Thread Wouter Verhelst
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:
> > What you need to grep for is "Macintosh" for mac hardware, "Amiga" for
> > amiga, or "Atari" for atari. VME doesn't support X AFAIK, and Debian
> > doesn't support any of the other m68k subarchitectures.
> 
> 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.

-- 
 EARTH
 smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
 WATER
 -- with thanks to fortune



Re: mouse for x

2004-08-22 Thread Christian T. Steigies
On Sun, Aug 22, 2004 at 02:26:46PM +0200, Wouter Verhelst wrote:
> > 
> > Sure; someone just needs to tell me what to grep for in /proc/cpuinfo for
> > the various sub-architectures.
> 
> Better use /proc/hardware
> 
> [EMAIL PROTECTED]:~$ cat /proc/hardware
> Model:  Motorola MVME167
> [...]
> 
> [EMAIL PROTECTED]:~$ cat /proc/hardware
> Model:  Macintosh Quadra 840AV
> [...]

cat /proc/hardware 
Model:  Amiga A2000
 
> and so on. /proc/hardware is an m68k-specific file which contains
> information about the hardware you're running on. It needs to be enabled
> in the kernel (CONFIG_PROC_HARDWARE), but all Debian-provided kernels
> have that (at least all Debian-provided kernels I've seen).
> 
> What you need to grep for is "Macintosh" for mac hardware, "Amiga" for
> amiga, or "Atari" for atari. VME doesn't support X AFAIK, and Debian
> doesn't support any of the other m68k subarchitectures.

We have Q40 kernels since 2.4.26 IIRC, they should run on Q40 and Q60. Roman
Zippel should be able to say how /proc/hardware looks like for those
machines.

Christian



Re: mouse for x

2004-08-22 Thread Wouter Verhelst
On Sun, Aug 22, 2004 at 12:02:16AM -0500, Branden Robinson wrote:
> On Sat, Aug 21, 2004 at 07:22:31AM +0200, Erik C.J. Laan wrote:
> > Tony Pitman wrote:
> > >Joel,
> > >
> > >That worked. I wonder why the ADB mouse is not part of the config. Maybe 
> > >someone can fix that.
> > 
> > That is probaby because there is only 1 set of X packages for the m68k 
> > architecture because only a few files need sub-architecture specific. 
> > /dev/adbmouse is definetely Mac specific, because the ADB bus is. But 
> > Brandon Robinson is the one to know if different default config's per 
> > subarchitecture can be used, as he makes the X packages.
> 
> Sure; someone just needs to tell me what to grep for in /proc/cpuinfo for
> the various sub-architectures.

Better use /proc/hardware

[EMAIL PROTECTED]:~$ cat /proc/hardware
Model:  Motorola MVME167
[...]

[EMAIL PROTECTED]:~$ cat /proc/hardware
Model:  Macintosh Quadra 840AV
[...]

and so on. /proc/hardware is an m68k-specific file which contains
information about the hardware you're running on. It needs to be enabled
in the kernel (CONFIG_PROC_HARDWARE), but all Debian-provided kernels
have that (at least all Debian-provided kernels I've seen).

What you need to grep for is "Macintosh" for mac hardware, "Amiga" for
amiga, or "Atari" for atari. VME doesn't support X AFAIK, and Debian
doesn't support any of the other m68k subarchitectures.

-- 
 EARTH
 smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
 WATER
 -- with thanks to fortune


signature.asc
Description: Digital signature


Re: mouse for x

2004-08-22 Thread Branden Robinson
On Sat, Aug 21, 2004 at 07:22:31AM +0200, Erik C.J. Laan wrote:
> Tony Pitman wrote:
> >Joel,
> >
> >That worked. I wonder why the ADB mouse is not part of the config. Maybe 
> >someone can fix that.
> 
> That is probaby because there is only 1 set of X packages for the m68k 
> architecture because only a few files need sub-architecture specific. 
> /dev/adbmouse is definetely Mac specific, because the ADB bus is. But 
> Brandon Robinson is the one to know if different default config's per 
> subarchitecture can be used, as he makes the X packages.

Sure; someone just needs to tell me what to grep for in /proc/cpuinfo for
the various sub-architectures.

-- 
G. Branden Robinson| "Religion is nonsense."
Debian GNU/Linux   | "It's also a gold mine --
[EMAIL PROTECTED] | if you know where to dig."
http://people.debian.org/~branden/ | -- _Shine_


signature.asc
Description: Digital signature