Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-14-2021, 10:35 AM
|
#1
|
Senior Member
Registered: Jul 2020
Posts: 1,317
|
different layouts for different keyboards
I have two physical keyboards connected. Is it possible to set up different layouts for each of them at the same time?
|
|
|
08-14-2021, 01:21 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,213
|
Don't think so, without special software. You can set up fairly exactly what is seen, which may be useful.
I think there's some gimmicks for Chinese/Japanese because of the number of characters involved.
|
|
|
08-15-2021, 11:43 AM
|
#3
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,200
|
Are both keyboards even recognised? When Linux starts, it checks the ports until it finds a keyboard and I can't see why it should carry on looking.
If both keyboards are working, then the solution is to install two drivers using the desktop and to switch to the one you want using the keyboard tool on the panel. Then just use the physical keyboard which matches your selection.
|
|
|
08-15-2021, 02:09 PM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
If you use Xorg:
Just like with Dual screens, Xorg uses device identifiers for keyboards. Maybe it's possible to have 2 separate indentifiers for two keyboards, then this should be easy:
Code:
$> cat /etc/X11/xorg.conf.d/01-keyboard-layout.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
EndSection
# wiki.archlinux.org/index.php/Xorg/Keyboard_configuration#Using_X_configuration_files
|
|
|
08-16-2021, 12:29 PM
|
#5
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,200
|
As ever, Ondoho is on course! You can do it with xorg.conf if you have two separate device entries. In each put the name of the keyboad as its identifier and add a line like
Code:
MatchUSBID "05ac:0236"
You can find the correct ID with the command
|
|
|
All times are GMT -5. The time now is 11:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|