mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
cleanup scripts: projects/
This commit is contained in:
parent
67dcda694b
commit
52d0bad764
@ -2,14 +2,15 @@
|
|||||||
FB_TYPE="$(grep '^0 ' /proc/fb | sed 's/[^[:space:]] //')"
|
FB_TYPE="$(grep '^0 ' /proc/fb | sed 's/[^[:space:]] //')"
|
||||||
|
|
||||||
if [ "$FB_TYPE" == "inteldrmfb" ] || echo "$FB_TYPE" | grep -q "^i9[0-9]*drmfb$"; then
|
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'`
|
OUTPUT=$(/usr/bin/xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q')
|
||||||
for out in $OUTPUT; do
|
for out in $OUTPUT; do
|
||||||
# Hack - something is not yet fully right
|
# Hack - something is not yet fully right
|
||||||
/usr/bin/xrandr -display :0 --output $out --set "Broadcast RGB" "Full"
|
/usr/bin/xrandr -display :0 --output $out --set "Broadcast RGB" "Full"
|
||||||
# Seems there is a little race somewhere on some outputs
|
# Seems there is a little race somewhere on some outputs
|
||||||
# Turn the display shortly off and on again
|
# Turn the display shortly off and on again
|
||||||
if [ -e "/storage/.config/forcedisplay" ]; then
|
if [ -e "/storage/.config/forcedisplay" ]; then
|
||||||
/usr/bin/xrandr -display :0 --output $out --off ; /usr/bin/xrandr -display :0 --output $out --auto
|
/usr/bin/xrandr -display :0 --output $out --off
|
||||||
|
/usr/bin/xrandr -display :0 --output $out --auto
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -114,4 +114,3 @@ case "${ACTION}" in
|
|||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user