Files
sunnypilot/selfdrive/test/setup_xvfb.sh
Justin Newberry c99ed48859 silence xvfb (#31069)
silence
old-commit-hash: dfb56abf91
2024-01-18 22:40:28 -08:00

15 lines
336 B
Bash
Executable File

#!/bin/bash
# Sets up a virtual display for running map renderer and simulator without an X11 display
DISP_ID=99
export DISPLAY=:$DISP_ID
sudo Xvfb $DISPLAY -screen 0 2160x1080x24 2>/dev/null &
# check for x11 socket for the specified display ID
while [ ! -S /tmp/.X11-unix/X$DISP_ID ]
do
echo "Waiting for Xvfb..."
sleep 1
done