Bugzilla – Bug 1185192
Generated keymaps are incorrect and cannot be loaded with loadkeys
Last modified: 2024-02-19 13:10:09 UTC
Created attachment 848668 [details] Full list of tested keyboard maps returning I think this relates to the `kbd` package, not sure this is the best place / component to report. Please advise to where else to address this issue if it is not the right place. ---- (Some) Keyboard layout map files generated automatically from xkeyboard-config files contain invalid commands or values. When calling `loadkeys` on such a file, a number of unknown keysyms are reported followed by the message `lk_add_key called with bad keycode -1`. Alternately, some layouts fail with "Invalid argument" repeated a number of times. In both cases, loadkeys exits with return value 1, and the keyboard layout is not changed. Here is a list of symbols that cause "unknown keysym" errors, across the 200 keyboard files that fail loading (list added as an attachment). ``` box_drawings_light_down_and_right box_drawings_light_up_and_right bullet cyrillic_capital_hard_sign cyrillic_small_hard_sign delta Delta ellipsis emdash endash ezh EZH gcaron Gcaron greater_than_or_equal_to left_double_quotation_mark leftquote Mu number_acronym omega Omega permille quotedblbase right_double_quotation_mark rightquote single_right_pointing_angle_quotation_mark theta Theta trademark ``` As a workaround, I replace the keymap file with the output of `dumpkeys` after loading the correct keyboard layout through e.g. `setxkbmap`. That’s a fix that needs to be done again at every kbd update. Currently running kbd-2.4.0-1.3.x86_64 on Tumbleweed with version_id 20210408. uname -a returns: Linux 5.11.11-1-default #1 SMP Tue Mar 30 17:57:52 UTC 2021 (dbc4a02) x86_64 x86_64 x86_64 GNU/Linux
The workaround will not work. Many keymaps will not work then: :~ # dumpkeys | loadkeys - unable to load compose definitions because some of them are too large It would be good to improve the converter and exclude unknown symbols.