Files
vanilla/buildroot/board/nx/rootfs/usr/bin/vanilla-wrapper
T
itsmattkc c809ff73e7 implement support for display brightness
commit 54e685ba9fef2b5fc1505ddc932e4fa3fe87ed68
Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
Date:   Wed Aug 26 17:46:15 2026 -0700

    improvements

commit b442a51a71
Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
Date:   Wed Aug 26 14:49:31 2026 -0700

    docker: add new build deps for android

commit 1e6370391e
Merge: b21181c 0681459
Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
Date:   Wed Aug 26 14:37:15 2026 -0700

    Merge branch 'master' into brightness

commit b21181c675
Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
Date:   Sun Aug 23 16:58:09 2026 -0700

    update display brightness - initial implementation
2026-08-26 17:50:12 -07:00

31 lines
665 B
Bash
Executable File

#!/bin/sh
# Buildroot doesn't allow us to have a ld.conf.so.d so force the LD_LIBRARY_PATH here
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/tegra:/usr/lib/aarch64-linux-gnu/tegra-egl"
export DISPLAY=:0
export SDL_VIDEODRIVER=x11
# Start X
X "$DISPLAY" -nolisten tcp vt1 &
X_PID=$!
# Wait until X is responsive
for i in 1 2 3 4 5 6 7 8 9 10; do
xset q >/dev/null 2>&1 && break
sleep 1
done
# Run Vanilla in foreground
/usr/bin/vanilla > /.local/share/Vanilla/vanilla.log 2>&1
APP_RC=$?
# Clean up X
kill "$X_PID" 2>/dev/null
wait "$X_PID" 2>/dev/null
# Reboot when app exits
reboot -f
# Fallback if reboot fails
exit "$APP_RC"