viktorgino / headunit-desktop

HeadUnit Desktop is a car PC software built with Qt 5 and QML
https://github.com/viktorgino/headunit-desktop/wiki
GNU General Public License v3.0
284 stars 64 forks source link

Support for official Raspberry Pi Touch Display #14

Closed suhrmann closed 5 years ago

suhrmann commented 6 years ago

I connected the 7" Raspberry Pi Touch Display and am using the latest headuni image (image_2017-08-17-Raspbian-viktorginos-headunit-lite.zip) as is with the changes from Setting up the PI: Setup the WiFi, Rotate the screen, Increase the GPU memory and Enable SSH.

After apt-get update && apt-get upgrade I started the headunit successfuly!

xinit

But the touchscreen-input doesn't work properly. It rarely recognizes touch-input - but if it does, the input is correct. I assume the error is linked to the log entries

InputFactory: Input device: "auto"
InputFactory: No valid device found use Null device instead.

Full log on pastebin.

OpenGL

Trying to launch it with OpenGL gives the error

QXcbConnection: Could not connect to display

Full log on pastebin.

suhrmann commented 6 years ago

I found the reason and the solution for the input-problems with xinit After removing lcd_rotate=2 from the config the headunit works 🎉

viktorgino commented 6 years ago

if you run it with QT_QPA_PLATFORM=eglfs /opt/headunit-desktop/headunit-app it runs with the VC4 driver

viktorgino commented 6 years ago

you can make it permanent by changing it in /etc/environment

viktorgino commented 6 years ago
InputFactory: Input device: "auto"
InputFactory: No valid device found use Null device instead.

is from welle.io :). I'll look into trying to tag debug messages, it does get confusing sometimes

suhrmann commented 6 years ago

Even with using the VC4 drivers, the display stays black. And the screen ration is wrong (except it's the hu-content ratio). If I don't add sudo the screen stays black as well and the device (AA) isn't recognized. Log