Arm device update issue

after update from

warning: linux-rpi4-rc: ignoring package upgrade (5.12.rc8-1 => 5.15.rc3-1)
warning: linux-rpi4-rc-headers: ignoring package upgrade (5.12.rc8-1 => 5.15.rc3-1)

dvb-t2 signal from tv-hat using mpv play only audio if i try --hwdec=v4l2m2m-copy i have to set --hwdec=no while 5.12 is fine .

The linux-rpi4-mainline and linux-rpi4-rc kernels was broke @2 months ago. They have just now made it back in our repo; but it still is a Work In Progress. I would suggest trying the linux-rpi4 kernel.

1 Like

linux-rpi4

same problem no video on mpv only audio.

archlinux 5.12.0-rc8-1-MANJARO-ARM

is fine.

Not sure why you want to use --hwdec=v4l2m2m-copy with mpv or what has changed why you can not have it on your command line. If you are trying to get gpu hw decoding the only way I know of on the pi4 using a 64bit OS is with a special compiled kodi/player compiled with a special ffmpeg that uses V4L. It will do h.264 and h.265 HW decoding but will never do mpeg2 as the onboard chip is not capable of it.

I played a .mp4 with --hwdec=v4l2m2m-copy and with out and all it did was fallback to SW rendering with no difference with cpu usage.

On 32 bit os one could compile and install ffmpeg-mmal and mpv-rpi from AUR and mpv detects HW decoding automatically. This is not an option on a 64bit Os because of proprietary libs. You need to have a player capable of accessing the chip either like omxplayer which accesses at a lower level or one that will access at a higher level with MMAL.

I have used kodi with tvheadend as a backend in the past to get HW decoding with my satellite system but I have not tried it with the new kodi-rpi package to see how it does. I’m more into iptv these days.

1 Like

Not sure why you want to use --hwdec=v4l2m2m-copy

to keep CPU low

uname -a
Linux archlinux 5.12.0-rc8-1-MANJARO-ARM #1 SMP PREEMPT Mon Apr 19 14:53:34 UTC 2021 aarch64 GNU/Linux
[alarm@archlinux ~]$ pacman -Qi ffmpeg
Name : ffmpeg
Version : 2:4.4-4
Description : Complete solution to record, convert and stream audio and video
Architecture : aarch64
URL : https://ffmpeg.org/
Licenses : GPL3
Groups : None
Provides : libavcodec.so=58-64 libavdevice.so=58-64 libavfilter.so=7-64
libavformat.so=58-64 libavutil.so=56-64 libpostproc.so=55-64
libswresample.so=3-64 libswscale.so=5-64
Depends On : alsa-lib bzip2 fontconfig fribidi gmp gnutls gsm jack lame
libass.so=9-64 libavc1394 libbluray.so=2-64 libdav1d.so=5-64 libdrm
libfreetype.so=6-64 libiec61883 libmodplug libpulse libraw1394
librsvg-2.so=2-64 libsoxr libssh libtheora libva.so=2-64
libva-drm.so=2-64 libva-x11.so=2-64 libvdpau libvidstab.so=1.1-64
libvorbisenc.so=2-64 libvorbis.so=0-64 libvpx.so=6-64 libwebp libx11
libx264.so=161-64 libx265.so=199-64 libxcb libxext libxml2 libxv
libxvidcore.so=4-64 libzimg.so=2-64 opencore-amr openjpeg2 opus sdl2
speex srt v4l-utils xz zlib
Optional Deps : avisynthplus: AviSynthPlus support [installed]
ladspa: LADSPA filters [installed]
Required By : chromaprint chromium ffmpegthumbnailer ffms2 firefox gst-libav
qt5-webengine simplescreenrecorder telegram-desktop tvheadend
vapoursynth
Optional For : libde265 youtube-dl
Conflicts With : None
Replaces : None
Installed Size : 30.09 MiB
Packager : Arch Linux ARM Build System builder+n1@archlinuxarm.org
Build Date : Thu 10 Jun 2021 04:41:23 PM CEST
Install Date : Wed 16 Jun 2021 09:05:16 PM CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

When v4l2m2m-copy is on watching dvb-t2, with mpv, CPU is 80%, when hwdec=no CPU is 135% using hat-tv when video is h264 bitrate 6000kbps (sway wayland with Xwayland)

I have used kodi with tvheadend as a backend in the past to get HW decoding with my satellite system but I have not tried it with the new kodi-rpi package to see how it does. I’m more into iptv these days.

can i watch on kodi in screen 1 and browse on screen 2 at same time?

As what you’re trying to do currently is not possible,

you should currently just live with high CPU usage until upstream has fixed the issue.

Therefore, I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back to your question after your issue has been solved and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

No. The kodi-rpi packages in the repo were not made to run in a DE; it boots up in it’s own environment straight in to kodi when properly set up. Some have run it in the past in a DE but you loose HW decoding.

[Solved] linux-rpi4-udl is now on repo and run with hwdec=v4l2m2m-copy.

[alarm@archlinux ~]$ pacman -Qi linux-rpi4-udl
Name : linux-rpi4-udl
Version : 5.10.44-2
Description : The Linux Kernel and modules - Raspberry Pi 4 64-bit kernel with additional
DVB/ATSC/DVBT modules
Architecture : aarch64
URL : Ray Sherwin / rpi-linux-udl · GitLab

now mainline is fixed

Linux archlinux 5.14.9-1-MANJARO-ARM #1 SMP PREEMPT Fri Oct 1 10:10:07 CDT 2021 aarch64 GNU/Linux

Great! It had been in the repo and accidentally got deleted. I put it back a couple of days ago. I had it there in the first place because I have some extra opensource dvb/atsc/dvbt modules compiled in it that are not provided by upstream. It will also do Spectrum / Blindscan on satellites and terrestrial devices.

There is also a custom companion program called updateDVB that does the before mentioned tasks and from it you can launch mpv to play the stream. You can edit the mpv command line in the Settings. I have no clue if updatedvb will be compatible with your device but you can test and see.

I maintain these specially patched kernels for the pi’s and x86 on my gitlab for a satellite forum I am active in. There also is some extra firmware in the repo but I forgot the name of the package.

I froze it at this version as a backup because after that is where the rpi kernels starting having issues and it has everything the forum kernel does + the extra modules patched in.

My repos:

x86
RPi’s

lost wayland after update

[2021-11-15T15:03:22+0100] [ALPM] upgraded audit (3.0.5-1 → 3.0.6-1)
[2021-11-15T15:03:23+0100] [ALPM] upgraded librsvg (2:2.52.3-1 → 2:2.52.4-1)
[2021-11-15T15:03:23+0100] [ALPM] upgraded pambase (20210605-2 → 20211111-1)
[2021-11-15T15:03:23+0100] [ALPM] upgraded json-c (0.15-1 → 0.15-2)
[2021-11-15T15:03:28+0100] [ALPM] upgraded llvm-libs (12.0.1-5.1 → 13.0.0-3)
[2021-11-15T15:03:32+0100] [ALPM] upgraded libclc (12.0.1-1 → 13.0.0-1)
[2021-11-15T15:03:32+0100] [ALPM] upgraded bleachbit (4.4.1-1 → 4.4.2-1)
[2021-11-15T15:03:34+0100] [ALPM] upgraded compiler-rt (12.0.1-2 → 13.0.0-1)
[2021-11-15T15:03:43+0100] [ALPM] upgraded clang (12.0.1-1 → 13.0.0-2)
[2021-11-15T15:03:44+0100] [ALPM] upgraded dialog (1:1.3_20210621-1 → 1:1.3_20211107-1)
[2021-11-15T15:04:05+0100] [ALPM] upgraded imagemagick (7.1.0.13-1 → 7.1.0.14-1)
[2021-11-15T15:04:06+0100] [ALPM] upgraded kwayland (5.87.0-1 → 5.88.0-1)
[2021-11-15T15:04:07+0100] [ALPM] upgraded kwindowsystem (5.87.0-1 → 5.88.0-1)
[2021-11-15T15:04:07+0100] [ALPM] upgraded postgresql-libs (13.4-1 → 13.4-2)
[2021-11-15T15:04:07+0100] [ALPM] upgraded scdoc (1.11.1-2 → 1.11.2-1)

after downgrade it is back

[2021-11-15T15:15:44+0100] [PACMAN] Running ‘pacman -U /media/alarm/Sandisk7G/pkg/audit-3.0.5-1-aarch64.pkg.tar.xz’
[2021-11-15T15:15:50+0100] [ALPM] transaction started
[2021-11-15T15:15:50+0100] [ALPM] downgraded audit (3.0.6-1 → 3.0.5-1)
[2021-11-15T15:15:50+0100] [ALPM] transaction completed
[2021-11-15T15:15:50+0100] [ALPM] running ‘30-systemd-daemon-reload.hook’…
[2021-11-15T15:15:51+0100] [ALPM] running ‘30-systemd-update.hook’…
[2021-11-15T15:15:51+0100] [ALPM] running ‘rebuild-detector.hook’…
[2021-11-15T15:18:20+0100] [PACMAN] Running ‘pacman -U /media/alarm/Sandisk7G/pkg/llvm-libs-12.0.1-5.1-aarch64.pkg.tar.xz’
[2021-11-15T15:18:24+0100] [ALPM] transaction started
[2021-11-15T15:18:28+0100] [ALPM] downgraded llvm-libs (13.0.0-3 → 12.0.1-5.1)
[2021-11-15T15:18:28+0100] [ALPM] transaction completed
[2021-11-15T15:18:28+0100] [ALPM] running ‘30-systemd-update.hook’…
[2021-11-15T15:18:28+0100] [ALPM] running ‘rebuild-detector.hook’…
[2021-11-15T15:19:50+0100] [PACMAN] Running ‘pacman -U /media/alarm/Sandisk7G/pkg/libclc-12.0.1-1-any.pkg.tar.xz’
[2021-11-15T15:19:54+0100] [ALPM] transaction started
[2021-11-15T15:19:56+0100] [ALPM] downgraded libclc (13.0.0-1 → 12.0.1-1)
[2021-11-15T15:19:59+0100] [ALPM] transaction completed
[2021-11-15T15:19:59+0100] [ALPM] running ‘30-systemd-update.hook’…
[2021-11-15T15:19:59+0100] [ALPM] running ‘rebuild-detector.hook’…
[2021-11-15T15:21:25+0100] [PACMAN] Running ‘pacman -U /media/alarm/Sandisk7G/pkg/kwayland-5.87.0-1-aarch64.pkg.tar.xz’
[2021-11-15T15:21:29+0100] [ALPM] transaction started
[2021-11-15T15:21:30+0100] [ALPM] downgraded kwayland (5.88.0-1 → 5.87.0-1)
[2021-11-15T15:21:31+0100] [ALPM] transaction completed
[2021-11-15T15:21:31+0100] [ALPM] running ‘30-systemd-update.hook’…
[2021-11-15T15:21:31+0100] [ALPM] running ‘rebuild-detector.hook’…
[2021-11-15T15:22:17+0100] [PACMAN] Running ‘pacman -U /media/alarm/Sandisk7G/pkg/kwindowsystem-5.87.0-1-aarch64.pkg.tar.xz’
[2021-11-15T15:22:19+0100] [ALPM] transaction started
[2021-11-15T15:22:19+0100] [ALPM] downgraded kwindowsystem (5.88.0-1 → 5.87.0-1)
[2021-11-15T15:22:20+0100] [ALPM] transaction completed
[2021-11-15T15:22:20+0100] [ALPM] running ‘30-systemd-update.hook’…
[2021-11-15T15:22:20+0100] [ALPM] running ‘rebuild-detector.hook’…
[2021-11-15T15:23:23+0100] [PACMAN] Running ‘pacman -U /media/alarm/Sandisk7G/pkg/scdoc-1.11.1-2-aarch64.pkg.tar.xz’
[2021-11-15T15:23:24+0100] [ALPM] transaction started
[2021-11-15T15:23:24+0100] [ALPM] downgraded scdoc (1.11.2-1 → 1.11.1-2)
[2021-11-15T15:23:25+0100] [ALPM] transaction completed
[2021-11-15T15:23:25+0100] [ALPM] running ‘30-systemd-update.hook’…
[2021-11-15T15:23:25+0100] [ALPM] running ‘rebuild-detector.hook’…

Some package is not in my pkg, can you tell me wich package i hav --ignorepkg in pacman.conf to not break wayland sway wm?

Name : wayland
Version : 1.19.0-2.1
Description : A computer display server protocol
Architecture : aarch64
URL : https://wayland.freedesktop.org/
Licenses : MIT
Groups : None
Provides : None
Depends On : glibc libffi expat libxml2
Optional Deps : None
Required By : dmenu-wayland-git dunst egl-wayland foot glfw-wayland gst-plugins-bad gtk3 libva
libva1 mako mesa-git swaybg vulkan-tools wdisplays
Optional For : libxkbcommon
Conflicts With : None
Replaces : None
Installed Size : 756.91 KiB
Packager : Arch Linux ARM Build System builder+n1@archlinuxarm.org
Build Date : Wed 20 Oct 2021 09:01:02 PM CEST
Install Date : Fri 22 Oct 2021 11:59:14 AM CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

Linux archlinux 5.10.46-2-udlv8+ #1 SMP PREEMPT Sat Oct 9 18:08:21 CDT 2021 aarch64 GNU/Linux

You are running an Arch kernel. Why are you posting in our forum?

Also, the update should have contained many more packages than what you mentioned. Especially the KDE frameworks ones.

pacman -Ss rpi4
core/linux-rpi4 5.10.78-1
The Linux Kernel and modules - Raspberry Pi 4 64-bit kernel
core/linux-rpi4-headers 5.10.78-1
Header files and scripts for building modules for linux kernel - Raspberry Pi 4 64-bit kernel
core/linux-rpi4-mainline 5.15.1-1
The Linux Kernel and modules - Raspberry Pi 4 64-bit kernel
core/linux-rpi4-mainline-headers 5.15.1-1
Header files and scripts for building modules for linux kernel - Raspberry Pi 4 64-bit kernel
core/linux-rpi4-rc 5.15.rc7-1
The Linux Kernel and modules - Raspberry Pi 4 64-bit kernel
core/linux-rpi4-rc-headers 5.15.rc7-1
Header files and scripts for building modules for linux kernel - Raspberry Pi 4 64-bit kernel
community/linux-rpi4-udl 5.10.44-2 [installed]
The Linux Kernel and modules - Raspberry Pi 4 64-bit kernel with additional DVB/ATSC/DVBT modules
community/linux-rpi4-udl-headers 5.10.44-2 [installed]
Header files and scripts for building modules for linux kernel - Raspberry Pi 4 64-bit kernel with additional DVB/ATSC/DVBT
modules
community/rpi4-post-install 20211014-1
Manjaro ARM’s Raspberry Pi 4 post install script

Ah, it’s the UDL specific kernel from @Darksky . He might have a better idea what’s going on.

But make sure your system is completely up to date.

I have no clue why wayland would be broke. The kernel is the same, just has more dvb modules enabled.

I still think it could be because the system did not get completely updated, making it a mix of 5.87 and 5.88 frameworks packages.

to downgrade kwayland and kwindowsystem is not enough i have to downgrade others packages to run sway from .bash_profile, after installing latest

linux-rpi4-rc Version : 5.15.rc7-1 (but there is the same problem
with Linux archlinux 5.12.0-rc8-1-MANJARO-ARM and linux-rpi4-udl)

, display manager is not installed, autologin is non graphic and sway start (.bash_profile), in pi4 2G and pi4 4G is the same.

sudo pacman -U /media/alarm/Sandisk7G/pkg/audit-3.0.5-1-aarch64.pkg.tar.xz
sudo pacman -U /media/alarm/Sandisk7G/pkg/llvm-libs-12.0.1-5.1-aarch64.pkg.tar.xz
sudo pacman -U /media/alarm/Sandisk7G/pkg/libclc-12.0.1-1-any.pkg.tar.xz
sudo pacman -U /media/alarm/Sandisk7G/pkg/kwayland-5.87.0-1-aarch64.pkg.tar.xz
sudo pacman -U /media/alarm/Sandisk7G/pkg/kwindowsystem-5.87.0-1-aarch64.pkg.tar.xz
sudo pacman -U /media/alarm/Sandisk7G/pkg/scdoc-1.11.1-2-aarch64.pkg.tar.xz

pacman -Qs wayland

local/dmenu-wayland-git 4.2.1.r51.304c8e9-1
Wayland port of a generic menu for X
local/dwl-git 0.2.1.r31.d4e08c0-1
Simple, hackable dynamic tiling Wayland compositor (dwm for Wayland)
local/egl-wayland 1:1.1.9+2+gdaab854-1
EGLStream-based Wayland external platform
local/foot 1.7.2-3
Wayland terminal emulator - fast, lightweight and minimalistic
local/glfw-wayland 3.3.5-1
A free, open source, portable framework for graphical application development (wayland)
local/kwayland 5.87.0-1 (kf5)
Qt-style Client and Server library wrapper for the Wayland libraries
local/libva 2.12.0-0.1
Video Acceleration (VA) API for Linux
local/libva1 1.8.3-3
Video Acceleration (VA) API for Linux
local/mako 1.6-1
Lightweight notification daemon for Wayland
local/qt5-wayland 5.15.2+kde+r36-1 (qt qt5)
Provides APIs for Wayland
local/sway 1:1.6.1-2
Tiling Wayland compositor and replacement for the i3 window manager
local/swaybg 1.1-1
Wallpaper tool for Wayland compositors
local/wayland 1.19.0-2.1
A computer display server protocol
local/wayland-protocols 1.23-1
Specifications of extended Wayland protocols
local/wlroots 0.14.1-2
Modular Wayland compositor library
local/xorg-xwayland 21.1.3-1 (xorg)
run X clients under wayland

P.S. dwl is installed, i plan to try it, but at the moment sway is my first choice.

installing 1 package at time, there is 1 pkg that makes troubles

Repository : extra
Name : llvm-libs
Version : 13.0.0-3
Description : LLVM runtime libraries
Architecture : aarch64

watching tv on Pi 4 (tv-hat dvb-t2) with hwdec=v4l2m2m-copy on bottom there are squares is a regression probably,

llvm-libs-12.0.1-5.1-aarch64.pkg.tar.xz
after downgrade, sway is ok.

Name : llvm-libs
Version : 13.0.0-3
Description : LLVM runtime libraries
Architecture : aarch64
URL : https://llvm.org/
after Syu with pacman the problem is gone now i have llvm-libs updated and sway start without problems

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.