Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keymap and tty #268

Open
nsklaus opened this issue Feb 17, 2024 · 2 comments
Open

keymap and tty #268

nsklaus opened this issue Feb 17, 2024 · 2 comments

Comments

@nsklaus
Copy link

nsklaus commented Feb 17, 2024

at install time, the default keymap set for tty is fr. it is not correct, and for some reason that keymap doesn't work as it usually does on x86 linux. for example, the alt-gr gets stuck when trying to issue key combo like right-opt+right-shift+l (the letter L). this combo is what is usually used to input a pipe | . but that doesn't work with default fr keymap. that combo and many others like it trigger instead a stuck alt-gr behavior. which in turn render it very difficult to get the keyboard into a usable state. user is stuck with broken keyboard and only has option to force hard reboot. i must also mention that, with that fr keymap, many keys are not located where they should be on a french macbook keyboard.

if user manually change default keymap to mac-fr instead of fr then the situation is getting better (but not completely ok). for example most keys will now be in the proper location (with the exception of <> being swapped with #@), but combo still won't work, and trying to input pipe | (with right-opt+right-shift+l will still result in keyboard getting stuck in alt-gr mode, rendering keyboard unusable again. user has to find blindly by trial and error where are located special chars like : |,_,~,[],\ and so on on this mac-fr keymap. this makes it very difficult to work with keyboard on tty. which is unfortunate because, when user breaks something by error, and that can happen for a large number of reasons, he is usualy dropped on tty, tasked to fix the things he broke. but, as i've explained, the keymap situation on tty makes it another layer of complexity. first figuring how to use the keyboard with all the problem mentioned, then finally user can have a chance to try to fix things around. the problem i describe is furthermore accentuated since, the use of combo: fn+ctrl+opt+Fkeys is what is used to swap back and forth from tty to wayland and x11. but, when using that combo, it often trigger the stuck alt-gr behavior too.

all the above report was tested on normal fedora-kde-asahi with normal setup, on a french macbookpro, 14", m2pro.

@nsklaus nsklaus changed the title keyboard keymap and tty Feb 17, 2024
@nsklaus
Copy link
Author

nsklaus commented Feb 18, 2024

for everyone else not using french keyboard, let's say you have american "qwerty" macbook. i bet the default keymap for tty set after the install is "us" which would be also wrong. it should be "mac-us" instead. if it's not, then your keys must be badly mapped too. it should be mac-(country) like: mac-de, mac-es, mac-se, mac-uk, mac-it, mac-pl ...

@nsklaus
Copy link
Author

nsklaus commented Feb 20, 2024

on mac-fr keymap in tty:

misplaced keys:

  • the key for £ ` (pound and back-tick symbols) gives µ* (micro and star) instead.
  • the key #@(sharp and "at" symbol) can only be used to produce # (sharp), the "at" symbol cannot be produced. to create one you need to press combo opt+0(opt + zero keys). which of course the user have to find it blindly by trial and error since it doesn't correspond to anything shown on keys.
  • the key for (hat and umlaut) produce instead ^" (hat and double quote)
  • the key for $* (dollar and star) produce instead (dollar and pound)

special chars:

  • to produce a | (pipe) the user has to press combo opt+6 the key for (six and section). the standard way on mac keyboard is normally right-opt + right-shift + l (opt + shift + L ). that works correctly in wayland and x11 but not in tty.
  • i could not find a way to input } (closing curly brace) at all.
  • to produce a \ (backslash) user has to press opt+8 the key for 8! (8 and exclamation). the standard way on mac keyboard is normally right-opt + right-shift + / (opt + shift + slash). that works correctly in wayland and x11 but not in tty.
  • to produce a ~ (tilde) user has to press opt+2 the key for (2 and é). the standard way on mac keyboard is normally right-opt + right-shift + n (opt + shift + n). that works correctly in wayland and x11 but not in tty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant