You are not logged in.

#1 2024-08-22 10:45:31

average_scout
Member
Registered: 2024-06-14
Posts: 52

[SOLVED] Colemak layout only usable at random times

Ever since I installed Cosmic, my PC has been acting up in terms of keyboard layout. When I load up my beloved GNOME, all is good until I open Console. That's when the nightmare starts: QWERTY gets set. All is QWERTY.

loadkeys

doesn't do anything, following the wiki for

setxkbmap

or

localectl

doesn't help. Colemak comes back randomly. It's like my own Arch is messing with me for shits n giggles. This is making me go insane. Please help.

Last edited by average_scout (2024-09-06 19:38:07)

Offline

#2 2024-08-22 12:06:33

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

So I actually realized that opening any terminal application sets the layout to QWERTY for some reason. Switching to another TTY temporarily fixes this.

Last edited by average_scout (2024-08-22 12:10:24)

Offline

#3 2024-08-22 15:12:50

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

Does your "beloved" gnome run on X11 or wayland?
Also what exactly is "console"? https://archlinux.org/packages/extra/x8 … e-console/ ?
Or

Switching to another TTY temporarily fixes this.

a linux console?

From an X11 session (assuming it's affected, this is pointless on wayland) post

setxkbmap -print -query

How do you asses the layout? Is it (only) on the terminal emulator or are other GUI clients also affected?

Does removing cosmic actually fix this?

Offline

#4 2024-08-22 16:31:29

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:

Does your "beloved" gnome run on X11 or wayland?
Also what exactly is "console"? https://archlinux.org/packages/extra/x8 … e-console/ ?
Or

Switching to another TTY temporarily fixes this.

a linux console?

From an X11 session (assuming it's affected, this is pointless on wayland) post

setxkbmap -print -query

How do you asses the layout? Is it (only) on the terminal emulator or are other GUI clients also affected?

Does removing cosmic actually fix this?

It's running on X11, "Console" is any terminal emulator, including gnome-console.
This is the output:

xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us(colemak)+us:2+inet(evdev)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
rules:      evdev
model:      pc105+inet
layout:     us,us
variant:    colemak,

I determine the layout by just typing (?). Anywhere on my PC (except for other TTYs) it's QWERTY until I switch to another TTY. This workaround makes the issue not nearly as annoying, considering the fact that I just have to open a terminal emulator once and switch TTYs, then I never have to open a new terminal window.

Offline

#5 2024-08-22 20:06:23

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

layout:     us,us
variant:    colemak,

You've a dual-layout setup, since there's no switch configured I guess that's not deliberate and also the second variant just falls back to qwerty

Let's see whether it's the global config:

grep -ir layout /etc/X11/xorg.conf.d/

How and why gnome-console triggers ISO_Next_Group, I've no idea at all, but it won't matter: if you remove the second layout, nothing's gonna switch there.

Offline

#6 2024-08-22 20:52:17

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:
layout:     us,us
variant:    colemak,

You've a dual-layout setup, since there's no switch configured I guess that's not deliberate and also the second variant just falls back to qwerty

Let's see whether it's the global config:

grep -ir layout /etc/X11/xorg.conf.d/

How and why gnome-console triggers ISO_Next_Group, I've no idea at all, but it won't matter: if you remove the second layout, nothing's gonna switch there.

The directory you specified is empty. There's nothing and using the command also does nothing.

Offline

#7 2024-08-22 20:56:08

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

grep -ir layout /usr/share/X11/xorg.conf.d/

Otherwise that layout-chaos is configured by the session (the soon-to-be-cursed gnome), look around in gnomes keyboard configuration.

Offline

#8 2024-08-22 21:03:33

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:
grep -ir layout /usr/share/X11/xorg.conf.d/

Otherwise that layout-chaos is configured by the session (the soon-to-be-cursed gnome), look around in gnomes keyboard configuration.

Also no layout file in the directory. Command returns nothing. In GNOME keyboard settings, I only have "English (Colemak)" as an input method. On the internet, I see mentions of this settings part called "Region & Language", but I can't change keyboard layouts there.

Offline

#9 2024-08-22 21:26:36

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

setxkbmap -layout us
setxkbmap -print -query

but that's transitional and will be lost w/ at least the next login.

https://help.gnome.org/users/gnome-help … ts.html.en says "Input sources".

https://discourse.gnome.org/t/how-to-se … cally/9459

gsettings get org.gnome.desktop.input-sources sources

Offline

#10 2024-08-23 07:06:37

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:
setxkbmap -layout us
setxkbmap -print -query

but that's transitional and will be lost w/ at least the next login.

https://help.gnome.org/users/gnome-help … ts.html.en says "Input sources".

https://discourse.gnome.org/t/how-to-se … cally/9459

gsettings get org.gnome.desktop.input-sources sources

I find no such thing as "Input sources". Output:

setxkbmap -print -query
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+inet(evdev)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
rules:      evdev
model:      pc105+inet
layout:     us

The guide teaches you how to get QWERTY, but I don't want that. If I enter

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us')]"

it sets QWERTY in GNOME settings. If I manually set Colemak in GNOME settings, this is the output:

gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us+colemak')]

Offline

#11 2024-08-23 07:09:13

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

The gnome discourse wa meant a reference on how to query/set the layout via gsettings.
What does "gsettings get org.gnome.desktop.input-sources sources" and "setxkbmap -print -query" now say after a re-login (w/o reducing the layout w/ setxkbmap first)?

Offline

#12 2024-08-23 07:26:19

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:

The gnome discourse wa meant a reference on how to query/set the layout via gsettings.
What does "gsettings get org.gnome.desktop.input-sources sources" and "setxkbmap -print -query" now say after a re-login (w/o reducing the layout w/ setxkbmap first)?

gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us+colemak')]
setxkbmap -print -query
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"};
	xkb_compat    { include "complete"};
	xkb_symbols   { include "pc+us(colemak)+us:2+inet(evdev)"	};
	xkb_geometry  { include "pc(pc104)"};
};
rules:      evdev
model:      pc105+inet
layout:     us,us
variant:    colemak,

Issue is exactly as before.

Last edited by average_scout (2024-08-23 07:27:01)

Offline

#13 2024-08-23 07:58:36

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

Yes, despite the setting gnome - or Something - shoehorns in a second Layout
Try the behavior w/ a fresh User, setting the Layout to a single US should mitigate the Problem in the Meantime.

Offline

#14 2024-08-23 08:11:12

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:

Yes, despite the setting gnome - or Something - shoehorns in a second Layout
Try the behavior w/ a fresh User, setting the Layout to a single US should mitigate the Problem in the Meantime.

As expected, there is no trace of an issue on another user. But,

loadkeys

doesn't work there either. Setting Colemak in GNOME settings works as expected and opening gnome-console does absolutely nothing to the layout, it keeps Colemak.

Last edited by average_scout (2024-08-23 08:11:44)

Offline

#15 2024-08-23 08:15:33

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

loadkeys is for the linux console, I guess Cosmic added some autostart entry to load its configuration?
Look around there, i'll be AFK for some hours.

Edit: typing on phones is great.

Last edited by seth (2024-08-23 12:54:56)

Offline

#16 2024-08-23 08:26:37

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:

Loadkeys is for the Linux console, i guess cosmic added some Autostart entry to load its configuration? Look around there, i'll BE adk for some hours.

I completely removed Cosmic and deleted all its config files. Nothing. I'll keep looking for config files and update.

Offline

#17 2024-08-23 13:03:15

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

If you've not found it, check ~/.config/cosmic/com.system76.CosmicComp/*/xkb_config, though I'm not really sure how those would be activated w/o the DE even installed hmm
In doubt, re-install cosmic, run "cosmic-settings keyboard" and check its configuration.

Offline

#18 2024-08-23 17:59:56

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:

If you've not found it, check ~/.config/cosmic/com.system76.CosmicComp/*/xkb_config, though I'm not really sure how those would be activated w/o the DE even installed hmm
In doubt, re-install cosmic, run "cosmic-settings keyboard" and check its configuration.

Checked cosmic keyboard settings, there was just plain old US QWERTY. I added Colemak and logged out. Surprisingly, my login screen (SDDM) now has Colemak as well, unlike before. But the issue persists.

Offline

#19 2024-08-23 19:24:48

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

Surprisingly, my login screen (SDDM) now has Colemak as well

There *has* to be some global config (now) - is the new user now affected as well? Have you inspected those config files (or tried to remove them)?

Broadsword:

grep -ri layout ~

Offline

#20 2024-08-23 20:22:11

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

seth wrote:

Surprisingly, my login screen (SDDM) now has Colemak as well

There *has* to be some global config (now) - is the new user now affected as well? Have you inspected those config files (or tried to remove them)?

Broadsword:

grep -ri layout ~

New user is still unaffected. I tried nuking Cosmic config files before but that did nothing. The output of the command you specified is so long the terminal emulator literally limits the amount of text visible, even if I scroll up, making the command borderline useless. Attempting to use wgetpaste on it returns this:

wgetpaste -c "grep -ri layout ~"
Apparently nothing was received. Perhaps the connection failed. Enable --verbose or
--debug to get the output from wget that can help diagnose it correctly.

Basically, the output is too long.
I'm gonna keep digging for faulty config files and definitely update later.

Last edited by average_scout (2024-08-23 20:22:40)

Offline

#21 2024-08-23 20:36:12

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

grep -ri layout ~ > /tmp/allmylayouts
grep us /tmp/allmylayouts # does that light up something?
du -h /tmp/allmylayouts # to be sure…
cat /tmp/allmylayouts | curl -F 'file=@-' 0x0.st

Offline

#22 2024-09-06 19:37:11

average_scout
Member
Registered: 2024-06-14
Posts: 52

Re: [SOLVED] Colemak layout only usable at random times

After a whole hour of troubleshooting and debugging, I couldn't fucking fix the issue. Then, I took a look at my .bashrc and found a "setxkbmap us" line. Well, what the fuck do you know, removing that line fixed it. Solved. Check your .bashrc (and your .xinitrc and similar files maybe).

Offline

#23 2024-09-06 19:42:10

seth
Member
Registered: 2012-09-03
Posts: 56,846

Re: [SOLVED] Colemak layout only usable at random times

Just ftr, this kind of stuff generally has absolutely no business being in your bashrc (not even if it was the correct layout)
The bashrc executes *everytime* you start an interactive shell (terminal GUI), only things relevant to setup *that* shell are supposed to be in there and as a rule of thumb ab·so·fuck·ing·lu·te·ly nothing concerning X11.

Offline

Board footer

Powered by FluxBB