kbd icon indicating copy to clipboard operation
kbd copied to clipboard

[KEYMAP] mac-fr.map

Open MetotoSakamoto opened this issue 2 years ago • 9 comments

With archlinux ISO installer which is based from upstream kbd, enter: loadkeys mac-fr return a weird and unusable layout.

MetotoSakamoto avatar Mar 29 '22 14:03 MetotoSakamoto

@MetotoSakamoto Are you doing this on a macbook on some other apple laptop ?

legionus avatar Mar 29 '22 14:03 legionus

No I don't. But with apple keyboard A1843.

MetotoSakamoto avatar Mar 29 '22 16:03 MetotoSakamoto

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 avatar Mar 29 '22 17:03 MetotoSakamoto

@MetotoSakamoto Please attach fr-mac-suse keymap here.

legionus avatar Mar 30 '22 12:03 legionus

fr-mac.map.gz

omg. This is just a dump. If it works for you then great. Use it.

legionus avatar Mar 31 '22 14:03 legionus

I haven't checked yet, but it looks like the keymap is for modern keyboards and not for Macintosh.

legionus avatar Mar 31 '22 14:03 legionus

Which keymap is to be used for modern macbook pro ?

Montagnard avatar Sep 06 '22 08:09 Montagnard

For modern macbook pro you should use keymaps/i386/qwerty/fi.map or any other keymap from the i386.

legionus avatar Sep 06 '22 08:09 legionus

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.

nsklaus avatar Apr 21 '23 12:04 nsklaus

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. 🙂

ToCodeABluejay avatar Jun 14 '23 14:06 ToCodeABluejay

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. 😉

ToCodeABluejay avatar Jun 14 '23 14:06 ToCodeABluejay