Querying xkb for the keyboard model

Paulo Cesar Pereira de Andrade pcpa at mandriva.com.br
Mon Jun 2 09:24:44 PDT 2008


Vinay Reddy wrote:
> Hi,
> I was wondering if there's a way to query xkb about the keyboard model
> of the core keyboard. I took a quick look at the xkb headers (XKB*.h)
> but couldn't find anything.
>
> I'd appreciate any help or pointers.

  You can look at xorgcfg sources at 
xserver/hw/xfree86/utils/xorgcfg/keyboard-cfg.c
but it may not be that easy because that code already parsed xorg.conf
and is not very small.
  If it is for a script, you can use something like

 setxkbmap -print -v -v


Paulo




More information about the xorg mailing list