setup-keymap wrong greek (gr) keymap
After installing alpine with
setup-alpine or setting up keymap during post-install with
setup-keymap and choosing gr keymap, I'm unable to login because all I can type is Greek. There is no way to switch to English.
Looking at the setup-keymap source I see it installs
kbd-bkeymaps which are keymaps generated with
ckbcomp "$layout" "$variant" | gzip > "$pkgdir$_xmapdir"/"$layout"-"$variant".map.gz || exit 1
The way I managed to get a working gr keymap was to install
kbd-legacy and then
This way I can type in english, switch to greek with alt+shift and accents work.
I'm also trying to generate a valid binary keymap. This is what I tried so far:
foo:~/keymaps# kbd_mode The keyboard is in Unicode (UTF-8) mode foo:~/keymaps# setfont ter-712n foo:~/keymaps# loadkeys /usr/share/keymaps/legacy/i386/qwerty/gr.map.gz foo:~/keymaps# # can type in greek, accents work and can switch to en/gr with alt+shift foo:~/keymaps# # τεστ ά έ ό ή foo:~/keymaps# dumpkmap > gr.bmap foo:~/keymaps# loadkeys -c us # clear compose table from kernel before trying the new bmap foo:~/keymaps# loadkmap < gr.bmap foo:~/keymaps# # can type in english but I get caps lock WHEN I TRY TO ALT+SHIFT
If I use loadkeys to generate the binary keymap, I can switch to greek with alt+shift but accents don't seem to work
foo:~/keymaps# loadkeys -ub /usr/share/keymaps/i386/qwerty/gr.map.gz>gr.bmap foo:~/keymaps# loadkeys -c us foo:~/keymaps# loadkmap < gr.bmap