Main > Software Forum

[Discontinued][17-09-22] RatRefresh - refresh rate switcher, stops LCD tearing

<< < (21/31) > >>

Justin:
I don't know if this has anything to do with the issue at all, but I will say that with my set up, when I run the initial steps that create my display driver file, it states that the minimum and maximum refresh rate identified are backwards!
It says something like:
Min rate: 87
Max rate: 54

Rataplan626:

--- Quote from: Justin on February 28, 2023, 08:16:58 am ---I don't know if this has anything to do with the issue at all, but I will say that with my set up, when I run the initial steps that create my display driver file, it states that the minimum and maximum refresh rate identified are backwards!
It says something like:
Min rate: 87
Max rate: 54

--- End quote ---
Do you guys get notification from this forum? I switched from hotmail to gmail but still no notifications, even though my settings seem to be correct.

Anyway, the min and max value come directory from the EDID value stored in registry. Maybe that's corrupted by now? :) In the registry, at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DELA0B8\4&3b360466&0&UID200195\Device Parameters, obviously for your own display, there is the EDID value. Rename or delete it, and reboot. After that, post me the value in there, and / or try running Ratrefresh -setup again. You could try ratrefresh -setup -api, but in terms of min and max nothing should change.

trevorp:

--- Quote from: Rataplan626 on February 28, 2023, 06:21:38 am ---
--- Quote from: TitanGorilla on February 26, 2023, 04:23:57 pm ---Hi Rataplan,

I seem to have the same issue with any version after 0.11. The refresh rate doesn’t seem to change. I also noticed the EDID file generated is different from 0.11 but this might be the way you designed the later versions. I’m not sure what I could be doing wrong with versions after 0.11. I tried 0.12 and 0.14 and they both seem to give the same issue. It seems using the CRU tool allows the refresh rate to change properly with 0.11. I’m not sure why it might work on 0.11 but not 0.14

I also have a weird issue with my video card. I have a NVIDIA GTX970 and with your utility it resets the video card drivers, the video card reset seems to cause screen tearing. It’s noticeable tearing in browsers such as Chrome in particular. I tried turning off and on manually the display adapter drivers from the device manager even without using your utility and it still seems to cause screen tearing. Restarting my machine fixes the tearing completely. It also doesn’t seem to be an issue with resetting the refresh rate in Windows after setting custom refresh rates with the CRU tool.

Do you know if there is a way to reset the refresh rate from the command line without having to reset the video card drivers, similar if the refresh rate were to be reset from Display settings manually from Windows? Also, do you know what might cause the video screen tearing after resetting the display drivers?

--- End quote ---

So you state with RatRefresh 0.11 it works, but with 0.14 it doesn't work well? That's curious. If that's the case, I can obviously debug that. Weird thing is though, that on my own cab 0.14 works fine, which is why I inititally think about driver issues. Setting a custom refresh rate without resetting the driver is my ultimate goal, see the first two pages of this thread. However I don't think that's feasible without very specific call to drivers, which would make it TOO brittle to my liking. The last time I used CRU, one needed a reboot before the custom refresh rates are available. If that changed, I'm interested. I think I remember some quirks toom, in the sense that when you add for example 59.150 Hz and 59.300 Hz, both are rounded off as 59, and it doesn't work well. I should try again to see if things changed.

I've also changed my email address on the forum in order to try to receive notifications. So if you could conform 0.11 works 'better' than 0.14 on your system, that would help.

--- End quote ---

First off, let me say thank you for this fantastic tool.  I swapped out an old 27" CRT TV that was on its last legs for an LCD, and found this tool which does exactly what I wanted.

I started using it right when you pushed out 0.11, and then left my cab in a state of disrepair until a few months ago.

I saw that you had updated to 0.14 so I tried it with the same behavior as quoted above.

0.11 will give me any rate that my monitor is capable of.  I am not playing anything, just testing rate switching with the ufotest site, as I decide what I want to do with the cab.

Anything from 0.12 - 0.14 act like they're changing the refresh rate, but they all set my rate to 59.972hz.

