Files
vendor_motorola_sm6375-common/proprietary/vendor/bin/init.mmi.display.sh
T
TheImposter65 5d0291f99e sm6375-common: Import vendor files for the Linux 6.1 port
Extracted from malmo_g W1UOS36H.35-39-8 and device-specific compatibility overrides. Device extraction scripts preserve the build compatibility fixups.
2026-11-07 20:16:21 +00:00

29 lines
511 B
Bash
Executable File

#!/vendor/bin/sh
scriptname=${0##*/}
notice()
{
echo "$*"
echo "$scriptname: $*" > /dev/kmsg
}
set_ro_hw_properties_dislayport()
{
local dp_path=/sys/class/drm/card0-DP-1
local wait_cnt=0
while [ "$wait_cnt" -lt 5 ]; do
if [ -e $dp_path ]; then
setprop ro.vendor.hw.displayport true
notice "setprop ro.vendor.hw.displayport as true"
break;
fi
notice "waiting for dp, wait_cnt is $wait_cnt"
sleep 1;
wait_cnt=$((wait_cnt+1))
done
}
# Main starts here
set_ro_hw_properties_dislayport