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

French AZERTY keyboard not mapped correctly #1

Open
badwulfy opened this issue Mar 19, 2022 · 3 comments
Open

French AZERTY keyboard not mapped correctly #1

badwulfy opened this issue Mar 19, 2022 · 3 comments

Comments

@badwulfy
Copy link

badwulfy commented Mar 19, 2022

Hello,

I just installed Asahi Linux and find out that some keys does not map correctly with my Macbook Air french keyboard. I tried all Apple keyboard models in the settings, but it does not seem to change anything.

For reference, here is the mac French layout (no shift or option key pressed):
french layout

The >< and the #@ key are reversed : if I press on @ it types a < and vice versa. Same with the option key pressed or shift pressed or option+shift pressed.
All other keys are mapped correctly.

There is also some combination of keys that does not work as in macOS. I have circled in green the combinations that do not work and indicated in green if another character is typed when combination pressed.

Shift pressed:
french layout shift pressed

Option pressed:
french layout option+shift pressed

If you need any other information, I'll be glad to give them.

Thank for your awesome work and thank you in advance for your help.

@f-fritz
Copy link

f-fritz commented Mar 22, 2022

Hey,
would you mind testing this updated configuration: https://github.com/f-fritz/xkeyboard-config/blob/asahi/symbols/fr

DISCLAIMER: Proceed at your own risk, create a backup of the original file and maybe also make sure you can access the machine via SSH in case the keyboard config breaks and you are no longer able to use the terminal on the machine itself.

Then replace the file /usr/share/X11/xkb/symbols/fr with the one mentioned above (use the RAW view to download)

You might then need to log out and in again in order to apply the change. Make sure the Layout "French (Macintosh)" is selected in your Language & Region System Settings Pane and activated as well

The updated configuration should then look like this
French (Macintosh)

@badwulfy
Copy link
Author

badwulfy commented Mar 31, 2022

Hello.

Thanks for your help. My apologies, I've had some personal problems in the last few days and I really didn't have time to look at it before.

So I downloaded the file you pointed out and put it in the /usr/share/X11/xkb/symbols/ folder.
Unfortunately, this doesn't seem to have changed anything. Even in the preview, the keys are same as before.

Screenshot_20220331_211806

I double checked 3 times that the file was copied. I even checked the hash and compared it with the one downloaded from your repository:

93215c7439b10993de69e3236e94c865 /usr/share/X11/xkb/symbols/fr

I checked via the localectl command that my configuration is correct. According to me, everything is good:

   System Locale: LANG=fr_FR.UTF-8
       VC Keymap: fr
      X11 Layout: fr
       X11 Model: macintosh

I don't quite understand what I missed. 😅 If you have an idea, I'm in!

EDIT : in my first message, the localectl output was wrong. I have edited my message.

@f-fritz
Copy link

f-fritz commented Mar 31, 2022

Hey

I can reproduce your problem - I guess I did not understand entirely how these layouts work then... 🙈 When I select the French keyboard layout via the GUI System Settings App I can't even view the preview at all. Even though it worked in a debian VM using the gnome desktop.

However, aside from two keys (the one below ESC, left to "1" and the one between SHIFT L and "W") being swapped, it looks like my layout works / gets applied when running setxkbmap -layout fr -variant "mac" on the Terminal.

I'll take another look tomorrow

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

2 participants