0.11 will set it to 60.001, 54.707 or whatever I ask for.

I honestly presumed it was something I'd done to my setup so didn't report it here.

I safely exported my registry settings before attempting 0.14 so I can go back and forth between working and non-working configs to test anything you'd like.

Rataplan626:
Hmm... Thats weird. Seems to be some bug that does not occur on my cab. Can you spare the time to run ratrefresh -debug -refresh 59.850 and after that to another refreshrate and paste output and the edidoverride registry value, and then the same for .14?
If .11 works it can't be something I can't fix, weird thing is I don't run into it myself.

trevorp:
I don't seem to be able to attach images, so I'll just paste in text what the ufotest site shows at each stage.

Prior to running 0.11

ufotest shows 60.001 Hz

Running 0.11


--- Code: ---D:\Utilities\RatRefresh>ratrefresh -debug -edidfile edid.txt -refresh 59.850
Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE
Value 0
WantedRefreshRate 59.850
HexCurrentPixelClock 68ef
CurrentPixelClock 26863
HexHorizontalResolution 0a00
HorizontalResolution 2560
HexverticalResolution 0640
VerticalResolution 1600
HexHorizontalBlankingPixels 00a0
HorizontalBlankingPixels 160
HexVerticalBlankingLines 002e
VerticalBlankingLines 46
TotalHorizontalResolution 2720
TotalVerticalResolution 1646
CalculatedPixelClock 26796
HexCalculatedPixelClock 68ac
ReversedEdidHexCalculatedPixelClock ac68
TotalChecksum 7733
Checksum 203
HexChecksum cb

--- End code ---

ufotest shows 59.851 Hz


--- Code: ---D:\Utilities\RatRefresh>ratrefresh -debug -edidfile edid.txt -refresh 66.123
Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE
Value 0
WantedRefreshRate 66.123
HexCurrentPixelClock 68ac
CurrentPixelClock 26796
HexHorizontalResolution 0a00
HorizontalResolution 2560
HexverticalResolution 0640
VerticalResolution 1600
HexHorizontalBlankingPixels 00a0
HorizontalBlankingPixels 160
HexVerticalBlankingLines 002e
VerticalBlankingLines 46
TotalHorizontalResolution 2720
TotalVerticalResolution 1646
CalculatedPixelClock 29604
HexCalculatedPixelClock 73a4
ReversedEdidHexCalculatedPixelClock a473
TotalChecksum 7736
Checksum 200
HexChecksum c8

--- End code ---

ufotest shows 66.123 Hz

Registry after last command:


--- Code: ---Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\1&8713bca&0&UID0]
"DeviceDesc"="@monitor.inf,%pnpmonitor.devicedesc%;Generic PnP Monitor"
"Capabilities"=dword:000000e4
"Address"=dword:00000000
"ConfigFlags"=dword:00000000
"ContainerID"="{6d5104c6-2815-5319-8110-935b6287b83a}"
"HardwareID"=hex(7):4d,00,4f,00,4e,00,49,00,54,00,4f,00,52,00,5c,00,44,00,45,\
  00,4c,00,34,00,30,00,38,00,33,00,00,00,00,00
"CompatibleIDs"=hex(7):2a,00,50,00,4e,00,50,00,30,00,39,00,46,00,46,00,00,00,\
  00,00
