Professional Documents
Culture Documents
ozzmaker.com
Matchbox-keyboard is an on screen virtual or software keyboard which works well for small touchscreen TFTs
connected to a Raspberry Pi.
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
1/13
5/5/2015
Matchbox-keyboard also uses XML files to specify the layout of the keys, which makes it highly customizable.
The touchscreen used in the above video is a PiScreen.
1. Install prerequisite development files
pi@raspberrypi~$sudoaptgetinstalllibfakekeydevlibpngdevlibxftdevautoconflibtooly
Installation of the shared matchbox libraries needs to be done after the installation of matchbox-keyboard.
pi@raspberrypi~$sudoaptgetinstalllibmatchbox1y
2/13
5/5/2015
killall matchbox-keyboard
else
matchbox-keyboard&
fi
To create an icon on the task bar, open up the LXDE panel config;
pi@raspberrypi~$nano~/.config/lxpanel/LXDE/panels/panel
If the above file is empty, then it is most likely that you have a newer version of Raspbian, especially if you are
using a Pi 2. You then would need to edit the panel config at this location;
pi@raspberrypi~$nano~/.config/lxpanelpi/LXDE/panels/panel
3/13
5/5/2015
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}
More Information
Matchbox-keyboard can be started from the command line with the below statement. This needs to be run from a
command prompt within X which is running on the touch screen;
pi@raspberrypi~$matchboxkeyboard
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
4/13
5/5/2015
Matchbox-keyboard can also resize the window with the -s integerargument. Integer is a value between
30%-100% of the screen width.
Here is the defualt keyboard layout loaded at 50% of screen width;
pi@raspberrypi~$matchboxkeyboards50
Matchbox-keyboard also supports custom keyboards, and there are a few loaded with the install into
/usr/local/share/matchbox-keyboard/. It is very easy to build your own.
pi@raspberrypi~$matchboxkeyboards50extended
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
5/13
5/5/2015
Raspberry Pi Dashboard
Connect, control and monitor your
Raspberry Pi. Free account sign up
SHARE THIS:
KEYBOARD
PISCREEN
PITFT
RASPBERRY PI
TFT
TOUCHSCREEN
Pingback: PiScreen
TFT 3.5
| Unof cial of Raspberry Pi Fan in Thailand
Pingback: codescaling | Maker Catchup: BeagleBone GSM Basestation, Pi ScreenKeyboards, Tiny Clocks
Pingback: Add a Virtual Keyboard to a Raspberry Pi|The Cannabis Strain Directory Blog
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
6/13
5/5/2015
dreamshader
AUGUST 27, 2014 AT 5:53 AM
Remember to install libxft-dev if not done befor (sudo apt-get -y install libxft-dev).
Otherwise the error:
configure: error: *** Required Xft Library not found ***
will occur.
rgds,
-ds-
mwilliams03
AUGUST 27, 2014 AT 10:03 AM
frans
AUGUST 28, 2014 AT 6:59 AM
mwilliams03
AUGUST 28, 2014 AT 2:20 PM
frans
AUGUST 29, 2014 AT 1:20 AM
DISPLAY=:0.0 matchbox-keyboard
matchbox-keyboard: error while loading shared libraries: libmatchbox-keyboard.so.0: cannot open
shared object file: No such file or directory
i see nothing
mwilliams03
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
7/13
5/5/2015
frans
AUGUST 29, 2014 AT 6:15 PM
Blaubart
SEPTEMBER 4, 2014 AT 7:18 PM
Im using Rasbian Jessie with Kernel 3.12.26 and I cant install matchbox-keyboard. I used the following
commands:
git clone https://github.com/mwilliams03/matchbox-keyboard.git
cd matchbox-keyboard
./autogen.sh
make
the results:
base-fragment-et_EE.xml.in > base-fragment-et_EE.xml.tmp
cp base-fragment-et_EE.xml.tmp base-fragment-et_EE.xml
make[2]: *** No rule to make target keyboard-extended.xml.in, needed by keyboard-extended.xml.tmp.
Schluss.
rm base-fragment-da_DK.xml.tmp base-fragment-et_EE.xml.tmp
make[2]: Leaving directory /home/pi/matchbox-keyboard/layouts
Makefile:486: recipe for target all-recursive failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory /home/pi/matchbox-keyboard
Makefile:375: recipe for target all failed
make: *** [all] Error 2
Arc
SEPTEMBER 13, 2014 AT 11:45 PM
Sancho
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
8/13
5/5/2015
Saad
SEPTEMBER 12, 2014 AT 11:49 PM
First of all thanks for the awesome PiScreen. I am a beginner with Raspberry Pi. I was wondering if it is
possible to support multiple PiScreens simultaneously with a single Raspberry Pi or Banana Pi or any of its
high-end variants? Can I connect PiScreen using USB port and what can I do to achieve this?
I shall be grateful for the response and any helpful details/insights into this.
Thanks
S
Juan Fernando
SEPTEMBER 14, 2014 AT 6:35 AM
hello it is a good post, but now i need install extended, can you tell made a tutorial how to make it??
chris
OCTOBER 28, 2014 AT 7:23 AM
WIlliam
OCTOBER 31, 2014 AT 3:39 PM
Is it possible to add the following characters on the keyboard {, }, &, and | and numbers? If so, how?
Mark Williams
OCTOBER 31, 2014 AT 3:50 PM
first try loading the extended keyboard and see if that gives you what you want
matchbox-keyboard extended
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
9/13
5/5/2015
Otherwise, read the README in the source directory. It has a section titled Making your own keyboard
layouts
JanKinander
DECEMBER 3, 2014 AT 6:18 PM
How do you set the language xml file you wish to use? And how can languages be switched during use?
Joe
JANUARY 26, 2015 AT 5:26 AM
I could not get the toggle script to work properly until I changed the line:
PID=pidof matchbox-keyboard
To this:
PID=$(pidof matchbox-keyboard)
It would only keep launching additional keyboards before making this change.
I cant tell you exactly why I just kept looking at examples of scripts and looking for other ways to write it
until I got it to work.
Etienne
FEBRUARY 6, 2015 AT 1:38 AM
Hello,
I have change
matchbox-keyboard -s 75 extended&
In:
sudo nano /usr/bin/toggle-matchbox-keyboard.sh
But, when i launch the matchbox on the menu, it alway launch the Standart non extended keyboard. whats
wrong?
Alors after changer text in ~/.config/lxpanel/LXDE/panels/panel and rebboted the device, the line i have
editer have diseapear, now , POWER and LOCK icon has diseaper from the taskbar, i dont know why
Etienne
FEBRUARY 6, 2015 AT 2:46 AM
Hello,
Its now working, i have erase all space or tab space and now its working (on your example, have space
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
10/13
5/5/2015
Mark Williams
FEBRUARY 6, 2015 AT 5:00 PM
Richard
FEBRUARY 26, 2015 AT 4:48 PM
I have followed the installation instructions and the standard matchbox keyboard works fine. When I try to
get the extended version to work:
matchbox-keyboard extended
I get Segmentation fault. Can you help me troubleshoot this?
Fernando Cornejo
MARCH 9, 2015 AT 3:37 AM
Lester
MARCH 6, 2015 AT 7:52 AM
Fernando Cornejo
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
11/13
5/5/2015
I cant make the toggle work, could you help me to install the last version (https://github.com/xlab/matchboxkeyboard). What i really want is to make the virtual keyboard runs on startup. Please some help, Im newbie
Fernando Cornejo
MARCH 12, 2015 AT 10:53 AM
Guus
MARCH 17, 2015 AT 10:12 PM
I executed all steps in the tuturial, but same as frans (AUGUST 29, 2014 AT 1:20 AM) I get the following error
message:
matchbox-keyboard: error while loading shared libraries: libmatchbox-keyboard.so.0: cannot open shared
object file: No such file or directory
uname -a
Linux raspberrypi 3.18.9-v7+ #767 SMP PREEMPT Sat Mar 7 21:52:35 GMT 2015 armv7l GNU/Linux
Can you please advise? Thanks
Fernando Cornejo
MARCH 18, 2015 AT 11:51 PM
Guus
MARCH 19, 2015 AT 12:26 AM
jim belmore
MARCH 19, 2015 AT 3:26 AM
Hi all, first of all Mark I appreciate all the work that has gone in to this. Very useful tool for the pi with the
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
12/13
5/5/2015
small touchscreen. First of all the tutorial is well written and concise which I appreciate. In the line X-MBINPUT-MECHANSIM=True is it supposed to be MECHANISM or how its typed? I also have run through this
two times. The first time I felt that I had missed installing libmatchbox1 in the appropriate sequence so I
reimaged and tried the script again installing libmatchbox at an earlier time. I still receive the
matchbox-keyboard: error while loading shared libraries: libmatchbox-keyboard.so.0: cannot open shared
object file: No such file or directory
I am using the raspian pitft image PiTFT28R_raspbian140620_2014_08_25. Ive checked the error logs and
no error seems to be logged.
Any and all advice is appreciated this tool would cure a number of remote uses I have in mind for this unit.
thanks Jim
Amit Kushwaha
APRIL 4, 2015 AT 11:08 PM
Jim
APRIL 19, 2015 AT 12:08 AM
Getting Directory ( ~/.config/lxpanel-pi/LXDE/panels/panel) not found when trying to write the code to the
file.
khusro kkan
MAY 3, 2015 AT 1:09 AM
hi Jim
i also got this error.
did u solve it
Matthew Grant
MAY 5, 2015 AT 10:53 AM
Hi.
Ive installed the keyboard as per instructions but after running it I cant open File Manager without a reboot
and then if I run matchbox-keyboard File Manager will not open.
Anyone else having this problem? How can I fix it?
Thanks
http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/?utm_source=feedly
13/13