How to change Onboard layout from Greek to "normal?"

Asked by Charles

How is the Onboard virtual keyboard layout changed? It somehow changed to Greek, how to change it back?

This is on Raspberry Pi 3B+ running latest Buster and updates. When I originally installed Onboard it was in "normal" QWERTY layout. Then I'm not quite sure what happened and now it's in Greek. All localization options in raspi-config are set to English and US.

Additionally, when I press a key on the virtual keyboard Onboard crashes the system and asks the Raspberry pi user to login again.

Question information

English Edit question
Onboard Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Charles (clmoore3rd) said :

Figured out the answer to my question, from command line open onboard as follows:

$ onboard -l en_US

It's also possible to override the automatic locale determination by modifying the file in /usr/lib/python3/dist-packages/Onboard as follows:

def get_system_default_lang_id(self):
        #lang_id = locale.getdefaultlocale()[0]
        lang_id = "en_US"
        if not lang_id: # None e.g. with LANG=C
            lang_id = "en_US"
        return lang_id

Just take care to use spaces for the indent, otherwise you'll get a TabError: inconsistent use of tabs and spaces in indentation.