Virtual keyboard activation

  • I bought a raspberry pi2 and 7 inch waveshare touchscreen. The SD card came along with the system already flashed. It turns on and everything works, but how do I activate the virtual keyboard. Do I need a USB keyboard initially to do so?

  • First thing to do:

    • Open terminal

    Second you will need to update the repositories:

    • sudo apt-get update

    An upgrade to the whole system isn't needed but it is recommended:

    • sudo apt-get upgrade

    Now we can install the virtual keyboard:

    • sudo apt-get install matchbox-keyboard

    Rebooting is recommended:

    • sudo reboot

    Now you can access the keyboard:

    Menu >> Accessories >> Keyboard

    Access the keyboard

    If the keyboard isn't visible on the menu you can enable it by going to:

    Menu >> Preferences >> Main Menu Editor

    There you will be able to enable the keyboard.

    If everything has gone perfectly you will now have an onscreen keyboard.

    Onscreen keyboard

    To do all this I will need a external keyboard and working internet connection, right?

    Yes internet and keyboard is required for this steps but after the setup you can use your virtual keyboard without internet.

    Since I don't have an external keyboard, I connected my pi to the laptop using LAN, and the computers connected to the net with WiFi. All your given commands run successfully except sudo apt-get update. It shows something wicked happened resolving...( the site address). Please advise

    Should I just flash the latest version of raspbian if I can't update the existing one to get the repositories?

    So the install of the keyboard was successful? If the install of the keyboard was successful then this question is answered, but why the update command didn't work is weird because your pi is connected to the internet (otherwise the other commands didn't work). Is there something else after the 'wicked happened'? If so, is it: (-5 - No address associated with hostname) ?

    Yes, its exactly that. How did you know? And what should I do?

    If you are logged in with ssh to your Raspberry Pi, you can launch the virtual keyboard on the distant screen using `DISPLAY=:0 matchbox-keyboard &`. It will show up and you'll be able to type commands if you only have a mouse connected.

    The app didn't show in the Appilcations section even though it was configured to to show. I had to uncheck/save/recheck/save for it to show up. Just the same, technique worked great thanks! (as an aside, my raspbian card must have been a bit out of date as it too forever for upgrade to complete).

    An alternative to matchbox-keyboard is desperately needed. I just tried this on a freshly installed Raspbian November 2018 and it's a buggy mess on the verge of breakdown. Its keys are constantly twitching when the window is touching the screen edges, and just having the keyboard running prevents any other window from going full screen (maximised windows just cover the top/bottom half of the screen instead, with no explanation) -- even when the keyboard is just a floating window.

    @Andreas I am not sure if there are any alternatives. I just searched a little with no success. If anyone does find an alternative; please post it here.

    @Michielvk I couldn't find anything either. Thanks for looking.

    @user473180 That's not necessarily true, you can do it with just a mouse through the use of clever copy pasting commands

License under CC-BY-SA with attribution


Content dated before 6/26/2020 9:53 AM