You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mac Studio: wrong keyboard layout on login screen

Every time I start or restart the Mac, the login screen shows ABC as the keyboard in the top right corner. I use a French keyboard although the system and all the apps are in English. When I type my password which has the letter "a" in it, the letter "q" is entered instead. If I type a "q", it enters the correct letter "a". Obviously, it's using the US layout "QWERTY" instead of the French "AZERTY".


This started happening when I changed from an old Mac Pro 2013 with Monterey to the latest Mac Studio also with Monterey. When I installed Ventura recently, nothing changed. This happened in exactly the same way with two different Mac Studios.


When I click on the ABC at the top right, it shows a long list of all possible keyboard layouts. There is also an option to remove the current one. I added the French one and removed ABC. This worked for only one login. A second restart shows the ABC keyboard again.


Does anyone have an idea about how to fix this and get the correct keyboard layout on restart?


Mac Studio

Posted on Nov 27, 2022 8:04 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 3, 2022 7:22 AM

Since the second login appeared to be the desired and correct configuration. That leads me to believe that the language settings are not making it to the pre-boot authentication screen. Because all Intel w/T2 and Apple Silicon (M1 / M2) Macs are hardware encrypted at the factory. They need to give you a login screen immediately to unlock the disk and then continue booting whereupon macOS will sign in automatically to the real login screen without showing it to you and drop you into the desktop. Safe Mode boot reveals both logins and asks you to login to the second one. The first pre-boot login is not online with any networking, it's sort of a faked login screen with just enough code running to prompt for the password and handle resetting the password. Once it unlocks the disk you see the progress bar indicating that the actual operating system is booting. While Apple makes this look very attractive, it's far from informational to the user as to what is really going on under the hood so to speak.


So again, the problem is that the pre-boot authentication is not presenting the French keyboard by default but is using the USA one instead. The second login reached via Safe Mode could be reached in normal mode by logging out and not restarting the Mac. If you do that, it should be the French keyboard setting.


There is a preferences file in your user Library and another in the global /Library/Preferences that are the same. When you configured your keyboard / language settings those settings were applied to your user Preferences but not the global preferences.


Try this:


  • Open Terminal
  • Type the following:


sudo cp ~/Library/Preferences/com.apple.HIToolbox.plist /Library/Preferences/
sudo chmod 644 /Library/Preferences/com.apple.HIToolbox.plist


You will be prompted for your Mac password and the cursor will not move, just type in the Mac password and press Return.


The command sequence means:


Super User Do, Copy (the User Preference File) to the global all users Preferences location


Super User Do, Change File Mode permissions to Read/Write for User (root user god account) and Read Only for group and other users.


Once you've done that restart the Mac.


I suspect the root cause of the problem is that you didn't set everything to French which is what a full-time foreign user in France would do. i.e. system language and keyboard. You want to have both English and French. The is quite possibly outside the scope of what the Apple macOS Developers designed originally. The workaround to this scenario was found on an older Apple Community Discussion post here:


[ Credit to Linc Davis and _Pierre_ ]

https://discussions.apple.com/thread/7392283?answerId=32183925022#32183925022


Similar questions

6 replies
Question marked as Top-ranking reply

Dec 3, 2022 7:22 AM in response to Ellen H

Since the second login appeared to be the desired and correct configuration. That leads me to believe that the language settings are not making it to the pre-boot authentication screen. Because all Intel w/T2 and Apple Silicon (M1 / M2) Macs are hardware encrypted at the factory. They need to give you a login screen immediately to unlock the disk and then continue booting whereupon macOS will sign in automatically to the real login screen without showing it to you and drop you into the desktop. Safe Mode boot reveals both logins and asks you to login to the second one. The first pre-boot login is not online with any networking, it's sort of a faked login screen with just enough code running to prompt for the password and handle resetting the password. Once it unlocks the disk you see the progress bar indicating that the actual operating system is booting. While Apple makes this look very attractive, it's far from informational to the user as to what is really going on under the hood so to speak.


So again, the problem is that the pre-boot authentication is not presenting the French keyboard by default but is using the USA one instead. The second login reached via Safe Mode could be reached in normal mode by logging out and not restarting the Mac. If you do that, it should be the French keyboard setting.


There is a preferences file in your user Library and another in the global /Library/Preferences that are the same. When you configured your keyboard / language settings those settings were applied to your user Preferences but not the global preferences.


