I’m referencing this thread to create the startup script:
I made the autostart.sh file, placed it into that location. I don’t know scripting at all, so I asked ChatGPT for some coding advice, and I cleaned up what it suggested into the below autostart.sh file:
if [ -f /sys/module/amdolby_vision/parameters/dolby_vision_wait_delay ]; then
# Set the parameter to 16
echo 16 > /sys/module/amdolby_vision/parameters/dolby_vision_wait_delay
echo "Parameter set to 16."
else
echo "File not found: /sys/module/amdolby_vision/parameters/dolby_vision_wait_delay"
fi
It doesn’t seem to work though. I tried echo “16” as well as echo 16 because I didn’t know if datatype would affect it.
Is it a problem with my code?
EDIT: I used @Kaan’s version above and it worked!
Simply:
echo 16 > /sys/module/amdolby_vision/parameters/dolby_vision_wait_delay
I think it’s because the parameter isn’t a “file” so that above if statement fails. Not sure, but this seems to work so very happy.
EDIT 2: Changed the wait delay to 20 as the Ghost in the Shell MEL hybrid was still giving me issues when the delay is set to 16.