Archlinux on Rock5b

Another great news is, now with Kodi-mpp on Wayland it is possible to render 10bit HDR content directly. I have also tested 4K HDR content in kodi with youtube addon, it works flawlessly, colors are washed out because i do not have an HDR screen, someone with better equipment can enjoy it…

Mesa has implemented this feature lately in to the mainline, you can test it out with mesa-panvk-git package. Soon it will be a part of main mesa package…

Before this it was only possible to get true HDR with GBM mode when rendering was direct to plane. Now it should be possible in all EGL based video rendering options, (possibly includes mpv when it works…)

3 Likes

I have the problem to compile kodi-mpp-git with agr.
Can you please add the binary to the 7ji repository.
Thanks in advance.
Uli

Thanks for the upload.
Regards
Uli

What can I do?
Last agr update of mesa-panvk-git went wrong.
[beling@alarm ~]$ pamac-manager

(pamac-manager:74769): Gtk-WARNING **: 14:12:18.279: Unknown key gtk-modules in /home/beling/.config/gtk-4.0/settings.ini
WARNING: panvk is not a conformant Vulkan implementation, testing use only.
**
Same with binary fro 7ji repo.

Regards
Uli

What is the problem?

Pamac-manager does not start on Plasma-Display .This error message on console .I doe not know if other programs are also affected.
Prior version on agr was working o.k
[beling@alarm ~]$ vkcube
Selected WSI platform: xcb
WARNING: panvk is not a conformant Vulkan implementation, testing use only.
Selected GPU 0: Mali-G610 (Panfrost), type: IntegratedGpu
[be
Standard Mesa works.
Will Panfork work with kernel 6.1.75?

panvk is built from master branch of mesa, it can break anytime and be fixed anytime as well. you can revert back to normal mesa until it gets fixed.

Thanks. I have done that before.
Just to let you know which problem your agr update has.
Thanks for your work.
What about panfork ?
Will you work for the new orion?
I have orderd one.

1 Like

what about panfork? i think it is working no? i just maintain it for the sake of history, but havent used it for a good while.

I am out of orion thing, i just dont have the time, but can support if i can.

So i created a binary repo out of the packages i maintain. It is currently unsigned repo. You can use it by adding the following snippet in the /etc/pacman.conf

[boogie]
Server = https://github.com/hbiyik/agrrepo/releases/download/alarm-$arch
SigLevel = Never

It is built automatically each 4 hours of the day so quite up to date. Here is a list of packages maintain: https://github.com/hbiyik/agrrepo/releases/tag/alarm-aarch64

You can still use 7ji's repo, the packages are auto maintained in both repos. Just my repo has more media centric packages like kodi-binary-addons or firefox-mpp or acestream etc…

1 Like

Just a side note: With Bauh acu -y install bauh it gets really easy to see whats in that repo and what we can install.

Hi, I installed Arch Arm using kwankiu’s script. I picked the “recommended” kernel (now have 6.1.75-rockchip-ge21cf49ee9a4-dirty), and have gnome wayland. I installed chromium-mpp from acu (I believe it uses 7Ji’s repo).
I upgraded (pacman -Syu); is this recommended, or does this interfere with acu?
I also installed firefox-mpp from boogie’s repo.
Firefox does not play youtube videos; the player never really starts, just stucks. Chromium does play 4k 30fps from youtube reasonably, but there is like 600% cpu use (according to btop). At 60fps it struggles.

The guide at the start of this forum is from 2023, and a lot may have changed since. Is there an uptodate wiki I could follow to make the hardware accelerated video playback work properly?

I believe I have Panthor now, but not convinced that it is working properly.

inxi -G
Graphics:
  Device-1: display-subsystem driver: rockchip_drm v: N/A
  Device-2: rk3588-mali driver: panthor v: kernel
  Device-3: rk3588-dw-hdmi driver: dwhdmi_rockchip v: N/A
  Device-4: rk3588-dw-hdmi driver: dwhdmi_rockchip v: N/A
  Display: wayland server: Xwayland v: 24.1.6 compositor: gnome-shell
    v: 48.0 driver: N/A resolution: no compositor data resolution: 1: 3840x2160
    2: 1600x1200
  API: EGL v: 1.5 drivers: panthor,rknpu,rockchip,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.5 compat-v: 3.1 vendor: mesa v: 25.0.2-arch1.2
    renderer: Mali-G610 (Panfrost)
  Info: Tools: api: eglinfo,glxinfo x11: xprop

So kernel + overlay? + mesa + driver + firmware? + blob? all have to align for the accelerated video to properly work, applications may also need to be patched properly (e.g. firefox vs firefox-mpp). What are the good combos for each driver? I believe there are three possible drivers: the closed source driver from Mali (libmali?), open source Panfrost, and open source Panthor, which is collabora’s contribution. Or which one do you recommend?

Cheers

make sure you have firefox-137-3. 137-1/2 had issues

and mpp-git 1.0.9

Also its available now on flathub too - Mainline with no HW Steroids

Thats mainline firefox it wont use mpp acceleration

1 Like

pacman -Syu is the right way

is chrome://gpu showing video decoding as software or hardware?

Ok, its good. (When I tried upgrading radxa’s debian for the 5b with the relevant apt command, I caused a total disaster and lost network. Apparently I purged some network driver that looked to apt as an orphan package…)

Chromium shows software:

chrome://gpu:

Graphics Feature Status
    =======================
    *   Canvas: Hardware accelerated
    *   Canvas out-of-process rasterization: Enabled
    *   Direct Rendering Display Compositor: Disabled
    *   Compositing: Hardware accelerated
    *   Multiple Raster Threads: Enabled
    *   OpenGL: Enabled
    *   Rasterization: Hardware accelerated
    *   Raw Draw: Disabled
    *   Skia Graphite: Disabled
    *   Video Decode: Software only. Hardware acceleration disabled
    *   Video Encode: Software only. Hardware acceleration disabled
    *   Vulkan: Disabled
    *   WebGL: Hardware accelerated
    *   WebGL2: Hardware accelerated
    *   WebGPU: Disabled
    *   WebNN: Disabled
...

I have the mpp version of chromium installed:

pacman -Ss chromium
...
7Ji/chromium-mpp 132.0.6834.159-1 [installed]
    A web browser built for speed, simplicity, and security. Patched with Rockchip MPP support.
7Ji/libv4l-rkmpp-git 1.8.0.r1.5e73fca-1 [installed]
    A rockchip-mpp V4L2 wrapper plugin for chromium V4L2 VDA/VEA, latest from git
boogie/libv4l-rkmpp-git 1.8.0.r1.5e73fca-1 [installed]
    A rockchip-mpp V4L2 wrapper plugin for chromium V4L2 VDA/VEA, latest from git

And I do not have any flags. (I do not have ‘chromium-flags.conf’ file)

On x64 platform with an amd gpu I could use ‘vainfo’ to show hardware video acceleration capabilities. Is there any equivalent command for mali on arm?

If you upgrade to kernel 6.1.75 and stay with mesa-panfork you’ll have only software-rendering. What mesa-driver gives hardware acceleration in Wayland?

You can use default mesa package, or you can use mesa-panvk-git, your kernel should enable panthor instead of mali ddk, or you should be able to switch with a än overlay if kernel does not default to panthor

Dear boogiepop,
thank you for your answer!
The 6.1 kernel I tried:
linux-aarch64-rockchip-bsp6.1-joshua-git
The default mesa package should be this one:
mesa 1:25.1.1-2
Alternative driver:
mesa-panvk-git

The problem is:
My default driver with kernel 5.10 is mesa-panfork-git, which works very well.
I would line to update to kernel 6.xx because it fixes some important hardware issues for me. But I need hardware acceleration :wink:
With panvk-git I’m not able to get hardware acceleration, it’s always software renderer LLVM ( Xfce, X11) and can’t start Wayland session with Xfce 4.20 (which works with kernel 5.10 and hardware acceleration, quite well, I know xfwm4 isn’t supported yet in Wayland)
If I install the default mesa driver, pacman deinstalls the panvk - after a reboot I can’t see the desktop screen, so there’re missing/wrong packages… :wink:

Is there anything I missed concerning the packages (lib,…) what I could try? The best option as I read would stay on the main mesa driver. I would love to get this driver working, but don’t know how.
Is the main line mesa driver compatible to 6.1.75 & X11?