The display driver is different for the Pi 5. Creating /etc/X11/xorg.conf.d/99-v3d.conf and adding the following fixed it for me but I don't know enough about X11 to know if it's the best/correct fix.
You can get the Pi version from /proc/cpuinfo. Something like awk '/^Model/ {print $5}' /proc/cpuinfo or awk -F ': ' '/^Model/ {print $2}' /proc/cpuinfo
The display driver is different for the Pi 5. Creating
/etc/X11/xorg.conf.d/99-v3d.conf
and adding the following fixed it for me but I don't know enough about X11 to know if it's the best/correct fix.You can get the Pi version from /proc/cpuinfo. Something like
awk '/^Model/ {print $5}' /proc/cpuinfo
orawk -F ': ' '/^Model/ {print $2}' /proc/cpuinfo