Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2668

Raspberry Pi OS • Raspberry Pi 5 with Gentoo

$
0
0
I compiled Gentoo on Raspberry Pi 5 with 8GB RAM, and my own custom kernel. But there is no hardware acceleration when playing videos, either in browser or using mpv. Mpv say vo is gpu, but playback is worse than on Raspberry Pi 4. Same result with official kernel.
Mesa is at ver. 23.3.3 with v3d and vc4 videocards enabled, kernel is 6.6.12, DE is xfce 4.19, firefox is v121, also vivaldi was used, ffmpeg has support for v4l2 mml. Tried also hyprland (full wayland), but same result. Of course, glxinfo report: direct rendering: Yes.
Video playback is very good only at HD resolution, CPU usage is relatively high, but no framedrop, is acceptable at 2K and completely broken at 4K resolution.

Why I am posting here and not in Gentoo section: I something that Bookworm on Pi have and is not upstreamed in mesa ? Is a setting in config.txt ?
Display resolution is not autodected, I had to put dtoverlay=vc4-kms-v3d-pi5 in config.txt to gain 4K resolution (both framebuffer and graphical interface).

Full config.txt

Code:

# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=ondtparam=i2s=ondtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displays# display_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3d-pi5dtoverlay=rpivid-v4l2max_framebuffers=2gpu_mem=512# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.# disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[pi5]dtparam=pwr_led_trigger=default-ondtparam=pwr_led_activelow=offdtparam=act_led_trigger=default-ondtparam=act_led_activelow=offusb_max_current_enable=1disable_poe_fan=1[all]disable_splash=1
Any hint ?
Thank you!

Statistics: Posted by costel78 — Sat Jan 20, 2024 5:10 pm



Viewing all articles
Browse latest Browse all 2668

Trending Articles