Patch for keyboard on Mac-clones for linuxppc
From: <hidden>
Date: 2000-03-14 22:38:14
Hi all. I've been using for some time a patch to fix the behavior of the capslock key on Powercomputing keyboards. It even allows capslock to be remapped to control with xmodmap. The trick is to have a single piece of code that doesn't stomp on Apple keyboards. Based on conversations with Ben Herrenschmidt, this patch tests register 2 of adb keyboards during bootup. I don't have any apple keyboards to test with myself, so could some kind souls apply this patch and see if their capslock key behaves well? The patch is against stock 2.2.14, but should probably appply to other kernels as well. In particular, the Apple keyboards that Ben has return 0xff in the second byte of the reply at runtime. But I don't know about during boot - PCC keyboards return a different value during boot than during runtime. So, please try starting with capslock pressed as well as with it unpressed. If the capslock doesn't behave, can you send me the reg 2 data which should have been saved into the messages log file? Thanks, Jerry Quinn jlquinn@us.ibm.com ---------------------- Forwarded by Jerome L Quinn/Watson/IBM on 03/14/2000 05:35 PM --------------------------- Jerry Quinn [off-list ref] on 03/13/2000 06:59:36 PM To: Jerome L Quinn/Watson/IBM@IBMUS cc: Subject: Re: Patch for keyboard on Mac-clones for linuxppc
Date: Fri, 3 Mar 2000 00:28:42 -0500 To: BenH <redacted> From: Jerry Quinn <redacted> Subject: Re: Patch for keyboard on Mac-clones for linuxppc Cc: Bcc: X-Attachments: :System/Apps backup:2:pcccaps.patch1.txt: Could you try out this patch against vanilla 2.2.14? In particular, I'd like to see if it identifies Apple keyboards correctly as such. I'm reading reg2 of the keyboard during initialization, when it's apparently safer. On my PCC keyboards, during boot, reg2 returns FFC3 and FFFB respectively. If Apple keyboards return FFFF during boot, then the rest of the code will do the right thing. Jerry jlquinn@us.ibm.com
(See attached file: pcccaps.patch1.txt)
Attachments
- pcccaps.patch1.txt [application/octet-stream] 6888 bytes · preview