My laptop has a US built-in keyboard and I am also connecting a good old Cherry keyboard with German key layout via a PS/2-to-USB adapter. Is there a way to install different keymaps used in the Linux text console for the different devices simultaneously?
-
It's been a while I've done this, but back in the day, I had 2 keyboards, french, and english, never got them to work together like you'd like but, when one is plugged in, I'd replace it by the other. bbs.archlinux.org/viewtopic.php?id=84163 wiki.archlinux.org/index.php/xmodmap– kmassadaApr 11, 2014 at 18:06
-
Which text consoles? There are like 5!! Console, TTY, Terminal, Shell, etc. superuser.com/q/144666/235569– BraiamApr 16, 2014 at 1:19
-
As far as I can tell, the keyboard layout is set using loadkeys, and is associated with the virtual console, rather than the keyboards. Otherwise you would use udev to make any changes when the USB device is detected as being inserted / added as a device. I hate to say it, but I don't see a way to do i– SlartibartfastApr 16, 2014 at 3:21
Add a comment
|
1 Answer
You have to find the ID device:
xinput -list | grep -i key
and using such ID set the layout:
setxkbmap -device ID -layout layout
-
Right, that's for X11. I am looking for the corresponding procedure for the text-console. May 25, 2012 at 20:39
-
1