"ClassGUID"="{4d36e96e-e325-11ce-bfc1-08002be10318}"
"Service"="monitor"
"Driver"="{4d36e96e-e325-11ce-bfc1-08002be10318}\\0005"
"Mfg"="@monitor.inf,%generic%;(Standard monitor types)"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\1&8713bca&0&UID0\Device Parameters]
"EDID"=hex:00,ff,ff,ff,ff,ff,ff,00,10,ac,83,40,4c,4e,34,41,10,18,01,03,80,40,\
  28,78,ea,1d,f5,ae,4f,35,b3,25,0d,50,54,a5,4b,00,81,00,b3,00,d1,00,71,4f,a9,\
  40,81,80,d1,c0,01,01,e2,68,00,a0,a0,40,2e,60,30,20,36,00,81,91,21,00,00,1a,\
  00,00,00,ff,00,52,46,35,37,50,34,34,45,41,34,4e,4c,0a,00,00,00,fc,00,44,45,\
  4c,4c,20,55,33,30,31,34,0a,20,20,00,00,00,fd,00,31,56,1d,71,1c,00,0a,20,20,\
  20,20,20,20,01,22

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\1&8713bca&0&UID0\Device Parameters\WDF]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353]
"DeviceDesc"="@monitor.inf,%pnpmonitor.devicedesc%;Generic PnP Monitor"
"Capabilities"=dword:000000e4
"Address"=dword:00000111
"ConfigFlags"=dword:00000000
"ContainerID"="{5e53dd27-50e9-533e-b70c-88d73a545c57}"
"HardwareID"=hex(7):4d,00,4f,00,4e,00,49,00,54,00,4f,00,52,00,5c,00,44,00,45,\
  00,4c,00,34,00,30,00,38,00,33,00,00,00,00,00
"CompatibleIDs"=hex(7):2a,00,50,00,4e,00,50,00,30,00,39,00,46,00,46,00,00,00,\
  00,00
"ClassGUID"="{4d36e96e-e325-11ce-bfc1-08002be10318}"
"Service"="monitor"
"Driver"="{4d36e96e-e325-11ce-bfc1-08002be10318}\\0004"
"Mfg"="@monitor.inf,%generic%;(Standard monitor types)"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters]
"EDID"=hex:00,ff,ff,ff,ff,ff,ff,00,10,ac,83,40,4c,4e,34,41,10,18,01,03,80,40,\
  28,78,ea,1d,f5,ae,4f,35,b3,25,0d,50,54,25,4b,00,81,00,b3,00,d1,00,71,4f,a9,\
  40,81,80,d1,c0,01,01,a4,73,00,a0,a0,40,2e,60,30,20,36,00,80,90,21,00,00,1a,\
  00,00,00,fc,00,44,45,4c,4c,20,55,33,30,31,34,0a,20,20,00,00,00,10,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,01,c8

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE]
"0"=hex:00,ff,ff,ff,ff,ff,ff,00,10,ac,83,40,4c,4e,34,41,10,18,01,03,80,40,28,\
  78,ea,1d,f5,ae,4f,35,b3,25,0d,50,54,25,4b,00,81,00,b3,00,d1,00,71,4f,a9,40,\
  81,80,d1,c0,01,01,a4,73,00,a0,a0,40,2e,60,30,20,36,00,80,90,21,00,00,1a,00,\
  00,00,fc,00,44,45,4c,4c,20,55,33,30,31,34,0a,20,20,00,00,00,10,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,01,c8
"CRU_Name"=hex:01,44,45,4c,4c,20,55,33,30,31,34
"CRU_Serial_Number"=hex:00,52,46,35,37,50,34,34,45,41,34,4e,4c
"CRU_Range_Limits"=hex:00,00,31,00,56,00,1d,00,71,01,18
"CRU_Extensions"=hex:01
"1"=hex:02,03,25,70,50,90,05,04,03,02,07,16,01,06,11,12,15,13,14,1f,20,23,09,\
  1f,07,67,03,0c,00,10,00,38,38,83,01,00,00,02,3a,80,18,71,38,2d,40,58,2c,45,\
  00,e0,0e,11,00,00,1e,01,1d,80,18,71,1c,16,20,58,2c,25,00,e0,87,10,00,00,9e,\
  01,1d,00,72,51,d0,1e,20,6e,28,55,00,40,--BINGO! Either that, or I was attempting to say "before" but it was too many letters to type--,10,00,00,1e,8f,0a,d0,8a,20,e0,2d,\
  10,10,3e,96,00,--BINGO! Either that, or I was attempting to say "before" but it was too many letters to type--,78,00,00,00,18,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,8f

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE\0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE\0\Device Parameters]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE\0\Device Parameters\EDID_OVERRIDE]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\WDF]


