Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] setxkbmap breaks keyboard layout

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
kent_dorfman766
Posts: 535
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 57 times
Been thanked: 70 times

[Solved] setxkbmap breaks keyboard layout

#1 Post by kent_dorfman766 »

I like/need the old <CTRL><ALT><BACKSPACE> hotkey to exit X11. The modern way to accomplish this is to do

setxkbmap -option "terminate:ctrl_alt_bksp"

but executing such throws away my pc105/us keyboard layout. I tried

setxkbmap -model "pc105" -layout "us" -option "terminate:ctrl_alt_bksp"

but no joy. Any thoughts or clues on how to use setxkbmap to set the X11 escape function, while preserving the existing default map and layout?

after either of the above I end up with a dumb qwerty keybaord where the extended keys don't function correctly, and the numeric keypad follows the old convention where numlock is off and they are processed as arrows instead of numbers.
Last edited by kent_dorfman766 on 2023-06-11 19:25, edited 1 time in total.

Random_Troll
Posts: 444
Joined: 2023-02-07 13:35
Been thanked: 105 times

Re: [Software] setxkbmap breaks keyboard layout

#2 Post by Random_Troll »

Try

Code: Select all

# dpkg-reconfigure keyboard-configuration
Then select "Yes" when it asks.
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.

User avatar
kent_dorfman766
Posts: 535
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 57 times
Been thanked: 70 times

Re: [Software] setxkbmap breaks keyboard layout

#3 Post by kent_dorfman766 »

@Random_Troll

OK. Thanks. I see why you suggested that. I see that it modifies /etc/default/keyboard.

Random_Troll
Posts: 444
Joined: 2023-02-07 13:35
Been thanked: 105 times

Re: [Software] setxkbmap breaks keyboard layout

#4 Post by Random_Troll »

Please edit the thread title and prepend [SOLVED] to help others who might encounter this problem. Thanks.
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.

User avatar
kent_dorfman766
Posts: 535
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 57 times
Been thanked: 70 times

Re: [Software] setxkbmap breaks keyboard layout

#5 Post by kent_dorfman766 »

Random_Troll wrote: 2023-06-11 10:42 Please edit the thread title and prepend [SOLVED] to help others who might encounter this problem. Thanks.
I'm aware of the policy...maybe gimme a day or two to test it first?

it's weird. setxkbmap is specific to X11, but the default keyboard setting has hooks into setupcon and loadkeys, which are essentially boot time configurations. a cold restart "seems" to indicate it is working but need to do some additional testing.

User avatar
kent_dorfman766
Posts: 535
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 57 times
Been thanked: 70 times

Re: [Software] setxkbmap breaks keyboard layout

#6 Post by kent_dorfman766 »

I've tested this across a couple runs of startx and several reboots. It seems the console/keyboard is only fully registered at bootup and trying to change it on the fly is not straight forward.

But, the /etc/default/keyboard file seems to be the glue for it that holds.

Post Reply