twinkle-tray
twinkle-tray copied to clipboard
Resolution change resets brightness to 100%
Hello, I use HRC to switch resolution while I remote to my computer.
I also use the following Powershell script along with a .cmd command to trigger a resolution and a DPI change.
HRC.exe r3 /exit
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\HRC\scale.ps1" 4
# $scaling = 1 : 125%
# $scaling = 2 : 150%
# $scaling = 3 : 175%
# $scaling = 4 : 200%
param($scaling = 0)
$source = @’
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
public static extern bool SystemParametersInfo(
uint uiAction,
uint uiParam,
uint pvParam,
uint fWinIni);
‘@
$apicall = Add-Type -MemberDefinition $source -Name WinAPICall -Namespace SystemParamInfo –PassThru
$apicall::SystemParametersInfo(0x009F, $scaling, $null, 1) | Out-Null
And each time I change resolution, brightness is pushed to maximum. I use latest v1.14.5 Thanks
So, this is expected behavior (sort of). After a resolution or refresh rate change, the brightness usually resets to the last manually-set brightness (meaning it was set with the hardware controls, not Twinkle Tray). I think it happens to all monitors. However, Twinkle Tray is supposed to apply the last known brightness 0.75s and 5s after a detected change with the displays (hardware connection change or res/refresh change).
Is the brightness not being re-applied after a resolution change?
Yes, this is it. Brightness on the monitor is set at 35% and contrast 75% (AW3821DW), and once I change resolution, in Twinkle-Tray it goes to 100% brightness, even though I checked the checkbox to retain the brightness. it does that with one or two monitors attached. Note that I never set the brightness to 100%. I use HDR from times to times, and this behaviour is the same with HDR enabled under windows.