--- End code ---

Setup for 0.14


--- Code: ---D:\Utilities\RatRefresh_0.14>RatRefresh.exe -setup
Detected video drivers:
Name:                         NVIDIA GeForce GTX 780
Device ID:                    PCI\VEN_10DE&DEV_1004&SUBSYS_84691043&REV_A1\4&80E7924&0&0008

Detected active monitors:
Monitor number:               1
Monitor description:          DELL U3014
Serial number:                1093946956
Monitor InstanceID:           DISPLAY\DEL4083\5&67fc0b1&0&UID4353
Monitor DevicePath:
HorizontalResolution:         2560
VerticalResolution:           1600
Minimum reported refreshrate: 68
Maximum reported refreshrate: 69


What monitor number to use?
1
edid.txt file written.

--- End code ---

Running 0.14


--- Code: ---D:\Utilities\RatRefresh_0.14>ratrefresh -debug -edidfile edid.txt -refresh 59.850
-min not supplied. Using EDID supplied value of 0
-max not supplied. Using EDID supplied value of 0
Requested refreshrate exceeding maximum. Setting refreshrate to maximum.
Key SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE
WantedRefreshRate 0
CalculatedPixelClock 0
HexCalculatedPixelClock 0000
ReversedEdidHexCalculatedPixelClock 0000
TotalChecksum 7457
Checksum 223
HexChecksum df

done

--- End code ---

Note: this failed as it incorrectly identified my min/max rates as 0

Second run with min/max specified


--- Code: ---D:\Utilities\RatRefresh_0.14>ratrefresh -debug -refresh 59.850 -min 50 -max 75
Key SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE
WantedRefreshRate 59.850
CalculatedPixelClock 26796
HexCalculatedPixelClock 68ac
ReversedEdidHexCalculatedPixelClock ac68
TotalChecksum 7733
Checksum 203
HexChecksum cb

done

--- End code ---

ufotest shows 59.972 Hz


--- Code: ---D:\Utilities\RatRefresh_0.14>ratrefresh -debug -refresh 66.123 -min 50 -max 75
Key SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE
WantedRefreshRate 66.123
CalculatedPixelClock 29604
HexCalculatedPixelClock 73a4
ReversedEdidHexCalculatedPixelClock a473
TotalChecksum 7736
Checksum 200
HexChecksum c8

done

--- End code ---

ufotest shows 59.972 Hz

Registry after last command:


--- Code: ---Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\1&8713bca&0&UID0]
"DeviceDesc"="@monitor.inf,%pnpmonitor.devicedesc%;Generic PnP Monitor"
"Capabilities"=dword:000000e4
"Address"=dword:00000000
"ConfigFlags"=dword:00000000
"ContainerID"="{6d5104c6-2815-5319-8110-935b6287b83a}"
"HardwareID"=hex(7):4d,00,4f,00,4e,00,49,00,54,00,4f,00,52,00,5c,00,44,00,45,\
  00,4c,00,34,00,30,00,38,00,33,00,00,00,00,00
"CompatibleIDs"=hex(7):2a,00,50,00,4e,00,50,00,30,00,39,00,46,00,46,00,00,00,\
  00,00
