Change keymap for an azerty USB keyboard

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Change keymap for an azerty USB keyboard

5,894件の閲覧回数
mathiasparnaude
Contributor III

Hi

I plugged an USB keyboard into the T1040RDB in order to use it standalone. I use a french (azerty) keyboard but by default, that works in qwerty.

Under Linux, I see no settings indicating the used keymap or locale.

I tried to use the command loadkeys but can't find keymaps files in the system (I looked at severa locations). So I imported some from my workstation but even if loadkeys returns successfully, I see no change when typing on the keyboard.

How can I add / change a working keymap? Is it possible to configure that once, to get the support of this azerty keyboard each time Linux is booted?

Is there an option to choose in Yocto? I checked and I already have recipes like kbd, keymap, ...

Thanks,

Mathias

0 件の賞賛
返信
2 返答(返信)

4,841件の閲覧回数
Pavel
NXP Employee
NXP Employee

Is keyboard enabled in SDK kernel menu?

See attached screenshots.

NXP SDK 1.9 contains keyboard driver. See the following file:

QorIQ-SDK-V1.9-20151210-yocto/build_t1040d4rdb/tmp/work/t1040d4rdb-fsl-linux/linux-qoriq/3.12-r0/git/drivers/hid/usbhid/usbkbd.c

Look at also the following page:

https://community.freescale.com/thread/320037


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

4,841件の閲覧回数
mathiasparnaude
Contributor III

I thank you but unfortunately, that does not change anything if I set USB_KDB. Note that this config is mutually exclusive with USB_HID (that is recommended).

Look at the help of the USB_KBD config, that says:

   Say Y here only if you are absolutely sure that you don't want
   to use the generic HID driver for your USB keyboard and prefer
   to use the keyboard in its limited Boot Protocol mode instead.

   This is almost certainly not what you want.  This is mostly
   useful for embedded applications or simple keyboards.

Anyway, I tried both settings and the keyboard is always well probed and initialized as an input device. But no key mapping is applied, and the problem is there, this is really a matter of keymaps (and/or locale).

0 件の賞賛
返信