KivyPie w/o touchscreen and responsive cursor

EDIT [This may be unstable in Raspbian Jessie, which Kivy Pie 1.0 is built on, use caution.]

My Hardware

  • Raspberry Pi 3 b
  • Samsung 32GB EVO Plus Class 10 MicroSDHC card
  • Acer LCD monitor connected to HDMI
  • Logitech K400r keyoard with bultin touchpad
  • 5V 2.5 power supply

Beginning with a fresh install of KivyPie, 1.0 See the Download and FAQ section at kivypie.org for more information on getting it copied to an SD card.

Boot up the system and do the the following updates.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Reboot and run sudo raspi-config. Make the appropriate setting changes for your locale, timezone, etc. Then choose 7 Advanced Options from the menu and then select A6 GL Driver. and select

  • G1 (Full KMS) OpenGL desktop driver

Save and exit out, you will be asked to reboot again.

Pyton2 support is missing install it and create a link with:

sudo apt-get install python2-kivypie
sudo ln -sf /usr/bin/python2 /usr/bin/kivy

GroundControl requires pyserial plugin:

sudo pip install pyserial

Xserver and a desktop enviorment are also missing from KivyPie 1.0 install it with:

sudo apt-get install xfce4 xinit x11-apps xclip xsel lxterminal xserver-xorg-video-fbturbo geany

You should now be able to open XFCE desktop with startx from the shell prompt.

Once you are in the desktop start a terminal from the launcher bar and backup and edit the kivy config file.

cd ~/.kivy
cp config.ini config.bak

Use a text editor to edit the file:

geany config.ini

Comment out the touchring module by placing # symbol in front of it and change multisamples=0: #touchring = scale=0.3,alpha=0.7,show_cursor=1
multisamples=0

Save your changes and download or clone GroundControl from git hub.

git clone https://github.com/MaslowCNC/GroundControl.git

From the terminal enter the following to launch GroundControl Be sure to type the command as shown with Caps, etc:

cd ~/GroundControl
KIVY_WINDOW=sdl2 python main.py

GroundControl should start full screen in an X-window border, you should be able to resize and interact now with your mouse or touchpad.

Enjoy,
Jamtek

2 Likes