I started a new thread for the new RPi kernels and support/issues as the old one was just getting too big to scroll through.
The latest linux-rpi4-mainline and linux-rpi4-rc packages has been pushed to the unstable branch when the mirrors sync.
I decided to go ahead and push these to the repo as they seem to be getting close with stability. Having all sound devices to appear including headphones you still have to make a config change in /boot/cmdline.txt when switching between fkm and kms in config.txt.
My cmdline.txt will be a little different as I disabled the bootsplash so I can see the messages with plymouth and removal of quiet and I think splash. console=tty1 could be different also. I just want to see what is going on with my system instead of looking at an arrow go in circles.
The argument snd_bcm2835.enable_headphones=1 is in both scenarios and will not change but snd-bcm2835.enable_compat_alsa=value will. kms uses VC4-hdmi for sound.
Thanks for testing. kms does not lock up here with xfce and regular image. Seems like a couple of days ago there was an issue locking up with the older kernel using uefi, kms and turning off compositing fixed it.
Ah, yes. Disabling kwin’s compositor seems to resolve the issue. I was getting those “page flip” errors and gpu timeouts. Which is interesting, as that was the issue I was having with kms and wayland.
Edit: I switched to rpi firmware and experience the same behavior.
Thanks for updating rpi4 kernel !
I haven’t touch/change my cmdline or my config.txt but for now it seems to work.
I have a small issue/question about entropy: it seems very low (around 700 at boot when it used to be at 2000 before) is it normal ?
Edit: I use mainline
Edit2: I think I’ve got the suspect
$ systemctl status haveged
â—‹ haveged.service - Entropy Daemon based on the HAVEGE algorithm
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Condition: start condition failed at Tue 2021-08-31 15:11:18 CEST; 1 month 1 day ago
└─ ConditionKernelVersion=<5.6 was not met
Docs: man:haveged(8) haveged - a simple entropy daemon
Strange I hadn’t seen it before today but it looks older than this update.
They introduce some kernel condition in this version (due to x86 discussions) but remove then in the 1.9.15-1 (which is updated for x86 but not for arm).
I just built 1.9.15-1 and it also gives the error. The problem is the kernel version check is not working that they added. Remove the line ConditionKernelVersion=<5.6 from /usr/lib/systemd/system/haveged.service
[ray@pi4 ~]$ cat /proc/sys/kernel/random/entropy_avail
472
[ray@pi4 ~]$ systemctl status haveged
â—‹ haveged.service - Entropy Daemon based on the HAVEGE algorithm
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Condition: start condition failed at Tue 2021-08-31 08:11:20 CDT; 1 month 1 day ago
└─ ConditionKernelVersion=<5.6 was not met
Docs: man:haveged(8)
http://www.issihosts.com/haveged/
[ray@pi4 ~]$
[ray@pi4 ~]$ pacman -Ss haveged
extra/haveged 1.9.14-1 [installed: 1.9.15-1]
Entropy harvesting daemon using CPU timings
After removal of the line:
[ray@pi4 ~]$ cat /proc/sys/kernel/random/entropy_avail
2459
[ray@pi4 ~]$ systemctl status haveged
â—Ź haveged.service - Entropy Daemon based on the HAVEGE algorithm
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-08-31 08:11:18 CDT; 1 month 1 day ago
Docs: man:haveged(8)
http://www.issihosts.com/haveged/
Main PID: 153 (haveged)
Tasks: 1 (limit: 8982)
CPU: 418ms
CGroup: /system.slice/haveged.service
└─153 /usr/bin/haveged -w 1024 -v 1 --Foreground
Notice: journal has been rotated since unit was started, output may be incomplete.
[ray@pi4 ~]$ pacman -Ss haveged
extra/haveged 1.9.14-1 [installed: 1.9.15-1]
Entropy harvesting daemon using CPU timings
I know it’s too low and that’s why I asked at my first post.
It is not related to your new kernel release finally.
I have opened a request for updating this package on another post because I thought that this kernel condition was removed in the new package version.
Maybe we can merge that discussion to this post https://forum.manjaro.org/t/havaged-1-9-15-1/84957 ?
On hackaday post it says it needs to be some where around 3000 with the pi.
It vaguely has to do with the kernel. It is appearing that kernel 5.6 and greater the kernel provides the entropy but it looks like to me it is not doing much for the arm side.