Neither running the script manually in the SSH Terminal or letting it run when turning the NUC on will restore the audio. Only switching the refresh rate manually does.
I can't figure this one out.
Neither running the script manually in the SSH Terminal or letting it run when turning the NUC on will restore the audio. Only switching the refresh rate manually does.
I can't figure this one out.
I think sleep should appear before xrandr:
cat >/storage/.config/sleep.d/99-toggle_rate.power <<'EOF'
#!/bin/sh
case "$1" in
post)
sleep 2
xrandr -display :0 --output DP1 --mode 1920x1080 --rate 59.94
sleep 2
xrandr -display :0 --output DP1 --mode 1920x1080 --rate 60
;;
esac
EOF
Display More
Make sure it's executable: chmod +x /storage/.config/sleep.d/99-toggle_rate.power
I'll try placing the sleep before xrandr. Yes, I did make it executable.
It worked!
Placing the sleep before xrandr was the fix. It now works perfectly. I'm sure I could have used smaller delay times, but I'm happy now.
Again, Da Flex - thanks so much for the continued support. You're a great asset to this community.
I'll mark the thread as FIXED after about a week or so.