Closed MetotoSakamoto closed 1 year ago
@MetotoSakamoto Are you doing this on a macbook on some other apple laptop ?
No I don't. But with apple keyboard A1843.
Copy fr-mac.map.gz
to /usr/share/kbd/keymaps/mac/all/fr-mac-suse.map.gz
from kbd in https://software.opensuse.org/package/kbd then, doing loadkeys fr-mac-suse
is working very well.
@MetotoSakamoto Please attach fr-mac-suse
keymap here.
omg. This is just a dump. If it works for you then great. Use it.
I haven't checked yet, but it looks like the keymap is for modern keyboards and not for Macintosh.
Which keymap is to be used for modern macbook pro ?
For modern macbook pro you should use keymaps/i386/qwerty/fi.map
or any other keymap from the i386
.
this is a general problem for all linux users on macbooks.
very few people notice about this, because people are very rarely in tty.
even heavy term users are usualy in term from X or wayland.
but when in tty, macbook users are left with a generic "us" or generic "fr" or generic "de" keymap,
it prevent them from inputing correctly chars like: "~", "/", "|", "-" and so on ...
trying to load a more correct keymap, instead of the generic one, like doing:
loadkeys mac-fr
(or mac-de, mac-us, .....) leaves the keymap in a completely broken state.
for example inputing "azerty" gives something like "yulksd" ..
completely broken. it's not even possible to type "shutdown -h now" to power off the system.
not possible to switch to another tty (since keymap is completely scrambled).
to note: this problem concerns all macbook (mac-us, mac-fr, mac-de, ..) users, in tty, when using arch linux for example. this problem does not happen on fedora, and apparently opensuse, and a few other distros. i have noticed this problem maybe like 10years ago, and it is still there.
since i like to use arch, i usualy pick the mac-fr.map.gz from another distro and copy it over my arch install. my guess is that kbd have a problem with macbook keymap, and some distro have worked around it, and some other did not.
If it is better to send a diff to somebody, I would appreciate knowing where to send it, but I own a 2020 Macbook Air with a French layout, and this aligns perfectly, and I would really appreciate seeing changes upstream which reflect the keyboards that are actually operating on modern Apple computers. I find this issue frustrating, and I would prefer not to have to copy a custom keymap over each time that I run into it, and I certainly understand how this can frustrate other people. This issue is currently open both on this project as well as on the Asahi Linux page. I cannot promise that each key combo is exactly the same, but at the very least all of the markings line up with that which exists on the keyboard, and I can use it without feeling any kind of frustration. I would be more than willing to update this to draw it closer to how mac OS handles the French keyboard layout. 🙂
This one is based upon fr-latin9, and it is readable. There is an ASCII-style keyboard which shows the location of various characters on the keyboard, so as to know where to look. 😉
With archlinux ISO installer which is based from upstream kbd, enter:
loadkeys mac-fr
return a weird and unusable layout.