"ClassGUID"="{4d36e96e-e325-11ce-bfc1-08002be10318}"
"Service"="monitor"
"Driver"="{4d36e96e-e325-11ce-bfc1-08002be10318}\\0005"
"Mfg"="@monitor.inf,%generic%;(Standard monitor types)"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\1&8713bca&0&UID0\Device Parameters]
"EDID"=hex:00,ff,ff,ff,ff,ff,ff,00,10,ac,83,40,4c,4e,34,41,10,18,01,03,80,40,\
  28,78,ea,1d,f5,ae,4f,35,b3,25,0d,50,54,a5,4b,00,81,00,b3,00,d1,00,71,4f,a9,\
  40,81,80,d1,c0,01,01,e2,68,00,a0,a0,40,2e,60,30,20,36,00,81,91,21,00,00,1a,\
  00,00,00,ff,00,52,46,35,37,50,34,34,45,41,34,4e,4c,0a,00,00,00,fc,00,44,45,\
  4c,4c,20,55,33,30,31,34,0a,20,20,00,00,00,fd,00,31,56,1d,71,1c,00,0a,20,20,\
  20,20,20,20,01,22

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\1&8713bca&0&UID0\Device Parameters\WDF]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353]
"DeviceDesc"="@monitor.inf,%pnpmonitor.devicedesc%;Generic PnP Monitor"
"Capabilities"=dword:000000e4
"Address"=dword:00000111
"ConfigFlags"=dword:00000000
"ContainerID"="{5e53dd27-50e9-533e-b70c-88d73a545c57}"
"HardwareID"=hex(7):4d,00,4f,00,4e,00,49,00,54,00,4f,00,52,00,5c,00,44,00,45,\
  00,4c,00,34,00,30,00,38,00,33,00,00,00,00,00
"CompatibleIDs"=hex(7):2a,00,50,00,4e,00,50,00,30,00,39,00,46,00,46,00,00,00,\
  00,00
"ClassGUID"="{4d36e96e-e325-11ce-bfc1-08002be10318}"
"Service"="monitor"
"Driver"="{4d36e96e-e325-11ce-bfc1-08002be10318}\\0004"
"Mfg"="@monitor.inf,%generic%;(Standard monitor types)"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters]
"EDID"=hex:00,ff,ff,ff,ff,ff,ff,00,10,ac,83,40,4c,4e,34,41,10,18,01,03,80,40,\
  28,78,ea,1d,f5,ae,4f,35,b3,25,0d,50,54,25,4b,00,81,00,b3,00,d1,00,71,4f,a9,\
  40,81,80,d1,c0,01,01,a4,73,00,a0,a0,40,2e,60,30,20,36,00,80,90,21,00,00,1a,\
  00,00,00,fc,00,44,45,4c,4c,20,55,33,30,31,34,0a,20,20,00,00,00,10,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,01,c8

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE]
"0"=hex:00,ff,ff,ff,ff,ff,ff,00,10,ac,83,40,4c,4e,34,41,10,18,01,03,80,40,28,\
  78,ea,1d,f5,ae,4f,35,b3,25,0d,50,54,25,4b,00,81,00,b3,00,d1,00,71,4f,a9,40,\
  81,80,d1,c0,01,01,a4,73,00,a0,a0,40,2e,60,30,20,36,00,80,90,21,00,00,1a,00,\
  00,00,fc,00,44,45,4c,4c,20,55,33,30,31,34,0a,20,20,00,00,00,10,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,01,c8

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\WDF]


--- End code ---

Also note, if I go back to 0.11 and try and change refresh rates after running 0.14, they also fail to set the requested rate:


--- Code: ---D:\Utilities\RatRefresh>ratrefresh -debug -edidfile edid.txt -refresh 66.123
Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL4083\5&67fc0b1&0&UID4353\Device Parameters\EDID_OVERRIDE
Value 0
WantedRefreshRate 66.123
HexCurrentPixelClock 68ac
CurrentPixelClock 26796
HexHorizontalResolution 0a00
HorizontalResolution 2560
HexverticalResolution 0640
VerticalResolution 1600
HexHorizontalBlankingPixels 00a0
HorizontalBlankingPixels 160
HexVerticalBlankingLines 002e
VerticalBlankingLines 46
TotalHorizontalResolution 2720
TotalVerticalResolution 1646
CalculatedPixelClock 29604
HexCalculatedPixelClock 73a4
ReversedEdidHexCalculatedPixelClock a473
TotalChecksum 7736
Checksum 200
HexChecksum c8

--- End code ---

ufotest shows 59.972 Hz

I have to delete the registry entries and restore my backup

After deleting the registry entries and restoring and running the same command from above

ufotest shows 66.123 Hz

Please let me know what else I can do to assist.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version