How to automatically disable/enable HDR with Sunshine
I've noticed that when I toggle HDR using the below command that colours remain washed out on the display in question, even though it's definitely working (the HDR toggle switch in Display Config is changing). When toggling HDR via the actual Display Config area it forces some sort of refresh/flicker on the monitor itself which causes the colours to render properly after - I believe this is the key to getting HDR working. I need to know what exactly this screen refresh is and how to trigger it via terminal so I can use it with Sunshine to automatically enable/disable HDR when using Sunshine to stream (TV doesn't support HDR).
HDR toggle command:
alias hdr='if [ "$(kscreen-doctor -o | ansi2txt | grep -cm1 "HDR: enabled"| cut -d= -f2)" -ge 1 ]; then kscreen-doctor output.DP-1.hdr.disable; else kscreen-doctor output.DP-1.hdr.enable; fi;'
0 Replies