How to get Kodi to ignore incorrect TV PAR?
#16
Interesting thought. There is a overscan setting, and it is set to the "no overscan" mode. I just re-enabled debugging and tried the set on max overscan... no change.

I can't seem to figure out how to get Xorg into debug mode. But I can offer you this for now:

http://sprunge.us/IJeV

I honestly wish I could contribute code to this project, but I only know dumpy old Perl. I mean I can read your code just fine, but am very much out of my league with C.
Reply
#17
Overwriting an EDID in OpenELEC is not that easy, but doable:

http://wiki.openelec.tv/index.php/Config...#tab=Intel <- see the last part.
Try this EDID: https://dl.dropboxusercontent.com/u/5572...arantz.bin

Make sure you download it and it is exactly 256 Bytes in size to /storage/.config/firmware/edid.bin

The edit the relevant autostart.sh as the wiki says.

Good luck.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#18
Okay!

So, first things, I updated to OE RC3.

Next, I tried replacing the EDID... and it does seem to have done something. I can only see resolutions up to 1920x1080 now, but I also no longer see the one pixel error. Debug log shows the following:

Code:
08:33:31 T:140073483683712    INFO: Available videomodes (xrandr):
08:33:31 T:140073483683712    INFO: Output 'HDMI1' has 47 modes
08:33:31 T:140073483683712    INFO: ID:0x48 Name:1920x1080 Refresh:60.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xa9 Name:1920x1080 Refresh:50.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xaa Name:1920x1080 Refresh:59.940201 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xad Name:1920x1080 Refresh:30.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xae Name:1920x1080 Refresh:25.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xaf Name:1920x1080 Refresh:24.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xb1 Name:1920x1080 Refresh:29.970100 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xb2 Name:1920x1080 Refresh:23.976080 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xab Name:1920x1080i Refresh:30.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xac Name:1920x1080i Refresh:25.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xb0 Name:1920x1080i Refresh:29.970100 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xb3 Name:1600x1200 Refresh:60.000000 Width:1600 Height:1200
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xb4 Name:1680x1050 Refresh:59.883251 Width:1680 Height:1050
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.111111
08:33:31 T:140073483683712    INFO: ID:0xb5 Name:2880x576 Refresh:50.000000 Width:2880 Height:576
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.355556
08:33:31 T:140073483683712    INFO: ID:0xb6 Name:2880x480 Refresh:60.000000 Width:2880 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.296296
08:33:31 T:140073483683712    INFO: ID:0xb7 Name:2880x480 Refresh:59.940060 Width:2880 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.296296
08:33:31 T:140073483683712    INFO: ID:0xb8 Name:1280x1024 Refresh:75.024673 Width:1280 Height:1024
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.422222
08:33:31 T:140073483683712    INFO: ID:0xb9 Name:1280x1024 Refresh:60.019741 Width:1280 Height:1024
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.422222
08:33:31 T:140073483683712    INFO: ID:0xba Name:1440x900 Refresh:74.984428 Width:1440 Height:900
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.111111
08:33:31 T:140073483683712    INFO: ID:0xbb Name:1440x900 Refresh:59.901459 Width:1440 Height:900
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.111111
08:33:31 T:140073483683712    INFO: ID:0xbc Name:1280x960 Refresh:60.000000 Width:1280 Height:960
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xbd Name:1360x768 Refresh:60.015160 Width:1360 Height:768
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.003922
08:33:31 T:140073483683712    INFO: ID:0xbe Name:1280x800 Refresh:59.909550 Width:1280 Height:800
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.111111
08:33:31 T:140073483683712    INFO: ID:0xbf Name:1152x864 Refresh:75.000000 Width:1152 Height:864
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xc0 Name:1280x720 Refresh:60.000000 Width:1280 Height:720
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xc1 Name:1280x720 Refresh:50.000000 Width:1280 Height:720
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xc2 Name:1280x720 Refresh:59.940201 Width:1280 Height:720
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000
08:33:31 T:140073483683712    INFO: ID:0xc3 Name:1440x576 Refresh:50.000000 Width:1440 Height:576
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.711111
08:33:31 T:140073483683712    INFO: ID:0xc4 Name:1024x768 Refresh:75.076218 Width:1024 Height:768
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xc5 Name:1024x768 Refresh:70.069359 Width:1024 Height:768
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xc6 Name:1024x768 Refresh:60.003841 Width:1024 Height:768
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xc7 Name:1440x480 Refresh:60.000000 Width:1440 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.592593
08:33:31 T:140073483683712    INFO: ID:0xc8 Name:1440x480 Refresh:59.940060 Width:1440 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.592593
08:33:31 T:140073483683712    INFO: ID:0xc9 Name:832x624 Refresh:74.551270 Width:832 Height:624
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xca Name:800x600 Refresh:72.187569 Width:800 Height:600
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xcb Name:800x600 Refresh:75.000000 Width:800 Height:600
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xcc Name:800x600 Refresh:60.316540 Width:800 Height:600
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xcd Name:720x576 Refresh:50.000000 Width:720 Height:576
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.422222
08:33:31 T:140073483683712    INFO: ID:0xce Name:720x480 Refresh:60.000000 Width:720 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.185185
08:33:31 T:140073483683712    INFO: ID:0xcf Name:720x480 Refresh:59.940060 Width:720 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.185185
08:33:31 T:140073483683712    INFO: ID:0xd0 Name:640x480 Refresh:75.000000 Width:640 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xd1 Name:640x480 Refresh:72.808800 Width:640 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xd2 Name:640x480 Refresh:66.666672 Width:640 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xd3 Name:640x480 Refresh:60.000000 Width:640 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xd4 Name:640x480 Refresh:59.940479 Width:640 Height:480
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.333333
08:33:31 T:140073483683712    INFO: ID:0xd5 Name:720x400 Refresh:70.081657 Width:720 Height:400
08:33:31 T:140073483683712    INFO: Pixel Ratio: 0.987654
08:33:31 T:140073483683712    INFO: ID:0xd6 Name:1920x1080@50p Refresh:50.000000 Width:1920 Height:1080
08:33:31 T:140073483683712    INFO: Pixel Ratio: 1.000000

