Detecting keyboard layout

Arc Riley arcriley at gmail.com
Fri Nov 30 14:01:09 EST 2007


If USB, you could query the USB ID or check which type via HID parameters.

PS/2, I don't think you can.

On Nov 30, 2007 1:43 PM, Michael ODonnell <michael.odonnell at comcast.net>
wrote:

>
> Anybody know if it's possible to query a keyboard directly to learn its
> layout?  I believe it isn't, but a cow-orker asked because he wants to
> diddle the X modmap in various internationalization-dependent (i18n !)
> ways based on which type of keyboard is attached, without consulting a
> config file and without asking the user.
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20071130/17ec0797/attachment.html 


More information about the gnhlug-discuss mailing list