amlogic: Set colorspace to avoid no HDMI signal with non-4K output modes

Amlogic devices with the latest "Nougat" kernel will output no HDMI signal if incorrect mode/attr combination is provided. Since Kodi doesn't support setting attr, set it to the most universal value that would allow Kodi to set any output resolution.
This commit is contained in:
kszaq 2018-01-20 00:06:45 +01:00
parent 07482bcd09
commit be1e2d55b1
3 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,9 @@ if [ -z "$BOOT_IMAGE" -o -z "$boot" -o -z "$disk" ]; then
echo "$cmdline" > /proc/cmdline echo "$cmdline" > /proc/cmdline
fi fi
# Set colorspace to avoid no HDMI signal with non-4K output modes
echo 422,8bit > /sys/class/amhdmitx/amhdmitx0/attr
# Enable HDMI output if cable is connected and not already enabled by u-boot # Enable HDMI output if cable is connected and not already enabled by u-boot
if [ "$(cat /sys/class/amhdmitx/amhdmitx0/hpd_state)" != "0" ] && [ "$display_mode" != "$hdmimode" ]; then if [ "$(cat /sys/class/amhdmitx/amhdmitx0/hpd_state)" != "0" ] && [ "$display_mode" != "$hdmimode" ]; then
echo "$hdmimode" > /sys/class/display/mode echo "$hdmimode" > /sys/class/display/mode

View File

@ -28,6 +28,9 @@ for arg in $(cat /proc/cmdline); do
esac esac
done done
# Set colorspace to avoid no HDMI signal with non-4K output modes
echo 422,8bit > /sys/class/amhdmitx/amhdmitx0/attr
# Enable first framebuffer # Enable first framebuffer
echo 0 > /sys/class/graphics/fb0/blank echo 0 > /sys/class/graphics/fb0/blank

View File

@ -28,6 +28,9 @@ for arg in $(cat /proc/cmdline); do
esac esac
done done
# Set colorspace to avoid no HDMI signal with non-4K output modes
echo 422,8bit > /sys/class/amhdmitx/amhdmitx0/attr
# Enable first framebuffer # Enable first framebuffer
echo 0 > /sys/class/graphics/fb0/blank echo 0 > /sys/class/graphics/fb0/blank