Skip to content

grischdian/kivy-raspbian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

kivy-raspbian

Installing Kivy on Raspberry with Raspbian is a bit tricky. There are some good instructions found online but non of them worked completely. Especially if you have a Raspberry Pi 3B+ and the RaspiLCD combined.

Install Kivy on Raspbian 9.8 (latest updates)

Follow the instructions here on kivy.org to install kivy on Raspbian (Jessie/Stretch)

Just use Step 1 - 3 (This will work but take a bit)

Be aware that you might have to use pip3 instead of pip if you have python 2.7 already installed. Also install Cython without using a version string. Just install latest greatest. To check that run pip --version to see to which folder pip will install the packages.

Maybe considering using not the Master branch, there is also a branch called stable-1.10 if you want to go on a more stable version.

Download example app

Clone the Kivy Git Repo here, go to ./kivy/examples/demo/touchtracer/ and edit the main.py according to the instructions above.

Add at the beginning of your main.py the following

import os
os.environ['KIVY_GL_BACKEND'] = 'gl'
import kivy

Run and fail (to create kivy config.ini)

Run with python3 main.py

Edit kivy Config located in ~/.kivy/config.ini

This File will only exist after the first "failed" run.

[input]
mouse = mouse
device_%(name)s = probesysfs,provider=mtdev
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s = probesysfs,provider=hidinput

Run again without errors

Run with python3 main.py

Autostart your application on raspbian

Copy kivy Script from this repo to /etc/init.d/kivy and adjust the path to your application. Run sudo update-rc.d kivy defaults as root

Reboot

Enjoy!

Support / Contact

Just open an issue ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages