Win HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players
My bad.  I don't have a 1080 display anymore, just 2160.  So, can't test 1080, only 2160.  This should work for 1080 though.  Let me know.  It should look exactly like this.  Edit with notepad+ to check.  Note the 59, 24, and 60.

I assume you're trying to play 3D and your display is switching into 3D automatically. Isn't that the goal? Difficult for me to test 1080 stuff anymore.... well, impossible. Match refresh rate in Kodi should take care of this resolution change code. Can't even remember why it was needed anymore tbh? I think it I needed it for things like desktop video from flash or something that did not match streamed video at the time? I dunno, gettin' too old for this I guess...... Anyway, hope this helps you and thanks for bringing it to my attention in the event it will help others too.

Code:
(function() {
      var refreshRate = 0;

      // Get current refresh rate

      var wmiService = GetObject('WinMgmts://./root/cimv2');
      refreshRate = new Enumerator(
          wmiService.ExecQuery('SELECT * FROM Win32_VideoController WHERE Availability <> 8')
      ).item(0).CurrentRefreshRate;
     
      if (typeof refreshRate != 'number' || refreshRate === 0) {
          WScript.Echo('Duh. Cannot determine current refresh rate.');
      } else {

          // Run QRes.exe to change refresh rate

          var fs = new ActiveXObject('Scripting.FileSystemObject');
          var shell = new ActiveXObject('WScript.Shell');
          shell.Run(fs.GetAbsolutePathName(fs.BuildPath(
              fs.GetParentFolderName(WScript.ScriptFullName), 'QRes.exe')
              ) + ' /x 1920 /y 1080 /r:' + (refreshRate >= 59 ? 24 : 60), 0, true);
      }
})();
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players
W10/1909 MPC-BE\HC PDVD19 DVDFab3&5 KODI 19 PotPlayer 960-4GB/RGB 4:4:4/Desktop=60Hz/Video=Matched Refresh rates 8/12bit/65JS8500 UHD HDR 3D
Reply
 
Thread Rating:
  • 39 Vote(s) - 4.49 Average


Messages In This Thread
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:20
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:29
RE: Kodi 3D Guide - by michaelsammler - 2015-06-22, 00:38
RE: Kodi 3D Guide - by brazen1 - 2015-06-23, 17:15
RE: Kodi 3D Guide - by michaelsammler - 2015-06-24, 02:23
RE: Kodi 3D Guide - by brazen1 - 2015-06-24, 17:22
RE: Kodi 3D Guide - by michaelsammler - 2015-06-25, 09:26
RE: HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players - by brazen1 - 2017-11-05, 00:58
HELP! - by brazen1 - 2018-08-22, 18:50
RE: HELP! - by zxaura1 - 2018-08-24, 09:32
Problem with DXVA scaling videos - by obstler - 2018-10-27, 10:13


Logout Mark Read Team Forum Stats Members Help
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players4.4939