[mythtv-users] Skewed text and video display on widescreen 5120x1440

Alain mythuser at alain.homeunix.org
Thu Jan 14 18:08:59 UTC 2021


Hi,

     Thanks for taking a look, here is the EDID:

     EDID:
         00ffffffffffff00410c5409ae0a0000
         221e0103807722782edc41ac5047a526
         115054bfef00d1c0b300950081808140
         81c0010101011a6800a0f0381f403020
         3a00a9504100001a000000ff00415530
         32303334303032373334000000fc0050
         484c2034393850390a202020000000fd
         00304b1e723c000a2020202020200246
         02033af150101f051404130312021101
         60615d5e5f230907078301000067030c
         001000003c67d85dc401788000e30f00
         18681a00000101304be6328200a0f038
         1f4030203a00a9504100001aa073006a
         a0a0295008203500a9504100001a565e
         00a0a0a0295030203500a9504100001e
         000000000000000000000000000000cb
         7012790000030128bed60008ff139f00
         2f801f009f0528000200090033b70008
         ff139f002f801f009f05280002000900
         00000000000000000000000000000000
         00000000000000000000000000000000
         00000000000000000000000000000000
         00000000000000000000000000000000
         00000000000000000000000000000f90

Alain

On 14.01.21 11:16, Mark Kendall wrote:
> On Mon, 11 Jan 2021 at 17:12, Alain <mythuser at alain.homeunix.org> wrote:
>> Hi,
>>
>>     Setting the Aspect Ratio to "0% {32:9}"  fixes the video display which is great and a bit unexpected as the GUI is still streched out with the characters far too big.
> Well - some good news at least:)
>
> To be honest I'm not entirely sure how well any theme will cope with a
> screen that wide; as they are generally designed for 16:9 or 4:3.
>
> That said, I suspect the font sizing/scaling is out as I presume
> somewhere in Qt/myth it is using the DPI figure to work out how to
> scale the fonts properly - and presumably the DPI is wrong. (It's not
> a part of the code I've ever really looked at).
>
>>     I'm including the log. As for the EDID, xrandr gets it right, but if I then decode the EDID HEX data that it provides, I don't see the 5120x1440 resolution.
> The mode description for 5120x1440 is buried in an EDID extension -
> xrandr is probably up to date whereas edid-decode isn't. Not something
> to worry about really.
>
> The bigger issue is why xrandr (and qt) do not pull out the display
> size correctly (but edid-decode seems to find it OK).
>
> Can you post the edid?
>
> Regards
> Mark
>
>>        xrandr --verbose
>>
>> Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
>> ...
>> HDMI-0 connected 5120x1440+0+0 (0x1be) normal (normal left inverted right x axis y axis) 1mm x 1mm
>> ...
>>
>>    3840x1080 (0x1bd) 266.500MHz +HSync -VSync +preferred
>>          h: width  3840 start 3888 end 3920 total 4000 skew    0 clock  66.62KHz
>>          v: height 1080 start 1083 end 1093 total 1111           clock  59.97Hz
>>    5120x1440 (0x1be) 549.750MHz +HSync -VSync *current
>>          h: width  5120 start 5168 end 5200 total 5280 skew    0 clock 104.12KHz
>>          v: height 1440 start 1443 end 1453 total 1481           clock  70.30Hz
>>    5120x1440 (0x1bf) 469.000MHz +HSync -VSync
>>          h: width  5120 start 5168 end 5200 total 5280 skew    0 clock  88.83KHz
>>          v: height 1440 start 1443 end 1453 total 1481           clock  59.98Hz
>>    3840x2160 (0x1c0) 593.410MHz +HSync +VSync
>>          h: width  3840 start 4016 end 4104 total 4400 skew    0 clock 134.87KHz
>>          v: height 2160 start 2168 end 2178 total 2250           clock  59.94Hz
>> ,,,
>>
>>    If I then decode the raw EDID:
>>
>>      cat /tmp/toto | edid-decode
>> edid-decode (hex):
>>
>> 00 ff ff ff ff ff ff 00 41 0c 54 09 ae 0a 00 00
>> ....
>>
>> EDID version: 1.3
>> Manufacturer: PHL Model 2388 Serial Number 32
>> Made in week 34 of 2020
>> Digital display
>> Maximum image size: 119 cm x 34 cm
>> Gamma: 2.20
>> DPMS levels: Off
>> RGB color display
>> Default (sRGB) color space is primary color space
>> First detailed timing is preferred timing
>> Color Characteristics
>>    Red:   0.6748, 0.3134
>>    Green: 0.2802, 0.6445
>>    Blue:  0.1494, 0.0664
>>    White: 0.3125, 0.3291
>> Established Timings I & II
>>      720x400    70.082 Hz   9:5    31.467 kHz  28.320 MHz (IBM)
>>      640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (DMT)
>>      640x480    66.667 Hz   4:3    35.000 kHz  30.240 MHz (Apple)
>>      640x480    72.809 Hz   4:3    37.861 kHz  31.500 MHz (DMT)
>>      640x480    75.000 Hz   4:3    37.500 kHz  31.500 MHz (DMT)
>>      800x600    56.250 Hz   4:3    35.156 kHz  36.000 MHz (DMT)
>>      800x600    60.317 Hz   4:3    37.879 kHz  40.000 MHz (DMT)
>>      800x600    72.188 Hz   4:3    48.077 kHz  50.000 MHz (DMT)
>>      800x600    75.000 Hz   4:3    46.875 kHz  49.500 MHz (DMT)
>>      832x624    74.551 Hz   4:3    49.726 kHz  57.284 MHz (Apple)
>>     1024x768    60.004 Hz   4:3    48.363 kHz  65.000 MHz (DMT)
>>     1024x768    70.069 Hz   4:3    56.476 kHz  75.000 MHz (DMT)
>>     1024x768    75.029 Hz   4:3    60.023 kHz  78.750 MHz (DMT)
>>     1280x1024   75.025 Hz   5:4    79.976 kHz 135.000 MHz (DMT)
>> Standard Timings
>>     1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (DMT)
>>     1680x1050   59.954 Hz  16:10   65.290 kHz 146.250 MHz (DMT)
>>     1440x900    59.887 Hz  16:10   55.935 kHz 106.500 MHz (DMT)
>>     1280x1024   60.020 Hz   5:4    63.981 kHz 108.000 MHz (DMT)
>>     1280x960    60.000 Hz   4:3    60.000 kHz 108.000 MHz (DMT)
>>     1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz (DMT)
>> Detailed mode: Clock 266.500 MHz, 1193 mm x 336 mm
>>                 3840 3888 3920 4000 ( 48  32  80)
>>                 1080 1083 1093 1111 (  3  10  18)
>>                 +hsync -vsync
>>                 VertFreq: 59.968 Hz, HorFreq: 66.625 kHz
>> Display Product Serial Number: 32
>> Display Product Name: PHL 498P9
>> Display Range Limits
>>    Monitor ranges (GTF): 48-75 Hz V, 30-114 kHz H, max dotclock 600 MHz
>> Has 2 extension blocks
>> Checksum: 0x46
>>
>> ----------------
>>
>> CTA-861 Extension Block Revision 3
>> Underscans PC formats by default
>> Basic audio support
>> Supports YCbCr 4:4:4
>> Supports YCbCr 4:2:2
>> 1 native detailed modes
>> 54 bytes of CTA data blocks
>>    Video Data Block
>>       1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (VIC  16)
>>       1920x1080   50.000 Hz  16:9    56.250 kHz 148.500 MHz (VIC  31)
>>       1920x1080i  60.000 Hz  16:9    33.750 kHz  74.250 MHz (VIC   5)
>>       1920x1080i  50.000 Hz  16:9    28.125 kHz  74.250 MHz (VIC  20)
>>       1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz (VIC   4)
>>       1280x720    50.000 Hz  16:9    37.500 kHz  74.250 MHz (VIC  19)
>>        720x480    59.940 Hz  16:9    31.469 kHz  27.000 MHz (VIC   3)
>>        720x576    50.000 Hz  16:9    31.250 kHz  27.000 MHz (VIC  18)
>>        720x480    59.940 Hz   4:3    31.469 kHz  27.000 MHz (VIC   2)
>>        720x576    50.000 Hz   4:3    31.250 kHz  27.000 MHz (VIC  17)
>>        640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz (VIC   1)
>>       3840x2160   50.000 Hz  16:9   112.500 kHz 594.000 MHz (VIC  96)
>>       3840x2160   60.000 Hz  16:9   135.000 kHz 594.000 MHz (VIC  97)
>>       3840x2160   24.000 Hz  16:9    54.000 kHz 297.000 MHz (VIC  93)
>>       3840x2160   25.000 Hz  16:9    56.250 kHz 297.000 MHz (VIC  94)
>>       3840x2160   30.000 Hz  16:9    67.500 kHz 297.000 MHz (VIC  95)
>>    Audio Data Block
>>      Linear PCM, max channels 2
>>        Supported sample rates (kHz): 48 44.1 32
>>        Supported sample sizes (bits): 24 20 16
>>    Speaker Allocation Data Block
>>      Speaker map:
>>        FL/FR - Front Left/Right
>>    Vendor-Specific Data Block, OUI 0x000c03 (HDMI)
>>      Source physical address 1.0.0.0
>>      Maximum TMDS clock: 300 MHz
>>    Vendor-Specific Data Block, OUI 0xc45dd8 (HDMI Forum)
>>      Version: 1
>>      Maximum TMDS Character Rate: 600 MHz
>>      SCDC Present
>>    Extended tag: YCbCr 4:2:0 Capability Map Data Block
>>       3840x2160   50.000 Hz  16:9   112.500 kHz 594.000 MHz (VIC  96)
>>       3840x2160   60.000 Hz  16:9   135.000 kHz 594.000 MHz (VIC  97)
>>    Vendor-Specific Data Block, OUI 0x00001a (AMD)
>>      01 01 30 4b e6  ..0K.
>> Detailed mode: Clock 333.300 MHz, 1193 mm x 336 mm
>>                 3840 3888 3920 4000 ( 48  32  80)
>>                 1080 1083 1093 1111 (  3  10  18)
>>                 +hsync -vsync
>>                 VertFreq: 75.000 Hz, HorFreq: 83.325 kHz
>> Detailed mode: Clock 296.000 MHz, 1193 mm x 336 mm
>>                 2560 2568 2600 2666 (  8  32  66)
>>                 1440 1443 1448 1481 (  3   5  33)
>>                 +hsync -vsync
>>                 VertFreq: 74.968 Hz, HorFreq: 111.028 kHz
>> Detailed mode: Clock 241.500 MHz, 1193 mm x 336 mm
>>                 2560 2608 2640 2720 ( 48  32  80)
>>                 1440 1443 1448 1481 (  3   5  33)
>>                 +hsync +vsync
>>                 VertFreq: 59.951 Hz, HorFreq: 88.787 kHz
>> Checksum: 0xcb
>>
>> ----------------
>>
>> DisplayID Extension Block Version 1.2 Length 121 Extension Count 0
>> Display Product Type: Extension Section
>>    Video Timing Modes Type 1 - Detailed Timings Data Block
>>      Detailed mode: Clock 549.750 MHz, aspect undefined, no 3D stereo
>>                     5120 5168 5200 5280 ( 48  32  80)
>>                     1440 1443 1453 1481 (  3  10  28)
>>                     +hsync -vsync
>>                     VertFreq: 70.303 Hz, HorFreq: 104.119 kHz
>>      Detailed mode: Clock 469.000 MHz, aspect undefined, no 3D stereo
>>                     5120 5168 5200 5280 ( 48  32  80)
>>                     1440 1443 1453 1481 (  3  10  28)
>>                     +hsync -vsync
>>                     VertFreq: 59.977 Hz, HorFreq: 88.826 kHz
>>    Checksum: 0xf
>> Checksum: 0x90
>>
>>
>>
>> Regards,
>>
>> Alain
>>
>>
>>
>> On 10.01.21 18:33, Mark Kendall wrote:
>>
>> On Sun, 10 Jan 2021 at 15:22, Alain <mythuser at alain.homeunix.org> wrote:
>>
>> Hi,
>>       I do not have the choice of "Auto (Assume...)", I only have the
>> "Auto" choice or more specific ones. But whichever I choose, the
>> results seems to be the same visually.
>>
>> Sorry - my mistake. I thought that code had gone into 0.31/fixes but
>> my recollection was wrong.
>>
>> Essentially there looks to be a problem with your display's EDID. Both
>> Qt and MythTV get your display size wrong and calculate an aspect
>> ratio of 1 (and there is another issue flagged that is EDID related).
>>
>> As James said, does it not just work if you set the aspect ratio to
>> 32:9? which I assume is your display's aspect ratio?
>>
>> However, I do expect this ratio
>> to be related to the mythfrontend window size rather than the display
>> size, which is not what other comments seemed to imply.
>>
>> The code that calculates where to place your video on the screen needs
>> both the screen aspect ratio and the pixel aspect ratio. Most modern
>> displays have a pixel aspect ratio of 1 - i.e. square pixels. For
>> older displays, this can only be calculated from the screen dimensions
>> and the resolution.
>>
>> In master/0.32, the new default is to assume a pixel aspect ratio of
>> 1:1, which would in your case just work out at 32:9.
>>
>> If setting the aspect ratio explicitly to 32:9  does not work, then
>> please post another log with that setting in use - as that would
>> suggest a bug.
>>
>> Regards
>> Mark
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org




More information about the mythtv-users mailing list