Skip to content

Commit

Permalink
[package] [kernel-osmc] Vero 2: some 1080p sets don't send a preferre…
Browse files Browse the repository at this point in the history
…d mode, but they support >720p. Check for this and set accordingly to avoid issues on reboot

Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
  • Loading branch information
samnazarko committed Sep 18, 2016
1 parent 5b912fd commit 40c398f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/kernel-osmc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ INITRAMFS_NOBUILD=4
test $1 == rbp1 && VERSION="4.4.16" && REV="5" && FLAGS_INITRAMFS=$(($INITRAMFS_BUILD + $INITRAMFS_EMBED)) && IMG_TYPE="zImage"
test $1 == rbp2 && VERSION="4.4.16" && REV="5" && FLAGS_INITRAMFS=$(($INITRAMFS_BUILD + $INITRAMFS_EMBED)) && IMG_TYPE="zImage"
test $1 == vero && VERSION="4.4.0" && REV="5" && FLAGS_INITRAMFS=$(($INITRAMFS_BUILD + $INITRAMFS_EMBED)) && IMG_TYPE="zImage"
test $1 == vero2 && VERSION="3.10.102" && REV="9" && FLAGS_INITRAMFS=$(($INITRAMFS_BUILD)) && IMG_TYPE="uImage"
test $1 == vero2 && VERSION="3.10.102" && REV="10" && FLAGS_INITRAMFS=$(($INITRAMFS_BUILD)) && IMG_TYPE="uImage"
test $1 == atv && VERSION="4.2.3" && REV="16" && FLAGS_INITRAMFS=$(($INITRAMFS_NOBUILD)) && IMG_TYPE="zImage"
test $1 == pc && VERSION="4.2.3" && REV="6" && FLAGS_INITRAMFS=$(($INITRAMFS_BUILD + $INITRAMFS_EMBED)) && IMG_TYPE="zImage"
if [ $1 == "rbp1" ] || [ $1 == "rbp2" ] || [ $1 == "atv" ] || [ $1 == "pc" ]
Expand Down
2 changes: 1 addition & 1 deletion package/kernel-osmc/files/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Origin: OSMC
Version: 3.0.0
Version: 3.0.1
Section: kernel
Essential: No
Priority: required
Expand Down
4 changes: 4 additions & 0 deletions package/kernel-osmc/initramfs-src/init.d/vero2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export OPTION_MOUNT_PATH="/real_root"
hdmimode=720p
preferred=$(busybox grep \* /sys/class/amhdmitx/amhdmitx0/disp_cap | busybox sed 's/\*//g')
if [ "$preferred" ]; then hdmimode="$preferred"; fi
if [ -z "$preferred" ]
then
if busybox grep -w -q 1080p /sys/class/amhdmitx/amhdmitx0/disp_cap; then hdmimode="1080p"; fi
fi

# Enable framebuffer device
echo "$hdmimode" > /sys/class/display/mode
Expand Down

0 comments on commit 40c398f

Please sign in to comment.