Try this:


  • Open Terminal
  • Type the following:


sudo cp ~/Library/Preferences/com.apple.HIToolbox.plist /Library/Preferences/
sudo chmod 644 /Library/Preferences/com.apple.HIToolbox.plist


You will be prompted for your Mac password and the cursor will not move, just type in the Mac password and press Return.


The command sequence means:


Super User Do, Copy (the User Preference File) to the global all users Preferences location


Super User Do, Change File Mode permissions to Read/Write for User (root user god account) and Read Only for group and other users.


Once you've done that restart the Mac.


I suspect the root cause of the problem is that you didn't set everything to French which is what a full-time foreign user in France would do. i.e. system language and keyboard. You want to have both English and French. The is quite possibly outside the scope of what the Apple macOS Developers designed originally. The workaround to this scenario was found on an older Apple Community Discussion post here:


[ Credit to Linc Davis and _Pierre_ ]

https://discussions.apple.com/thread/7392283?answerId=32183925022#32183925022


Dec 11, 2022 9:31 AM in response to James Brickley

Many thanks for trying to help and explaining everything very clearly.


I have just now finally found the time to try the method you describe and, sadly, it didn't fix the problem.


I checked the contents of /Library/Preferences/com.apple.HIToolbox.plist and the AppleCurrentKeyboardLayoutInputSourceID is correctly set to com.apple.keylayout.French.


The date and time of the file is set to when I made the copy.


And when I log in, it's still ABC with the US keyboard layout…


If you have any other ideas, I'm willing to try.


Nov 27, 2022 8:41 AM in response to Ellen H

Open System Settings then search for "language". In the results, click on Language & Region and ensure your preferred language is set. You might have more than one in the list. You might just want French only. Use the plus and minus buttons to add / remove languages. Then scroll down the results and look for Keyboard and "Language input methods" and you can add / remove the keyboards you wish to have. Select French and you can add the ABC - AZERTY keyboard. If that's all you need remove the U.S. or English, etc.


Then reboot and see if the defaults are French and ABC - AZERTY.

Nov 28, 2022 7:01 AM in response to James Brickley

I did what you suggested, keeping French and English in General > Preferred Languages as I use both all the time and want to have the UI in English when possible.


In Keyboard > Text Input > Input Sources I added the ABC - AZERTY keyboard and even removed the US one, so that all input sources are French. This didn't change the problem on the login screen which still shows ABC with a US layout on startup. The other keyboards are there and can be changed using the drop-down menu, but it's quicker to type the required characters using other keys once you know where they are.


I also tried to add loginwindow.app (found in /System/Library/CoreServices/) to Applications in the Language & Region pane and set it to run in French. It didn't help.


The strange thing is that I have other macs: an iMac M1 (2021) with Ventura that doesn't have this problem. And a Mac Pro 2019 (Intel), with Ventura, which doesn't either. They both have French and English as preferred languages and French as Keyboard input sources.


Is it imaginable that this has something to do with the Studio itself? Seems unlikely to me.


Anyway, I'm sort of getting used to using the "q" key to type an "a".


Thank you for your help.

Nov 28, 2022 2:31 PM in response to Ellen H

Try booting into Safe Mode which flushes some caches and performs some maintenance.


Shutdown completely, then press and hold the power button and keep holding it. The Mac will begin to startup, keep holding the power button until you see the Options screen appear. Then let go of the power button. Next hold the Shift key down and click on the Macintosh HD and there should be a change to the button below to Start in Safe Mode. Click the drive and the Mac will restart into Safe Mode. Login and you likely will see a second login. Once you get to the desktop, let is sit for 5min so it finishes running those background maintenance tasks, etc. Then click the Apple menu and restart normally. Test your language settings on the initial pre-boot authentication screen.

Dec 3, 2022 1:32 AM in response to James Brickley

Again, I tried what you suggested, and again, the problem remains. The setting is still stubbornly ABC with a US layout on startup.


As you mentioned, I did get a second login immediately after booting in Safe Mode, the second one with the French keyboard layout.


I also get this second login whenever I log in with the Shift key down to keep all the login items from starting up. And, as with the Safe Mode, the first login screen has the ABC US layout and the second one the French layout.


Thanks for your ideas.


Mac Studio: wrong keyboard layout on login screen

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.