So, clearly a ton of resolutions intended for some other monitor. Is there some way to extract the EDID from my current TV, fix the dimension issue with it, and replace it in this way?
Reply
#19
Nice, you made it :-)

No need to ignore them, just put your TV to 1920 and all is fine.

There are some EDID tools for windows.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#20
Hmm. Seems there's always a catch. :-) Now, I need to figure out how to re-enable 4k modes. I found a tool that purports to read the EDID directly, and it certainly read something that seems appropriate, however I cannot find any reference in it to the TV supporting 4k video modes. Is this because these tools are reading EDID v1.3, and not v2.0?

Of note, this software did save it as a 256-byte .BIN file. I'm tempted to edit the screen's dimensions to a proper 16x9 value, and try loading it.
Reply
#21
Yeah, please try that and dcoument it! Thanks much.

PS: You can add a 4K mode via xorg.conf
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#22
Okay, progress!

I edited the "screen dimensions" in my TV's original EDID to 16x9, and nothing changed.

Then I edited the dimensions of the preferred resolution to 16x9... and:

Code:
10:30:07 T:139692761737088    INFO: Available videomodes (xrandr):
10:30:07 T:139692761737088    INFO: Output 'HDMI1' has 28 modes
10:30:07 T:139692761737088    INFO: ID:0x48 Name:1920x1080 Refresh:60.000000 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb0 Name:1920x1080 Refresh:59.940201 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb2 Name:1920x1080 Refresh:30.000000 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb3 Name:1920x1080 Refresh:24.000000 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb5 Name:1920x1080 Refresh:29.970100 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb6 Name:1920x1080 Refresh:23.976080 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xa9 Name:4096x2160 Refresh:24.000000 Width:4096 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 0.937500
10:30:07 T:139692761737088    INFO: ID:0xaa Name:4096x2160 Refresh:23.976080 Width:4096 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 0.937500
10:30:07 T:139692761737088    INFO: ID:0xab Name:3840x2160 Refresh:30.000000 Width:3840 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xac Name:3840x2160 Refresh:25.000000 Width:3840 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xad Name:3840x2160 Refresh:24.000000 Width:3840 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xae Name:3840x2160 Refresh:29.970100 Width:3840 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xaf Name:3840x2160 Refresh:23.976080 Width:3840 Height:2160
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb1 Name:1920x1080i Refresh:30.000000 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb4 Name:1920x1080i Refresh:29.970100 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb7 Name:1600x900 Refresh:59.982471 Width:1600 Height:900
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xb8 Name:1280x1024 Refresh:60.019741 Width:1280 Height:1024
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.422222
10:30:07 T:139692761737088    INFO: ID:0xb9 Name:1280x720 Refresh:60.000000 Width:1280 Height:720
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xba Name:1280x720 Refresh:59.940201 Width:1280 Height:720
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000
10:30:07 T:139692761737088    INFO: ID:0xbb Name:1024x768 Refresh:60.003841 Width:1024 Height:768
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.333333
10:30:07 T:139692761737088    INFO: ID:0xbc Name:1440x480i Refresh:30.000000 Width:1440 Height:480
10:30:07 T:139692761737088    INFO: Pixel Ratio: 0.592593
10:30:07 T:139692761737088    INFO: ID:0xbd Name:1440x480i Refresh:29.970030 Width:1440 Height:480
10:30:07 T:139692761737088    INFO: Pixel Ratio: 0.592593
10:30:07 T:139692761737088    INFO: ID:0xbe Name:800x600 Refresh:60.316540 Width:800 Height:600
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.333333
10:30:07 T:139692761737088    INFO: ID:0xbf Name:720x480 Refresh:60.000000 Width:720 Height:480
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.185185
10:30:07 T:139692761737088    INFO: ID:0xc0 Name:720x480 Refresh:59.940060 Width:720 Height:480
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.185185
10:30:07 T:139692761737088    INFO: ID:0xc1 Name:640x480 Refresh:60.000000 Width:640 Height:480
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.333333
10:30:07 T:139692761737088    INFO: ID:0xc2 Name:640x480 Refresh:59.940479 Width:640 Height:480
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.333333
10:30:07 T:139692761737088    INFO: ID:0xc3 Name:1920x1080@50p Refresh:50.000000 Width:1920 Height:1080
10:30:07 T:139692761737088    INFO: Pixel Ratio: 1.000000

