ErikvanElten
Posts: 3
Joined: Thu Sep 17, 2015 9:46 am

Screen and Kivy

Fri Sep 18, 2015 10:00 am

Who has already managed to get this screen working on a Pi which also runs Kivy? I've spent a lot of time trying but did not have any success so far.
The instructions at http://kivy.org/docs/installation/installation-rpi.html didn't work for me. Kivy did run once, but the Pi crashed big time at the second demo I ran. No response whatsoever so I had to pull the plug and corrupted the SD I had been working on all evening...
I also tried this recipe: http://iluminite.github.io/blog/2014/11 ... pberry-pi/ - didn't work either: it look like Kivy is installed but it won't run (no event).
Another (very interesting!) option is http://kivypie.mitako.eu/ . I have an image which runs great, but this OS (PipaOS, based on Raspbian) does not support the screen...

I'm stuck here. Help. Please.

And enjoy your screen, it's awesome, isn't it?

:-)

User avatar
leol
Posts: 147
Joined: Fri Jan 13, 2012 4:27 pm
Location: Haute-Vienne, France

Re: Screen and Kivy

Fri Sep 18, 2015 2:35 pm

Matt Richardson of this parish has an excellent guide that worked for me:
https://github.com/mrichardson23/rpi-kivy-screen

Leo

ErikvanElten
Posts: 3
Joined: Thu Sep 17, 2015 9:46 am

Re: Screen and Kivy

Fri Sep 18, 2015 3:02 pm

Thanks a lot Leo!

I'll try this tonight. It would save a lot of people a lot of trouble if we would share images like this... If I get this working I'll do just that.

ErikvanElten
Posts: 3
Joined: Thu Sep 17, 2015 9:46 am

Re: Screen and Kivy

Fri Sep 18, 2015 6:53 pm

Bummer. Spent a few hours trying to get this to work, but alas... Cython seems to be the problem.

There must be someone, somewhere who can share a working SD-image that runs Kivy on this thing...

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: Screen and Kivy

Sat Sep 19, 2015 1:07 pm

leol wrote:Matt Richardson of this parish has an excellent guide that worked for me:
https://github.com/mrichardson23/rpi-kivy-screen

Leo
This worked perfectly for me.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

PiGraham
Posts: 3599
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Screen and Kivy

Sat Sep 19, 2015 2:25 pm

leol wrote:Matt Richardson of this parish has an excellent guide that worked for me:
https://github.com/mrichardson23/rpi-kivy-screen

Leo
Worked for me.

AFAIK kivy still doesn't support a mouse cursor. Using it with a touchscreen makes it useful.

jehutting
Posts: 139
Joined: Sun Feb 15, 2015 8:37 am
Location: The Netherlands

Re: Screen and Kivy

Sun Sep 20, 2015 6:13 am

No visible mouse cursor? Try this.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: Screen and Kivy

Sun Sep 20, 2015 7:15 am

Did you correctly edit the /root/.kivy configuration if using sudo to run kivy rather than using the pi one

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

PiGraham
Posts: 3599
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Screen and Kivy

Sun Sep 20, 2015 7:17 am

jehutting wrote:No visible mouse cursor? Try this.
Thanks for that!

peterhoth
Posts: 1
Joined: Sat Oct 03, 2015 10:02 am

Re: Screen and Kivy

Sat Oct 03, 2015 12:40 pm

Hi Guys,

I managed to get Kivy 1.9.1 to run in Raspbian JESSIE with my Raspberry Pi 2 connected to my Panasonic VIERA TH-L42E30S LCD TV (1920 x 1080 Full HD). However when running the kivy showcase example, the screen seems to be partially hidden shown below:

Partial screen hidden 1
Partial screen hidden 2
Partial screen hidden 3

Kivy log shows that it detected the display correctly:
Kivy Log

I have tried playing with the kivy config.ini file in the [graphics] section but it seems that kivy is ignoring the settings as the results are the same.

[graphics]
display = -1
fullscreen = 1
height = 600
left = 300
maxfps = 60
multisamples = 2
position = auto
rotation = 0
show_cursor = 0
top = 0
width = 800
resizable = 0
borderless = 0
window_state = visible
minimum_width = 0
minimum_height = 0

Any suggestions ?

Thanks.
Pete

codetricity
Posts: 9
Joined: Wed Mar 20, 2013 12:21 am

Re: Screen and Kivy

Sun Oct 25, 2015 1:18 am

How is your kivy development going? I'm still having problems getting Kivy to start as a window instead of fullscreen. I also can't get an application to exit with the ESC key.

I've set the .kivy/config.ini file and also inserted code for configuration into the application. No luck so far.

Code: Select all

from kivy.config import Config
Config.set('kivy', 'keyboard_mode', 'system')
Config.set('kivy', 'desktop', 1)
Config.set('kivy', 'exit_on_escape', 1)
Config.set('graphics', 'borderless', 0)
Config.set('graphics', 'show_cursor', 1)
from kivy.app import App
from kivy.uix.widget import Widget
I'm running kivy 1.9.1 on Raspian Jesse on a Raspberry Pi 2. My cython version is 0.23.4

I would like to develop on the Raspberry Pi and test the kivy in a window, using a physical keyboard and mouse. I can run the app and use CTRL-c to cancel the program. If I use the mouse, I can no longer use CTRL-c to interrupt.

The application is reading the config.ini file because I can add the touchring module to the kivy application to show the cursor. However, changing most of the values has no effect.

Do the mouse and keyboard work reliably with Kivy 1.9 on Raspberry Pi

Return to “Official Foundation Display”