PINE64
Trying to port an app on Plasma Mobile and Mobian: black screen - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: Trying to port an app on Plasma Mobile and Mobian: black screen (/showthread.php?tid=12999)



Trying to port an app on Plasma Mobile and Mobian: black screen - Goffi - 02-05-2021

Hello,

I'm not sure if I'm at the right place to ask for help, please let me know if an other location is better suited.

I'm trying to port my XMPP client to FOSS mobiles on the Pinephone (currently Plasma Mobile and Mobian). It uses Kivy framework which supports Wayland and uses a SDL2 backend.

I can build and launch it, but I have only a black screen. I have the same result with official example, here is some logs I have with an example application:

Code:
$ python carousel_buttons.py
[INFO   ] [Logger      ] Record log in /home/mobian/.kivy/logs/kivy_21-02-05_15.txt
[INFO   ] [Kivy        ] v2.1.0.dev0
[INFO   ] [Kivy        ] Installed at "/home/mobian/venv/sat/lib/python3.9/site-packages/Kivy-2.1.0.dev0-py3.9-linux-aarch64.egg/kivy/__init__.py"
[INFO   ] [Python      ] v3.9.1+ (default, Jan 20 2021, 14:49:22)
[GCC 10.2.1 20210110]
[INFO   ] [Python      ] Interpreter at "/home/mobian/venv/sat/bin/python"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 187 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mobian/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mobian/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mobian/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mobian/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mobian/.drirc: No such file or directory.
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'2.1 Mesa 20.3.3'>
[INFO   ] [GL          ] OpenGL vendor <b'lima'>
[INFO   ] [GL          ] OpenGL renderer <b'Mali400'>
[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>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event2
[INFO   ] [MTD         ] Read event from </dev/input/event2>
[INFO   ] [Base        ] Start application main loop
[INFO   ] [MTD         ] </dev/input/event2> range position X is 0 - 719
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [MTD         ] </dev/input/event2> range position Y is 0 - 1439
[INFO   ] [MTD         ] </dev/input/event2> range touch major is 0 - 255
[INFO   ] [MTD         ] </dev/input/event2> range touch minor is 0 - 0
[INFO   ] [MTD         ] </dev/input/event2> range pressure is 0 - 255
[INFO   ] [MTD         ] </dev/input/event2> axes invertion: X is 0, Y is 0
[INFO   ] [MTD         ] </dev/input/event2> rotation set to 0

I've tried to ask on Kivy mailing list without success. Can anybody help here?

Thanks!


RE: Trying to port an app on Plasma Mobile and Mobian: black screen - nas - 02-05-2021

A quick search says missing mesa dri drivers so as a non-technical person, I would try installing libgl1-mesa-dri.


RE: Trying to port an app on Plasma Mobile and Mobian: black screen - Goffi - 02-05-2021

(02-05-2021, 12:19 PM)nas Wrote: A quick search says missing mesa dri drivers so as a non-technical person, I would try installing libgl1-mesa-dri.

Thanks for feedback, but it was already installed.

I've been running successfuly the app using x11 backend, I'm not sure why it's now working when it was not before, as I've activated many options (I think `use_opengl_es2` is the one which was missing). Anyway it would be better to have it working directly with Wayland.

Now I have an other issue with Kivy virtual keyword way too small to be usable, and the Mobian virtual keyboard which is not detecting input, and when I open it manually the focus is lost.