Skip to content

mrichana/HDR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An AutoHotKey script that toggles a virtual monitor, changes resolution to the client resolution and enables HDR on windows 11 machines for use with Sunshine streaming.

Takes two parameters with the first being start or stop to signify if starting or ending the stream and the second the state of the host HDR being either SDR or HDR.

It toggles the state only when the client asks a different state than the host.

There is a third optional parameter that can overide the resolution asked by the client in the format WIDTHxHEIGHTxFPS

It is to be added to the prepare section of sunshine in the format hdr state hosthdr clientoverride

state: either start or stop hosthdr: the current state of host HDR, either hdr or sdr

clientoverride: optional parameter if the host cannot for example game at 4k. The format is WIDTHxHEIGHTxFRAMERATE

Example DO: hdr.exe start sdr 1920x1080x60 UNDO: hdr.exe stop sdr

The exe file should be placed in a PATH folder, where it can be found or any other folder when called with the complete path.

I have included the executable from QReshttps://sourceforge.net/projects/qres, that needs to also be available in the same dir.

Ii is meant to be used in conjunction with IDDhttps://github.com/itsmikethetech/Virtual-Display-Driver, that also gets enabled before starting the stream and qres.

About

HDR toggle on command line for sunshine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published