dreemurrs-embedded / Pine64-Arch

:penguin: Arch Linux ARM for your PinePhone/Pro and PineTab/2
686 stars 105 forks source link

Task switcher doesn't work on Plasma Mobile #617

Closed Shatur closed 3 months ago

Shatur commented 3 months ago

Device info (please complete the following information)

Describe the bug Task switching results in black screen. See this issue for details (it even contains a video).

Workaround

It happens because Qt6 not compiled with OpenGL ES 2 support. Devs consider it as a Kwin and expect it to fallback.

As a temporary workaround we can compile qt6-base with -DQT_FEATURE_opengles2=ON like Alpine does.

Diff for the PKGBUILD from ArchLinux ARM:

diff --git a/PKGBUILD b/PKGBUILD
index 0f5076c..058dc5b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -114,6 +114,7 @@ build() {
     -DFEATURE_system_sqlite=ON \
     -DFEATURE_system_xcb_xinput=ON \
     -DQT_FEATURE_sql_ibase=OFF \
+    -DQT_FEATURE_opengles2=ON \
     -DCMAKE_MESSAGE_LOG_LEVEL=STATUS
   cmake --build build
 }

Also @DevinLin (one of the KDE devs) said the following in Matrix:

it will probably have better performance to have that flag enabled for pine devices so i'd heavily recommend building qtbase with it

Before submitting a bug report, please be sure that you have done the following:

Danct12 commented 3 months ago

qt6-base-es2 is now available in repo.

Shatur commented 3 months ago

Closed by 0829f7867acc3d082c16d2244030b0f88a91d8df.