0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-07 11:28:20 +00:00
SupervisedThinking 7d1fd86cbc project/Generic: updated / added devices
- cleaned up options
- added gbm, wayland & x11 devices
- Generic-legacy replaced by x11 (+symlink)
- kept Generic (=gbm) for easier transition
- updated canupdate.sh to allow updates
2021-11-28 22:25:24 +01:00

16 lines
662 B
Bash
Executable File

#!/bin/sh
FB_TYPE="$(grep '^0 ' /proc/fb | sed 's/[^[:space:]] //')"
if [ "$FB_TYPE" == "inteldrmfb" ] || echo "$FB_TYPE" | grep -q "^i9[0-9]*drmfb$"; then
OUTPUT=`/usr/bin/xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
for out in $OUTPUT ; do
# Hack - something is not yet fully right
/usr/bin/xrandr -display :0 --output $out --set "Broadcast RGB" "Full"
# Seems there is a little race somewhere on some outputs
# Turn the display shortly off and on again
if [ -e "/storage/.config/forcedisplay" ]; then
/usr/bin/xrandr -display :0 --output $out --off ; /usr/bin/xrandr -display :0 --output $out --auto
fi
done
fi