You are not logged in.
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
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
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
Does your "beloved" gnome run on X11 or wayland?
Also what exactly is "console"? https://archlinux.org/packages/extra/x8 … e-console/ ?
OrSwitching 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
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
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
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
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
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
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
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
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
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
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
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
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
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
In doubt, re-install cosmic, run "cosmic-settings keyboard" and check its configuration.
Offline
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
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
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
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
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
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
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