Skip to content

Commit dc85e9a

Browse files
committed
system: handle Pi5's xorg configuration
Pi5 needs an additional X11 configuration stanza for xorg-xserver to start properly. This configuration is handled by the `gldriver-test` package, which installs a couple of services that create the needed configuration files based on the displays connected to the board (HDMI/DSI/etc.). Technically, once the services have run the package can be removed IIF the type of display connection will not change (i.e. will always use HDMI or DSI, etc.) Since this package is only installed with `raspberrrypi-ui-mods` (i.e. the RaspiOS desktop), let's install it by default on Pi5. The only dependency for the package is `raspi-config`, which is already present on any RaspiOS installation.
1 parent 1d25e8b commit dc85e9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scriptmodules/system.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ function get_os_version() {
322322

323323
function get_retropie_depends() {
324324
local depends=(git subversion dialog curl gcc g++ build-essential unzip xmlstarlet python3-pyudev ca-certificates dirmngr)
325+
# on RaspiOS, install an extra package for X11 support on Pi5
326+
if isPlatform "rpi5" && [[ "$__os_id" == "Raspbian" ]]; then
327+
depends+=(gldriver-test)
328+
fi
325329

326330
[[ -n "$DISTCC_HOSTS" ]] && depends+=(distcc)
327331

0 commit comments

Comments
 (0)