This implementation calls curl via popen, so the HTTP response body is available.
Additionally, before setting HDR componentstate, the ambient lighting daemon is checked via command: sysinfo - only when HyperHDR is enumerated, the HDR componentstate is sent.
Based on the work from @chbartsch (see: https://github.com/chbartsch/hyperion-webos/commits/unicapture_video-mode-switcher).
This implementation calls curl via
popen
, so the HTTP response body is available.Additionally, before setting HDR componentstate, the ambient lighting daemon is checked via
command: sysinfo
- only when HyperHDR is enumerated, the HDR componentstate is sent.