[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/X11/Xmodmap re-revisited



On Thu, 2 Mar 2000, Benjamin Herrenschmidt wrote:
> On Thu, Mar 2, 2000, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >> I'll see with the maintainer if this can be changed to simply use PC
> >> keycodes all the time on all archs _except_ when we are running on a
> >> PowerMac (and this will be checked at runtime and not compile time).
> >
> >No!!! Been there, done that (for Amiga keyboards). Keycode conversion is
> evil.
> >I can dig up this 1995-discussion on linux-m68k if you're interested.
> 
> The keycode conversion is already there and too many things rely on macs
> having ADB keycodes already.
> 
> Also, the current USB driver is bogus because it simply won't compile if
> you are not on a i386 or you don't have the CONFIG_MAC_KEYBOARD defined.
> The ADB keycode conversion is currently always done when it's defined.
> 
> So we need to have this fixed in a way or another. My idea is basically
> to extend the mecanism used for x86 to all archs instead of just failing
> compile, and leave the exceptional conversion to ADB keycodes for
> powermacs, but instead of making it a compile time option, make it a
> _runtime_ option so that the common CHRP/PREP/PMAC kernel won't try to do
> ADB keycodes on non-pmac machines.

So what are you gonna do on my box when I install a PCI USB adapter? Then I
can have PS/2, ADB and USB keyboards.

If you use XF68_FBDev with XKB disabled, it will ask the kernel for the mapping
keycode/keysym, and it'll work automagically with whatever type of keyboard you
have. So user space programs do not have to know about a specific keycode
mapping.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


Reply to: