You are not logged in.

#1 2024-01-08 14:40:55

ThinkPad
Member
Registered: 2019-01-29
Posts: 125

How to prevent keyboard layout modifications from affecting external k

Using

For the console:

/etc/vconsole.conf
----
KEYMAP=dvorak

For X Session:

.xinitrc
----
setxkbmap -layout us -variant dvorak &
Problem

For the console, it applies the dvorak layout to a firmware dvorak
keyboard, messing up the input.

When starting the X Session, I have to re-plug the keyboard in order for
it to function properly.

Re-plugging in console has no effect.

Question

How do I prevent these configurations from affecting the external
keyboard?

OR

How do I restrict these configurations to only affecting the internal
laptop keyboard?

Offline

#2 2024-01-08 14:56:49

seth
Member
Registered: 2012-09-03
Posts: 58,700

Re: How to prevent keyboard layout modifications from affecting external k

You rather don't w/ setxkbmap (and that's a clumsy way to persistently configure the keyboard anyway) and I doubt that the console can discrimintate outputs this way.

https://wiki.archlinux.org/title/Xorg/K … tion_files - you can match product and vendor to limit the impact, https://man.archlinux.org/man/extra/xor … SS_SECTION

Online

#3 2024-01-08 15:20:19

ThinkPad
Member
Registered: 2019-01-29
Posts: 125

Re: How to prevent keyboard layout modifications from affecting external k

Thanks for the answer. I'm having trouble understanding the first part. Is that a typo? "You rather don't w/?"

Offline

#4 2024-01-08 15:21:08

seth
Member
Registered: 2012-09-03
Posts: 58,700

Re: How to prevent keyboard layout modifications from affecting external k

w/: "with"
w/o: "without"

Online

#5 2024-01-08 15:36:49

ThinkPad
Member
Registered: 2019-01-29
Posts: 125

Re: How to prevent keyboard layout modifications from affecting external k

That was not the part tripping me up. It was the grammar. "You rather don't with setxkbdmap... and I doubt." I'll read this as "You can't with setxkbdmap."

You're suggestion promises to tighten up my X Session persistent configuration, but the console is where I have no workaround. Even with these settings in an X Session, I can replug the keyboard and type properly. From the console, my only recourse is to resort to the built-in laptop keyboard.

Offline

#6 2024-01-09 12:10:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: How to prevent keyboard layout modifications from affecting external k

for clarity :

Do the laptop keyboard and your external keyboard use the same layout ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-01-09 13:35:42

seth
Member
Registered: 2012-09-03
Posts: 58,700

Re: How to prevent keyboard layout modifications from affecting external k

I'm pretty sure the OP has two keyboards they want to use w/ a dvorak layout, but one has a regular qwerty layout, the other one has the dvorak layout in hardware (or firmware, but that's an irrelevant detail)

Online

Board footer

Powered by FluxBB