-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPi: Autodetect when we are on a Raspberry Pi 4 #6562
Conversation
773522e
to
8a83899
Compare
I'll like to test this with In case |
…tary Broadcom video core drivers, as they are not available on the Raspberry Pi 4
@matham I found another issue, as >>> print(True if '0' else False)
True Instead one should use: unset VIDEOCOREMESA; pip3 install --verbose git+https://github.com/Lauszus/kivy.git@rpi4_auto#egg=kivy I've pushed another commit, so it checks if VIDEOCOREMESA is equal to 1: cef99e4. |
…ly select the mesa drivers: >>> print(True if '0' else False) True
I have now compared FYI here's the Kivy log for [INFO ] Window: Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] GL: Using the "OpenGL" graphics system
[INFO ] GL: Backend used <sdl2>
[INFO ] GL: OpenGL version <b'2.1 Mesa 19.2.0-rc1'>
[INFO ] GL: OpenGL vendor <b'Broadcom'>
[INFO ] GL: OpenGL renderer <b'V3D 4.2'>
[INFO ] GL: OpenGL parsed version: 2, 1
[INFO ] GL: Shading version <b'1.20'>
[INFO ] GL: Texture max size <4096>
[INFO ] GL: Texture max units <16> and [INFO ] Window: Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] GL: Using the "OpenGL ES 2" graphics system
[INFO ] GL: Backend used <sdl2>
[INFO ] GL: OpenGL version <b'2.1 Mesa 19.2.0-rc1'>
[INFO ] GL: OpenGL vendor <b'Broadcom'>
[INFO ] GL: OpenGL renderer <b'V3D 4.2'>
[INFO ] GL: OpenGL parsed version: 2, 1
[INFO ] GL: Shading version <b'1.20'>
[INFO ] GL: Texture max size <4096>
[INFO ] GL: Texture max units <16> From what I can tell from the output it seems like it is always using Mesa, so the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Didn't test, but LGTM, if it's enough to be able to use kivy on the pi4, then i'm all for it, do we need some documentation update btw ? doc/sources/installation/installation-rpi.rst (can be done in a different PR).
@tshirtman yes that is all that is needed. Please see my comment here: #6474 (comment) on how to get it up and running on a Raspberry Pi 4 when using Raspbian Lite, as it needs X. |
Great, merging then, thanks a lot! |
@tshirtman installtion instructions are added in #6568 |
Do NOT use the proprietary Broadcom video core drivers, as they are not available on the Raspberry Pi 4.
I'll also like to update the documentation with my instructions here: #6474 (comment), so new users should be able to get it up and running on a Pi 4 easily :)
For anyone that wants to try this, you can install it like so: