LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 08-14-2021, 09:35 AM   #1
lvm_
Senior Member
 
Registered: Jul 2020
Posts: 1,880

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
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?
 
Old 08-14-2021, 12:21 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS under protest!
Posts: 18,364

Rep: Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813Reputation: 2813
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.
 
Old 08-15-2021, 10:43 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, AntiX
Posts: 6,371

Rep: Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406
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.
 
Old 08-15-2021, 01:09 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,871
Blog Entries: 12

Rep: Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058Reputation: 6058
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
 
Old 08-16-2021, 11:29 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, AntiX
Posts: 6,371

Rep: Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406Reputation: 2406
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
Code:
lsusb -v
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg multiple keyboards and layouts deadeyes Linux - General 2 10-01-2007 01:25 AM
multiple keyboards with multiple layouts pinguin33 Linux - Laptop and Netbook 2 01-08-2006 07:13 PM
multiple keyboards with multiple layouts pinguin33 Linux - Hardware 4 01-08-2006 08:30 AM
Problem changing keyboards layouts nickt72 Linux - Newbie 0 02-02-2004 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:10 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions