I apologize for the delay in getting the debug logs, but work absolutely swamped me the past week. The relevant logs are as follows, running with 1920x1080 @ 59.94 as the Kodi/GUI resolution:
Playback of 1080p25 file with whitelist in place:
2019-05-03 18:32:34.599 T:3606049504 NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 25.000, 3D: false
2019-05-03 18:32:34.599 T:3606049504 DEBUG: Trying to find exact refresh rate
2019-05-03 18:32:34.600 T:3606049504 DEBUG: No exact whitelisted resolution matched, trying double refresh rate
2019-05-03 18:32:34.601 T:3606049504 DEBUG: No double whitelisted resolution matched, trying 3:2 pullback
2019-05-03 18:32:34.601 T:3606049504 DEBUG: No double refresh rate whitelisted resolution matched, trying current resolution
2019-05-03 18:32:34.601 T:3606049504 DEBUG: Current resolution doesn't match, trying default resolution
2019-05-03 18:32:34.602 T:3606049504 DEBUG: Default resolution doesn't provide reqired refreshrate, trying default resolution with double refreshrate
2019-05-03 18:32:34.603 T:3606049504 DEBUG: Default resolution doesn't provide reqired refreshrate, trying default resolution with 3:2 pullback
2019-05-03 18:32:34.604 T:3606049504 DEBUG: No whitelisted resolution matched
2019-05-03 18:32:34.604 T:3606049504 NOTICE: Display resolution ADJUST : 1920x1080 @ 59.94 - Full Screen (16) (weight: 0.000)
Playback of 1080p25 file with NO whitelist in place:
2019-05-03 18:39:14.531 T:3592594144 NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 25.000, 3D: false
2019-05-03 18:39:14.531 T:3592594144 DEBUG: Whitelist is empty using default one
2019-05-03 18:39:14.532 T:3592594144 DEBUG: Trying to find exact refresh rate
2019-05-03 18:39:14.532 T:3592594144 DEBUG: No exact whitelisted resolution matched, trying double refresh rate
2019-05-03 18:39:14.533 T:3592594144 DEBUG: No double whitelisted resolution matched, trying 3:2 pullback
2019-05-03 18:39:14.533 T:3592594144 DEBUG: No double refresh rate whitelisted resolution matched, trying current resolution
2019-05-03 18:39:14.533 T:3592594144 DEBUG: Current resolution doesn't match, trying default resolution
2019-05-03 18:39:14.534 T:3592594144 DEBUG: Default resolution doesn't provide reqired refreshrate, trying default resolution with double refreshrate
2019-05-03 18:39:14.535 T:3592594144 DEBUG: Default resolution doesn't provide reqired refreshrate, trying default resolution with 3:2 pullback
2019-05-03 18:39:14.535 T:3592594144 DEBUG: No whitelisted resolution matched
2019-05-03 18:39:14.535 T:3592594144 NOTICE: Display resolution ADJUST : 1920x1080 @ 59.94 - Full Screen (16) (weight: 0.000)
For comparison, playback of 1080p24 (23.976) file with whitelist:
2019-05-03 18:32:57.931 T:3570983648 NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 23.976, 3D: false
2019-05-03 18:32:57.931 T:3570983648 DEBUG: Trying to find exact refresh rate
2019-05-03 18:32:57.932 T:3570983648 DEBUG: Matched exact whitelisted Resolution 1920x1080 @ 23.98 - Full Screen (27)
2019-05-03 18:32:57.932 T:3570983648 NOTICE: Display resolution ADJUST : 1920x1080 @ 23.98 - Full Screen (27) (weight: 0.000)
And with NO whitelist:
2019-05-03 18:39:28.317 T:3592594144 NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 23.976, 3D: false
2019-05-03 18:39:28.317 T:3592594144 DEBUG: Whitelist is empty using default one
2019-05-03 18:39:28.317 T:3592594144 DEBUG: Trying to find exact refresh rate
2019-05-03 18:39:28.317 T:3592594144 DEBUG: Matched exact whitelisted Resolution 1920x1080 @ 23.98 - Full Screen (27)
2019-05-03 18:39:28.317 T:3592594144 NOTICE: Display resolution ADJUST : 1920x1080 @ 23.98 - Full Screen (27) (weight: 0.000)
So, it appears to actually perform a long series of checks to try to get a close match, but the one check it doesn’t perform that v17 did is a check for the correct refresh rate with a higher resolution. Is there any chance of getting that check re-implemented within OSMC, or would that have to be an upstream Kodi fix?
EDIT: Further testing. I saw in the logs that it was trying to match refresh rates at the “default”/“current” resolution, so I tried switching the GUI over to 3840x2160 @ 59.94 and playing back the 1080p25 file. It worked just fine, as the following log shows:
2019-05-03 19:21:20.034 T:3600233184 NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 25.000, 3D: false
2019-05-03 19:21:20.034 T:3600233184 DEBUG: Trying to find exact refresh rate
2019-05-03 19:21:20.034 T:3600233184 DEBUG: No exact whitelisted resolution matched, trying double refresh rate
2019-05-03 19:21:20.035 T:3600233184 DEBUG: No double whitelisted resolution matched, trying 3:2 pullback
2019-05-03 19:21:20.036 T:3600233184 DEBUG: No double refresh rate whitelisted resolution matched, trying current resolution
2019-05-03 19:21:20.036 T:3600233184 DEBUG: Current resolution doesn't match, trying default resolution
2019-05-03 19:21:20.036 T:3600233184 DEBUG: Matched fuzzy whitelisted Resolution 3840x2160 @ 25.00 - Full Screen (30)
2019-05-03 19:21:20.036 T:3600233184 NOTICE: Display resolution ADJUST : 3840x2160 @ 25.00 - Full Screen (30) (weight: 0.000)
I know you don’t recommend running OSMC on 2160p GUI resolutions due to the 1080p framebuffer, so it may still be optimal to try to implement the ability to check for matching refresh rates at higher resolutions than the target file (“fuzzy” matches in the log terms), but in the interim, leaving the OSMC GUI at 2160p59.94 at least results in proper refresh rate switching for all files.
Along that same line of thought, have you given any more consideration to adding the option to have OSMC render the GUI internally at 2160p so that the interface could look as clean and crisp as Kodi does on things like the NVIDIA Shield and other Android TV boxes?