Working virtual keyboard in Volumio3 with Touch Plugin

Wow, thank you! That worked! You can even get the latest release (currently v1.11.3) by adapting the commands like this:

cd /home/volumio/
wget https://github.com/xontab/chrome-virtual-keyboard/archive/refs/tags/v1.11.3.tar.gz
tar -xvzf v1.11.3.tar.gz
rm -f v1.11.3.tar.gz
sudo sed -i 's/http:\/\/localhost:3000.*\?$/http:\/\/localhost:3000 --load-extension=\/home\/volumio\/chrome-virtual-keyboard-1.11.3/'  /opt/volumiokiosk.sh
systemctl restart volumio-kiosk

This version works better for me. It even has keyboard layout options which can be set at first start (quit with [ALT] + [F4]; however, I do not know how to access these options later on).

EDIT:
Instead of using sed, you can also just edit the file /opt/volumiokiosk.sh (e.g. sudo nano /opt/volumiokiosk.sh) and add the parameter for loading the extension. In my case it then looks like this:

#!/bin/bash
while true; do timeout 3 bash -c "</dev/tcp/127.0.0.1/3000" >/dev/null 2>&1 && break; done
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /data/volumiokiosk/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"None"/' /data/volumiokiosk/Default/Preferences
if [ -L /data/volumiokiosk/SingletonCookie ]; then
  rm -rf /data/volumiokiosk/Singleton*
fi
openbox-session &
while true; do
  /usr/bin/chromium-browser \
    --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
    --force-device-scale-factor=1 \
    --disable-pinch \
    --kiosk \
    --no-first-run \
    --noerrdialogs \
    --disable-3d-apis \
    --disable-breakpad \
    --disable-crash-reporter \
    --disable-infobars \
    --disable-session-crashed-bubble \
    --disable-translate \
    --user-data-dir='/data/volumiokiosk' \
    --load-extension=/home/volumio/chrome-virtual-keyboard-1.11.3 \
    http://localhost:3000
done

EDIT 2:
You can get to the options panel again by clearing the Chromium cache and restarting the service (close panel with ALT + F4):
rm -rf /data/volumiokiosk/Default/*
systemctl restart volumio-kiosk

EDIT 3:
For an install script or plugin it would be nice to preset the extension options (and make them editable elsewhere). So the extension option page wouldn’t be shown up at first start (–> confusing and annoying if you don’t have a physical keyboard connected). These options seem to be stored in a LevelDB database in /data/volumiokiosk/Default/Local Storage/leveldb/. However, I have no clue how to edit such a database.

2 Likes