LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10:35 AM   #1
lvm_
Senior Member
 
Registered: Jul 2020
Posts: 1,317

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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, 01:21 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,213

Rep: Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539
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, 11:43 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,200

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
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, 02:09 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 12:29 PM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,200

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:25 AM
multiple keyboards with multiple layouts pinguin33 Linux - Laptop and Netbook 2 01-08-2006 08:13 PM
multiple keyboards with multiple layouts pinguin33 Linux - Hardware 4 01-08-2006 09:30 AM
Problem changing keyboards layouts nickt72 Linux - Newbie 0 02-02-2004 09:00 AM

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

All times are GMT -5. The time now is 11:44 AM.

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
Open Source Consulting | Domain Registration