Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Reading keyboard files with kedit causes an error on some types of files but not others, why?
Ref. No. QNX.000009895
Category(ies) Development, Configuration
Issue We are trying to use kedit to change the mapping of our keyboard, but it seems to be unable to read some .kbd files. Specifically, the en_US_101.kbd in /etc/config/kbd/. It replies with:

Invalid header in file /etc/config/kbd/en_US_101.kbd sig='KBD' nwords=1258
sig must start with 'KBD=', nwords must be 480

However, kbcvt is able to read this file correctly. On the other hand, the files that kedit is able to read are not readable by kbcvt, which says something like ./mkkbd.kbd: Bad file type

Is this going to be fixed anytime soon?





Solution This is not broken. Kedit is only for text-mode keboard files. Photon keyboard files are a completely different thing - they are written as text files (usually with the .kdef extension) and then compiled into the files shipped with Photon that are in /qnx4/photon/keyboard. You can also uncompile a .kbd file into the .kdef format using the kbcvt program. There are some more details in the 'Unicode Multiligual Support' section of the Photon Installation and Configuration Guide.