Skip to content

Commit

Permalink
set HDMI max resolution to 4k
Browse files Browse the repository at this point in the history
Signed-off-by: Ruixi Zhou <[email protected]>
  • Loading branch information
zhouruixi committed Oct 20, 2024
1 parent 6317198 commit a2c5fac
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
7 changes: 7 additions & 0 deletions gs/gs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ else
need_u_boot_update=1
need_reboot=1
fi
if [[ -f /boot/dtbo/rk3566-hdmi-max-resolution-4k.dtbo && "$ftdoverlays_extlinux" == *rk3566-hdmi-max-resolution-4k.dtbo* ]]; then
echo "rk3566-hdmi-max-resolution-4k dtb overlay is enabled"
else
dtc -I dts -O dtb -o /boot/dtbo/rk3566-hdmi-max-resolution-4k.dtbo /home/radxa/gs/rk3566-hdmi-max-resolution-4k.dts
need_u_boot_update=1
need_reboot=1
fi
dtbo_enable_array=($dtbo_enable_list)
for dtbo in "${dtbo_enable_array[@]}"; do
if [ -f /boot/dtbo/rk3568-${dtbo}.dtbo.disabled ]; then
Expand Down
4 changes: 2 additions & 2 deletions gs/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ echo -e "\033[31mRemove /etc/NetworkManager/system-connections/*\033[0m"
[ "$(ls -A /etc/NetworkManager/system-connections/)" ] && rm /etc/NetworkManager/system-connections/*
echo -e "\033[31mDisable wifibroadcast.service [email protected]\033[0m"
systemctl disable wifibroadcast.service [email protected]
echo -e "\033[31mcopy gs.sh wfb.sh stream.sh fan.sh button.sh rk3566-dwc3-otg-role-switch.dts to ${install_dir}/\033[0m"
chmod +x gs.sh wfb.sh stream.sh fan.sh button.sh && cp gs.sh wfb.sh stream.sh fan.sh button.sh rk3566-dwc3-otg-role-switch.dts ${install_dir}/
echo -e "\033[31mcopy gs.sh wfb.sh stream.sh fan.sh button.sh rk3566-dwc3-otg-role-switch.dts rk3566-hdmi-max-resolution-4k.dts to ${install_dir}/\033[0m"
chmod +x gs.sh wfb.sh stream.sh fan.sh button.sh && cp gs.sh wfb.sh stream.sh fan.sh button.sh rk3566-dwc3-otg-role-switch.dts rk3566-hdmi-max-resolution-4k.dts ${install_dir}/
echo -e "\033[31mcopy gs.conf to /config/gs.conf\033[0m"
cp gs.conf /config/
echo -e "\033[31mcopy gs.service to /etc/systemd/system/\033[0m"
Expand Down
19 changes: 19 additions & 0 deletions gs/rk3566-hdmi-max-resolution-4k.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/dts-v1/;

/ {
metadata {
title = "Set maximum monitor resolution to 3840x2160";
category = "misc";
description = "Set maximum monitor resolution to 4K.";
compatible = "radxa,rock-3a\0radxa,rock-3b\0radxa,e25";
};

fragment@0 {
target-path = "/hdmi@fe0a0000";
__overlay__ {
preset_max_hdisplay = <3840>;
preset_max_vdisplay = <2160>;
};
};
};

0 comments on commit a2c5fac

Please sign in to comment.