Re: Macally 2 Button adb mouse works!


Subject: Re: Macally 2 Button adb mouse works!
From: Ed Jaeger (ed.jaeger@bgcorp.com)
Date: Mon Nov 22 1999 - 14:19:17 MST


Actually, it's not a patch, there are 8 types defined in the default
kernel. The patch adds a type 9. It appears that type 5 refers to the
"Turbomouse", which means the default kernel _should_ recognize it and
use it:

from /usr/src/linux-2.2.12/drivers/mac_kbyd.c

<snip>
extern void handle_scancode(unsigned char, int);

static struct adb_ids keyboard_ids;
static struct adb_ids mouse_ids;
static struct adb_ids buttons_ids;

/* Kind of mouse */
#define ADBMOUSE_STANDARD_100 0 /* Standard 100cpi mouse (handler 1) */
#define ADBMOUSE_STANDARD_200 1 /* Standard 200cpi mouse (handler 2) */
#define ADBMOUSE_EXTENDED 2 /* Apple Extended mouse (handler 4) */
#define ADBMOUSE_TRACKBALL 3 /* TrackBall (handler 4) */
#define ADBMOUSE_TRACKPAD 4 /* Apple's PowerBook trackpad (handler
4) */
#define ADBMOUSE_TURBOMOUSE5 5 /* Turbomouse 5 (previously req.
mousehack) */
#define ADBMOUSE_MICROSPEED 6 /* Microspeed mouse (&trackball ?),
MacPoint */
#define ADBMOUSE_TRACKBALLPRO 7 /* Trackball Pro (special buttons) */
#define ADBMOUSE_MS_A3 8 /* Mouse systems A3 trackball (handler 3) */
#define ADBMOUSE_MACALLY2 9 /* MacAlly 2-button mouse */

static int adb_mouse_kinds[16];

<snip>

This is after the patchh to add the last #define (along with some other things)

When you boot linux you should get something similar to this on your
screen (it's also saved in /var/log/dmesg):

<snip>
Using unsupported 1152x870 ATY,mach64_3D_pcc at 81800b00, depth=16, pitch=2304
Console: switching to colour frame buffer device 144x54
fb0: Open Firmware frame buffer device on /bandit/ATY,mach64_3D_pc
ADB keyboard at 2, handler 1
ADB keyboard at 15, handler 1
ADB mouse at 3, handler set to 4
ADB MacAlly 2-button mouse at 3, handler set to 0x42
PowerMac Z8530 serial driver version 1.01
tty00 at 0xf3013020 (irq = 15) is a Z8530 ESCC, port = modem
tty01 at 0xf3013000 (irq = 16) is a Z8530 ESCC, port = printer
<snip>

What do you get with the Turbomouse connected?

Josh Hochman wrote:
>
> Yah, that's what it's called - Kensington Turbomouse. Do I need to recompile
> the kernel to use patch 5 instead? I don't have any kernel sources on my
> machine right now, so plz forgive my ingnorance...
>
Ed Jaeger, CFO, Bohlender Graebener Corporation
ed.jaeger@bgcorp.com
http://www.bgcorp.com

---
"You cannot take charge of the present if you are busy reliving the
setbacks of the past."

-- Newman & Berkowitz



This archive was generated by hypermail 2a24 : Fri Dec 03 1999 - 19:07:33 MST