Over a million developers have joined DZone.

Setting up an Onscreen Keyboard for the 7″ Touchscreen on the Raspberry Pi

DZone's Guide to

Setting up an Onscreen Keyboard for the 7″ Touchscreen on the Raspberry Pi

Follow Kevin Hooke's adventures in getting a keyboard set up for his Raspberry Pi touchscreen.

· IoT Zone ·
Free Resource

Digi-Key Electronics’ Internet of Things (IoT) Resource Center Inspires the Future: Read More

I just received one if these very cool 7″ touchscreens for the Raspberry Pi: https://www.raspberrypi.org/products/raspberry-pi-touch-display/

I have the default logon prompt when my Pi starts up; so the first challenge is how do you log on without a real keyboard attached without having to disable the logon? There are a number of onscreen keyboards available. Based on this thread I installed Florence:

sudo apt-get install florence

Then I edited /etc/lightdm/lightdm-gtk-greeter.conf adding ~a11y; for the Accessibility icon on the logon screen, and keyboard=florence so it appears in the menu.

The keyboard now appears, but as soon as I press a key it disappears. From this thread, installing at-spi2-core appears to fix the issue:

sudo apt-get install at-spi2-core

This seems to fix the keyboard not disappearing, but not having any luck getting characters to appear in the username/password fields. Still some investigation to do on this one.

Digi-Key’s IoT Component Selector is your one-stop-shop for the IoT

raspberry pi ,touchscreen ,keyboard

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}