Patched version doesn't work when i try on adreno 840 chroot debian 13
Hi,
I've followed the instructions on how to install the mesa-for-android-container_26.2.0-devel-20260511_debian_trixie_arm64.tar.gz / turnip_26.2.0-devel-20260511_debian_trixie_arm64.tar.gz. I have a setup termux-x11 + termux:x11 app to access the desktop. I had XFCE4 installed and workin before. However, after installing the new MESA, the screen is blank and only the mouse appears.
The log when I start xfce from Debian is:
arthur@localhost:~$ startxfce4
/usr/bin/startxfce4: X server already running on display :0
"The XKEYBOARD keymap compiler (xkbcomp) reports:"
"> "Warning: Multiple symbols for level 1/group 1 on key <FK23>
"> " Using F23, ignoring XF86TouchpadOff
"> "Warning: Symbol map for key <FK23> redefined
"> " Using last definition for conflicting fields
"> "Warning: Symbol map for key <FK24> redefined
"> " Using last definition for conflicting fields
"Errors from xkbcomp are not fatal to the X server"
MESA-LOADER: failed to retrieve device information
MESA: error: kgsl_pipe_get_param:103: invalid param id: 13
(xfce4-session:20757): libxfce4util-WARNING **: 00:21:27.992: Failed to get a systemd proxy: Could not connect: No such file or directory
** Message: 00:21:27.997: Failed to fetch _NET_NUMBER_OF_DESKTOPS; assuming 1
** Message: 00:21:27.997: Failed to get _NET_WORKAREA; using full screen dimensions
** Message: 00:21:27.997: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
** Message: 00:21:27.997: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
(xfce4-session:20757): xfce4-session-WARNING **: 00:21:28.001: No SSH authentication agent found
** Message: 00:21:28.120: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
MESA-LOADER: failed to retrieve device information
MESA: error: kgsl_pipe_get_param:103: invalid param id: 13
(xfce4-session:20757): xfce4-session-WARNING **: 00:21:28.485: Unable to launch "blueman-applet" (specified by autostart/blueman.desktop): Failed to execute child process ?blueman-applet? (No such file or directory)
(xfce4-session:20757): xfce4-session-WARNING **: 00:21:28.492: Unable to launch "/usr/libexec/evolution-data-server/evolution-alarm-notify" (specified by autostart/org.gnome.Evolution-alarm-notify.desktop): Failed to execute child process ?/usr/libexec/evolution-data-server/evolution-alarm-notify? (No such file or directory)
Failure: Module initialization failed
** (xiccd:20984): CRITICAL **: 00:21:28.507: Failed to connect to colord: Could not connect: No such file or directory
** (light-locker:20973): ERROR **: 00:21:28.515: session_id is not set, is /proc mounted with hidepid>0?
(polkit-mate-authentication-agent-1:21008): polkit-mate-1-WARNING **: 00:21:28.522: Error getting authority: Error initializing authority: Could not connect: No such file or directory
(xfdesktop:20953): GVFS-RemoteVolumeMonitor-WARNING **: 00:21:28.597: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
** (xfdesktop:20953): WARNING **: 00:21:28.877: Failed to get system bus: Could not connect: No such file or directory
If I press ctrl-c, I get some selinux error, which is funny because I set SELINUX to permissive vefore starting debian:
^C
arthur@localhost:~$ 2 XSELINUXs still allocated at reset
SCREEN: 0 objects of 304 bytes = 0 total bytes 0 private allocs
DEVICE: 0 objects of 32 bytes = 0 total bytes 0 private allocs
CLIENT: 0 objects of 136 bytes = 0 total bytes 0 private allocs
WINDOW: 0 objects of 48 bytes = 0 total bytes 0 private allocs
PIXMAP: 1 objects of 16 bytes = 16 total bytes 0 private allocs
GC: 0 objects of 16 bytes = 0 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
SYNC_FENCE: 0 objects of 16 bytes = 0 total bytes 0 private allocs
TOTAL: 1 objects, 16 bytes, 0 allocs
1 PIXMAPs still allocated at reset
PIXMAP: 1 objects of 16 bytes = 16 total bytes 0 private allocs
GC: 0 objects of 16 bytes = 0 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
SYNC_FENCE: 0 objects of 16 bytes = 0 total bytes 0 private allocs
TOTAL: 1 objects, 16 bytes, 0 allocs
1 PICTUREs still allocated at reset
SYNC_FENCE: 0 objects of 16 bytes = 0 total bytes 0 private allocs
TOTAL: 0 objects, 0 bytes, 0 allocs
"The XKEYBOARD keymap compiler (xkbcomp) reports:"
"> "Warning: Multiple symbols for level 1/group 1 on key <FK23>
"> " Using F23, ignoring XF86TouchpadOff
"> "Warning: Symbol map for key <FK23> redefined
"> " Using last definition for conflicting fields
"> "Warning: Symbol map for key <FK24> redefined
"> " Using last definition for conflicting fields
"Errors from xkbcomp are not fatal to the X server"
My system is:
arthur@localhost:~$ fastfetch
_,met$$$$$gg. arthur@localhost
,g$$$$$$$$$$$$$$$P. ----------------
,g$$P"" """Y$$.". OS: Debian GNU/Linux 13 (trixie) aarch64
,$$P' `$$$. Host: Qualcomm Technologies, Inc. Myron based on SM8850
',$$P ,ggs. `$$b: Kernel: Linux 6.12.23-android16-5-g5a0e85dd9db0-ab14499855-4k$$' ,$P"' . $$$
$$P d$' , $$P Uptime: 1 hour, 5 mins
$$: $$. - ,d$$' Packages: 1333 (dpkg)
$$; Y$b._ _,d$P' Shell: bash 5.2.37
Y$$. `.`"Y$$$$P"' Display (builtin): 1200x2464 @ 120 Hz
`$$b "-.__ Cursor: Adwaita
`Y$$b Terminal: com.termux `Y$$. CPU: canoe (8) @ 4.61 GHz
"The XKEYBOARD keymap compiler (xkbcomp) reports:"
"> "Warning: Multiple symbols for level 1/group 1 on key <FK23>
"> " Using F23, ignoring XF86TouchpadOff
"> "Warning: Symbol map for key <FK23> redefined
"> " Using last definition for conflicting fields
"> "Warning: Symbol map for key <FK24> redefined
"> " Using last definition for conflicting fields
"Errors from xkbcomp are not fatal to the X server"
GPU: Qualcomm Adreno (TM) 840 [Integrated]
Memory: 7.26 GiB / 14.65 GiB (50%)
Swap: 2.06 GiB / 16.00 GiB (13%)
Disk (/tmp): 65.71 GiB / 476.24 GiB (14%) - f2fs
Local IP (wlan0): 192.168.179.19/24
Battery (P11U_6500mah_100w): 52% [Charging, AC Connected]
Locale: C
The mesa driver version is aligned with the expected version from the installation:
arthur@localhost:~$ glxinfo -B
name of display: :0
MESA-LOADER: failed to retrieve device information
MESA: error: kgsl_pipe_get_param:103: invalid param id: 13
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: freedreno (0x5143)
Device: Adreno (TM) 840 (0xffffffff)
Version: 26.2.0
Accelerated: yes
Video memory: 15003MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 15003 MB, largest block: 15003 MB
VBO free aux. memory - total: 0 MB, largest block: 0 MB
Texture free memory - total: 15003 MB, largest block: 15003 MB
Texture free aux. memory - total: 0 MB, largest block: 0 MB
Renderbuffer free memory - total: 15003 MB, largest block: 15003 MB
Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 15003 MB
Total available memory: 15003 MB
Currently available dedicated video memory: 15003 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 840
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-3743cc80a8)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-3743cc80a8)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-3743cc80a8)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Is it possible that I messed up during installation? Or do you think installing the unlatched version would help?
I am not very familiar with Termux, so sorry if this is a silly question.
Thanks a lot for the attention!
Sorry for replying so late, I was busy with other things lately.
First, you can check whether xfce4's display compositor is turned off. Similar to KDE Plasma, if you need to use Freedreno to enable hardware acceleration for xfce4, it is best to turn off the display compositor.
You can first use the following command to start xfce4 via software rendering:
export MESA_LOADER_DRIVER_OVERRIDE=llvmpipe
startxfce4
Then turn off the display compositor in the settings, with the following steps:
- Open the Settings
- Hover over Settings and then click on Window Manager Tweaks.
- Switch to the Compositor Tab
- In the Window Manager Tweaks window, click on the last tab named Compositor.
- Disable Compositing
- Uncheck the box that says Enable display compositing.
- Apply and Close
- The visual effects (like window shadows and transparency) will disappear immediately.
After turning it off, restart the Chroot container, and use the following command to start xfce4 with hardware acceleration:
export MESA_LOADER_DRIVER_OVERRIDE=kgsl
startxfce4
Hi! No problems at all, thanks for the reply and instructions. I followed the stepsnto enable software rendering on xfce but I still get a blank screen (only mouse is remdered). Below is the log from the terminal:
arthur@localhost:~$ export DISPLAY=:0
arthur@localhost:~$ export PULSE_SERVER=127.0.0.1
arthur@localhost:~$ export MESA_LOADER_DRIVER_OVERRIDE=llvmpipe
arthur@localhost:~$ startxfce4
/usr/bin/startxfce4: X server already running on display :0
"The XKEYBOARD keymap compiler (xkbcomp) reports:"
"> "Warning: Multiple symbols for level 1/group 1 on key <FK23>
"> " Using F23, ignoring XF86TouchpadOff
"> "Warning: Symbol map for key <FK23> redefined
"> " Using last definition for conflicting fields "> "Warning: Symbol map for key <FK24> redefined
"> " Using last definition for conflicting fields
"Errors from xkbcomp are not fatal to the X server"
(xfce4-session:26819): libxfce4util-WARNING **: 22:01:59.585: Failed to get a systemd proxy: Could not connect: No such file or directory
** Message: 22:01:59.591: Failed to fetch _NET_NUMBER_OF_DESKTOPS; assuming 1 ** Message: 22:01:59.591: Failed to get _NET_WORKAREA; using full screen dimensions
** Message: 22:01:59.591: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
** Message: 22:01:59.591: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
(xfce4-session:26819): xfce4-session-WARNING **: 22:01:59.594: No SSH authentication agent found
** Message: 22:01:59.669: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
(xfce4-session:26819): xfce4-session-WARNING **: 22:02:00.050: Unable to launch "blueman-applet" (specified by autostart/blueman.desktop): Failed to execute child process ?blueman-applet? (No such file or directory)
(xfce4-session:26819): xfce4-session-WARNING **: 22:02:00.060: Unable to launch "/usr/libexec/evolution-data-server/evolution-alarm-notify" (specified by autostart/org.gnome.Evolution-alarm-notify.desktop): Failed to execute child process ?/usr/libexec/evolution-data-server/evolution-alarm-notify? (No such file or directory)
** (xiccd:26953): CRITICAL **: 22:02:00.068: Failed to connect to colord: Could not connect: No such file or directory
Failure: Module initialization failed
** (light-locker:26948): ERROR **: 22:02:00.080: session_id is not set, is /proc mounted with hidepid>0?
(polkit-mate-authentication-agent-1:26977): polkit-mate-1-WARNING **: 22:02:00.090: Error getting authority: Error initializing authority: Could not connect: No such file or directory
(xfdesktop:26933): GVFS-RemoteVolumeMonitor-WARNING **: 22:02:00.161: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
** (xfdesktop:26933): WARNING **: 22:02:00.421: Failed to get system bus: Could not connect: No such file or directory
Let me know if I can take any firther loga or info. And thanks for the great work!
I am not sure if the issue is resolved, but you can try the latest version of the driver now, and perform a basic test in the following order before starting the desktop:
sudo apt-mark hold libegl-mesa0 libgbm1 libgl1-mesa-dri libglx-mesa0 mesa-libgallium mesa-vulkan-drivers
sudo apt install -y glmark2-x11 glmark2-es2-x11 vkmark
export MESA_LOADER_DRIVER_OVERRIDE=kgsl TURNIP_KMD=kgsl
glmark2
glmark2-es2
vkmark --winsys xcb
Hi! Just to inform that the issue is solved with the latest version of the drivers and the three first lines of the commands you mentioned! Now my XFCE fires up with image again 😄 but for me the commang glmark2 says that the renderer is llvmpipe, which I am not entirely sure if it means the drivers are working, also the score on glmark2 is quite low. The error is:
MESA: error: ZINK: failed to choose pdev
Which project are you using to run the Chroot container? Some projects have very poor support for Termux:X11 and GPU acceleration.