Perfect 1.000000 PAR! And if you note, somehow my 4k resolutions are still in there too!
Reply
#23
Perfect, So you did, what Sony was not able to do.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#24
Yeah... for some inane reason they felt it was more important to enter the dimensionally accurate measurements of 1085 x 610 mm for both screen size and preferred resolution size (decimals aren't supported). That unfortunately works out to a 1.77868852 PAR... which is precisely 1.0005123 off from true 16x9. Close... but for Kodi, not close enough.

They should have gone with 1088 x 612 mm to maintain a proper 16x9 aspect ratio - at least for the preferred resolution timing, which is what Kodi seems to calculate PAR from. I just entered 16 x 9 there, which is exactly what the Marantz EDID you had me download uses.

Question. Does Kodi / OE in any way use the supported audio format section from the EDID? I'm guessing it doesn't, as I can still stream HD audio formats despite the EDID only indicating support for AC3 and PCM... and also since the bitstream device still shows as my Marantz receiver despite the forced EDID. Just wondering whether I should capture the EDID after it's gone through my receiver, vs before.
Reply
#25
Currently not, we just add all of the formats, we only use ALSA to check if 192 khz is possible, if that is the case, we enable DTS-HD, TrueHD, EAC3, cause we most of the time cannot trust EDID.

See: https://github.com/xbmc/xbmc/blob/master....cpp#L1524 <- all are added and now: https://github.com/xbmc/xbmc/blob/master....cpp#L2307

The handshake happens internally, see /sys/class/... codec something to see what it detects.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#26
Okay, nothing to worry about then. If it ever becomes necessary, I can try to remember how I did all this!

Since these screen dimensions are actually based on the physical size of the TV (it's 49" nominal, which is what those measurements work out to), I suspect that all sizes (49, 55, 65, 70) are going to have slightly different inaccurate PARs reported. I also doubt the X850B is the only series out there to have this issue - just that the average user isn't quite as anal about perfection as me! ;-)

EDIT

While I was at it, I decided to add 1080p50 to the EDID so I didn't have to do it via xrandr modelines... and it works!
Reply
#27
(2014-12-23, 06:22)fritsch Wrote: Currently not, we just add all of the formats, we only use ALSA to check if 192 khz is possible, if that is the case, we enable DTS-HD, TrueHD, EAC3, cause we most of the time cannot trust EDID.

See: https://github.com/xbmc/xbmc/blob/master....cpp#L1524 <- all are added and now: https://github.com/xbmc/xbmc/blob/master....cpp#L2307

The handshake happens internally, see /sys/class/... codec something to see what it detects.


It would appear that this policy has changed. I only just noticed that I wasn't getting any audio options besides for plain AC3 and DTS. I had to remove my custom EDID to get back the HD audio options.

Any workaround?
Reply
#28
Okay, never mind.

Since this has obviously changed, I re-figured out how to capture the EDID after it's been through my receiver, as opposed to straight from the display (took a bit - 8 months ago I even commented on that potential issue, LOL) and, after fixing the bad PAR and adding 50hz support, I'm back in business with full HD audio.
Reply
#29
What exactly did change? The way edid was parsed with a kernel change? Kodi did not alter anything here.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#30
Not sure. On newer builds of Kodi, HD audio formats were no longer being offered if I was using my custom EDID (which only indicates the TV's support for AC3/PCM). The settings screen only had AC3/DTS options, the rest were simply missing.

If I prevented my custom EDID from loading, the HD audio formats returned.

Now that my custom EDID is captured from the receiver, and not the TV, and includes all the receiver's audio formats, those options are once again being presented to me in Kodi.

So, looks like Kodi is in fact reading audio format support from the EDID, and hiding any formats that aren't indicated - unlike earlier, when it just presented them all and let you decide.
Reply

Logout Mark Read Team Forum Stats Members Help
How to get Kodi to ignore incorrect TV PAR?0