Why does my keyboard persist in going back to US layout?
QWhenever my Mac Pro, an early 2009 model running El Capitan, starts up it reverts to using a US keyboard. I then set it back to using a UK keyboard in System Preferences, which it forgets the next time it starts up. How can I get it to remember the correct layout?
AThis usually happens when one of the two keyboard preference files is corrupt. There’s one in Library at the top of your startup disk, and another in your user account’s Library, so your Mac knows which to use before and after you log in.
The first to check is the latter. In Finder, hold å and choose Go > Library. Open the Preferences folder there and locate the file named com.apple.HIToolbox.plist; move it elsewhere, such as Documents.
Next, restart your Mac, and set up your keyboard normally using the Input Sources tab in the Keyboard pane. That change should persist after your next startup or restart. If it doesn’t, you may need to remove that same file from your account’s Library folder again, and from the Preferences folder in the top-level Library folder before restarting. That’ll change the keyboard settings that are applied both before you log in, and afterwards.
Keyboard prefs are saved in two files, either or both of which can get corrupted and cause layout confusion.