New input layer and ADB (Was Re: CONFIG_PPC != Mac)

Martin Costabel costabel at wanadoo.fr
Tue Aug 1 01:23:52 EST 2000


Franz,

Franz Sirl wrote:
>
> At 15:11 31.07.00, Martin Costabel wrote:
[]
> >After booting, some keys don't work: The "a" key that was mentioned
> >before (it is the "q" here on my French keyboard), but also all the
> >function keys and most keypad keys. Some of them don't produce keycodes,
> >some of them weird ones.
>
> I fixed that in my tree too, just got the condition in pmac_setup.c wrong,
> it should be if (!keyboard_sends_linux_keycodes) ..., just a typo, will be
> fixed later today.

Yes, this works, the keys are now working correctly from the beginning.
Thanks!

Sometimes after a console switch, I end up in capslock mode. Switching
capslock on then gives lowercase letters (except the letter "L"). After
a further console switch, things return to normal.

> >The main problem so far is that I cannot get mouse button emulation to
> >work. Has anyone tested this on an ADB keyboard/mouse? Or does it only
> >work if one goes over completely to the "linux" keycodes? I don't want
> >to do this yet, because it will make my system unusable with any other
> >kernel (or maybe unusable at all). Last time I tried, it took me several
> >hours to get a usable system back.
>
> Mouse button emulation works for me and it works in both keycode modes, in
> 2.4 the adb_buttons kernel arg is gone though.

After another hour of trying, I still have no mouse button emulation.
Neither in the console with gpm nor in X (Free86-4.0.1 from your
devel.linuxppc.org RPMs, with OPTION "XkbModel" "macintosh_old"). What's
the trick?

Here are my relevant kernel config options. Is there something missing?

CONFIG_INPUT_ADBHID=y
CONFIG_MAC_ADBKEYCODES=y
CONFIG_INPUT=y
# CONFIG_INPUT_IFORCE_USB is not set
CONFIG_INPUT_ADBHID=y
CONFIG_INPUT_KEYBDEV=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y

Remark: Since I am using devfs, I had to put a line
LOOKUP    mouse    CFUNCTION GLOBAL symlink input/mice mouse
into /etc/devfsd. Otherwise no /dev/mouse got created.

Final question: What is /proc/sys/dev/mac_hid/keyboard_lock_keycodes
for?

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list