* Patrice LaFlamme <[EMAIL PROTECTED]>, 20010327 22:36 +0100: > On Mon, Feb 12, 2001 at 02:57:00AM +0100 or thereabouts, Andre Berger wrote: > > I've updated my potato system (PB3400) to kernel 2.2.19pre17-pmac from > > proposed updates, which uses the new input layer model. I've changed > > mouse type and device successfully, the mouse works in X and the > > consoles, with gpm. The only thing not solved: Mouse button emulation. I > > used to boot with "adb_buttons=76,127" (IIRC) option in BootX, which had > > mapped my 2nd and 3rd mouse button to spare keys. Keys have changed > > according to xev, this wouldn't be a problem. But is there a similar > > option for the new input layer like adb_buttons? The > > kernel-parameters.txt document seemed not helpful. > > Hi! > > Check in /proc/sys/kernel/mac_hid orsomething (not home now, can't check) > You ca activate mouse_button_emulation and determine which keycode to use > for button 2 and 3.. Keycodes are defined in include/linux/input.h I think. > > Note however that on my pb3400 I've been very unlucky with kernel-powered > button > emulation (as opposed to Xpmac-powered button emulation...) > > Cheers, > Patrix.
This is what I have now and what doesn't work: #/etc/sysctl.conf dev.mac_hid.mouse_button2_keycode = 76 dev.mac_hid.mouse_button3_keycode = 127 dev.mac_hid.mouse_button_emulation = 1 (and rebooted; /proc/sys/dev/mac_hid/mouse* are set to these values) Those keycodes are mapped to my keypad-enter (btn2) and the power button (btn3) on my keyboard, on the consoles. On X, the same keys are mapped to 84/135 (I re-checked with showkey and xev). This setup worked with adb_buttons=76,127 with my old kernel and gpm. I have a modem connection and don't want to d'l the kernel source. If I have to, I'd just use ADB... But what's wrong with my setup? Andre Berger [EMAIL PROTECTED]