You are not logged in.

#1 2018-03-08 02:10:18

johnfocker
Member
Registered: 2016-04-24
Posts: 6

Missing AltGr key on Japanese keyboard

I recently got a Japanese laptop with which I use a different layout (fr-bepo) than the original.

Japanese keyboards don't have the AltGr key but instead a Henkan_Mode key which is also keycode 100.

I don't understand why the key still produces Henkan_Mode as the fr-bepo layout maps keycode 100 to AltGr? Shouldn't it be overridden?

What's the clean way to enable AltGr globally, in the console as well as on graphical servers?

Offline

#2 2018-03-08 13:45:10

seth
Member
Registered: 2012-09-03
Posts: 8,242

Re: Missing AltGr key on Japanese keyboard

setxkbmap -print -query
xev -event keyboard # and press the AltGr key - you're btw. probably looking for the ISO_Level3_Shift function

Offline

#3 2018-03-12 23:11:39

johnfocker
Member
Registered: 2016-04-24
Posts: 6

Re: Missing AltGr key on Japanese keyboard

Thank you, yes AltGr is indeed keysym ISO_Level3_Shift.

I'm actually looking for a way to make it usable in console during boot and under wayland, not only in xorg.

I need AltGr in console to be able to print special characters to use strong passwords with dm-crypt.

Offline

#4 2018-03-13 08:10:50

seth
Member
Registered: 2012-09-03
Posts: 8,242

Re: Missing AltGr key on Japanese keyboard

For console (and hopefully dm-crypt, but not grub; don't forget to add the keymap hook), you'll have to derive a keymap in /usr/share/kbd/keymaps/ and use that.
Wayland should™ use xkb maps as well.

Offline

#5 2018-03-22 12:15:05

johnfocker
Member
Registered: 2016-04-24
Posts: 6

Re: Missing AltGr key on Japanese keyboard

Thank you very much but I actually tried this already by following instructions here:

https://wiki.archlinux.org/index.php/Ex … in_console

and by adding a line "keycode  100 = AltGr" to the copied keymap, then used loadkeys to load it in console but key #100 still doesn't produce AltGr.

Maybe the right way to treat the Japanese keyboard as a western one is to make a patch like this one? https://wiki.archlinux.org/index.php/Ap … _keyboards

Last edited by johnfocker (2018-03-22 12:21:19)

Offline

Board footer

Powered by FluxBB