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

Troubleshooting • GPU acceleration in xserver not working on Pi 3A+ w/ 64-bit Bookworm Lite

$
0
0
OpenGL seems to be falling back to software rendering on the Pi and I have had no luck figuring out why or how to fix it. I'm using an Elecrow 5" LCD in portrait mode for video output (https://www.amazon.com/dp/B013JECYF2).

Symptoms:
When running either my own app (built on GLFW) or glxgears, I see a single core go to 100% and the framerate is quite low compared to what I've seen the Pi3 capable of while running Bullseye (glxgears at 18fps, for example). I tried using the "Wayland" option in raspi-config to change to X11, but it just throws some errors about lightdm.conf not existing, and see no other options in the utility to change graphics settings.

My setup is a stock install of Bookworm Lite 64-bit via Raspberry Pi Imager. Graphics-relevant installed packages are:
xserver-xorg
libgl1-mesa-dev
mesa-utils
matchbox-window-manager
x11-xserver-utils

.xinitrc:

Code:

#!/bin/shxset s off &xset -dpms &xrandr --output HDMI-1 --rotate right &exec matchbox-window-manager -use_cursor no -use_titlebar no
cmdline.txt:

Code:

console=tty1 root=PARTUUID=c4a488e1-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=US video=HDMI-A-1:800x480M@60,rotate=270
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=on#dtparam=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,noaudiomax_framebuffers=2# 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[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=host[all]enable_uart=1dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=1,pmax=255,xohms=150,xmin=208,xmax=3905,ymin=3910,ymax=288#hdmi_group=2#hdmi_mode=87#hdmi_cvt=800 480 60 6 0 0 0#hdmi_drive=1#display_hdmi_rotate=2
Any help would be much appreciated, thanks!

Statistics: Posted by apalatn — Mon Mar 31, 2025 6:35 pm — Replies 0 — Views 25



Viewing all articles
Browse latest Browse all 6980

Trending Articles