You are not logged in.

#1 2021-01-10 11:10:32

bajczyk
Member
Registered: 2021-01-09
Posts: 3

[SOLVED] AMDGPU HDMI issue with resolution, refresh and audio on LG CX

Hello everyone,

I have a problem with setting correct resolution and refresh rate on my LG CX TV.

I'm using only vanilla repositories software, updated regularly, without any custom xorg.conf or .drirc.

Hardware used:
- Asus ROG STRIX OC AMD Vega64 GPU (with 2x HDMI 2.0b)
- Club3D 10m active HDMI 2.1 cable
- no-name 3m HDMI cable
- LG OLED65CX6LA TV
- ASUS VN279Q monitor

Changing GPU outputs and cables makes no difference. Behaviour differs depending on whether I'm using Xorg or Wayland:
- on Xorg: the only available refresh rates for 4K (both in KDE settings and xrandr) are: 24Hz, 25Hz and 30Hz, audio is fine.
- on Wayland: in addition to the options above I can also see 50Hz and 60Hz modes, but when activated, both result in 'chipmunk' like audio, everything seems speed-up, voices are high-pitched, etc.

When I try to use get-edid (both as user and sudo) it results in 'nothing was successful'.

Tested on kernels: linux, linux-zen. Compositors: kwin, kwin-lowlatency. All are the same.

Audio from the monitor is fine, until I switch the TV to 4K at 60Hz on Wayland, then it also gets broken the same way.

Switching output to the TV only doesn't help (even after disconnecting monitor's DP and rebooting).

Changing both Video and Audio modes on the TV side to 'Game', 'Standard', 'Movie', etc. doesn't help.

4K & 60Hz works on Windows (same machine), so I'd assume it's not a hardware problem.

Many thanks for any help and best of luck in 2021!

Last edited by bajczyk (2021-04-25 15:02:18)

Offline

#2 2021-01-11 21:10:59

Gosi
Member
From: Vienna, Austria
Registered: 2010-02-25
Posts: 100

Re: [SOLVED] AMDGPU HDMI issue with resolution, refresh and audio on LG CX

get-edid does not seem to work anymore with modern hardware.

But you can use the data from /sys/class/drm/*/edid to pipe it into parse-edid.

My monitor:

$ sudo parse-edid < /sys/class/drm/card0-DP-1/edid
Checksum Correct

Section "Monitor"
        Identifier "PL2530H"
        ModelName "PL2530H"
        VendorName "IVM"
        # Monitor Manufactured week 41 of 2018
        # EDID version 1.4
        # Digital Display
        DisplaySize 540 300
        Gamma 2.20
        Option "DPMS" "true"
        Horizsync 84-84
        VertRefresh 40-75
        # Maximum pixel clock is 180MHz
        #Not giving standard mode: 1152x720, 60Hz
        #Not giving standard mode: 1280x960, 60Hz
        #Not giving standard mode: 1280x1024, 60Hz
        #Not giving standard mode: 1600x1200, 60Hz
        #Not giving standard mode: 1680x1050, 60Hz
        #Not giving standard mode: 1440x900, 60Hz
        #Not giving standard mode: 1440x900, 75Hz
        #Not giving standard mode: 1920x1080, 60Hz

        #Extension block found. Parsing...
        Modeline        "Mode 16" +hsync +vsync 
        Modeline        "Mode 0" +hsync +vsync 
        Modeline        "Mode 1" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
        Modeline        "Mode 2" 74.250 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync interlace
        Modeline        "Mode 3" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
        Modeline        "Mode 4" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
        Modeline        "Mode 5" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
        Modeline        "Mode 6" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
        Modeline        "Mode 7" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
        Modeline        "Mode 8" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
        Modeline        "Mode 9" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
        Modeline        "Mode 10" 74.250 1920 2448 2492 2640 1080 1082 1089 1125 +hsync +vsync interlace
        Modeline        "Mode 11" 27.027 1440 1478 1602 1716 480 484 487 525 -hsync -vsync interlace
        Modeline        "Mode 12" 27.027 1440 1478 1602 1716 480 484 487 525 -hsync -vsync interlace
        Modeline        "Mode 13" 27.000 1440 1464 1590 1728 576 578 581 625 -hsync -vsync interlace
        Modeline        "Mode 14" 27.000 1440 1464 1590 1728 576 578 581 625 -hsync -vsync interlace
        Modeline        "Mode 15" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
        Modeline        "Mode 17" +hsync +vsync interlace
        Modeline        "Mode 18" +hsync +vsync 
        Modeline        "Mode 19" +hsync -vsync 
        Option "PreferredMode" "Mode 16"
EndSection

Also what is the output of

$ xrandr

But I am afraid that in general HDMI support is not as good as with Windows or gaming consoles.
https://www.phoronix.com/scan.php?page= … Hurts-Open

Last edited by Gosi (2021-01-11 21:15:07)

Offline

#3 2021-01-12 21:19:07

bajczyk
Member
Registered: 2021-01-09
Posts: 3

Re: [SOLVED] AMDGPU HDMI issue with resolution, refresh and audio on LG CX

Hi,

Thanks for the tip about parsing edid directly from /sys, I wouldn't thought about it.

Here's the output for my HDMI connection:

Section "Monitor"
	Identifier "LG TV SSCR"
	ModelName "LG TV SSCR"
	VendorName "GSM"
	# Monitor Manufactured week 1 of 2020
	# EDID version 1.3
	# Digital Display
	DisplaySize 1600 900
	Gamma 2.20
	Option "DPMS" "false"
	Horizsync 30-135
	VertRefresh 24-120
	# Maximum pixel clock is 300MHz
	#Not giving standard mode: 640x480, 60Hz
	#Not giving standard mode: 800x600, 60Hz
	#Not giving standard mode: 1024x768, 60Hz
	#Not giving standard mode: 1152x864, 60Hz
	#Not giving standard mode: 1280x1024, 60Hz
	#Not giving standard mode: 1920x1080, 60Hz

	#Extension block found. Parsing...
#WARNING: I may have missed a mode (CEA mode 95)
#DOUBLE WARNING: It's your first mode, too, so this may actually be important.
#WARNING: I may have missed a mode (CEA mode 93)
#WARNING: I may have missed a mode (CEA mode 94)
#WARNING: I may have missed a mode (CEA mode 98)
#WARNING: I may have missed a mode (CEA mode 99)
#WARNING: I may have missed a mode (CEA mode 100)
#WARNING: I may have missed a mode (CEA mode 63)
#WARNING: I may have missed a mode (CEA mode 64)
	Modeline 	"Mode 16" +hsync +vsync 
	Modeline 	"Mode 0" +hsync +vsync 
	Modeline 	"Mode 1" +hsync +vsync 
	Modeline 	"Mode 2" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 3" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 4" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 5" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 6" 74.250 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync interlace
	Modeline 	"Mode 7" 74.250 1920 2448 2492 2640 1080 1082 1089 1125 +hsync +vsync interlace
	Modeline 	"Mode 8" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
	Modeline 	"Mode 9" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
	Modeline 	"Mode 10" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
	Modeline 	"Mode 11" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 12" 74.250 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 13" 74.250 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 14" 27.000 1440 1464 1590 1728 576 578 581 625 -hsync -vsync interlace
	Modeline 	"Mode 15" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
	Option "PreferredMode" "Mode 16"
EndSection

And here's my xrandr (with both screens connected):

Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   1920x1080     60.00*+  50.00    59.94  
   1600x1200     60.00  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1366x768      59.79  
   1280x800      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm
   3840x2160     30.00*+  25.00    24.00    29.97    23.98  
   4096x2160     30.00    25.00    24.00    29.97    23.98  
   1920x1200     30.00  
   1920x1080    120.00   100.00   119.88    60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1600x1200     30.00  
   1680x1050     30.00  
   1280x1024     60.02  
   1440x900      30.00  
   1360x768      60.02  
   1280x800      30.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
HDMI-A-1 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)

Offline

#4 2021-04-24 00:10:13

CaptainVascular
Member
Registered: 2021-04-23
Posts: 1

Re: [SOLVED] AMDGPU HDMI issue with resolution, refresh and audio on LG CX

After hours and hours of searching for an answer for the "chipmunk" audio issue, I finally found this:
https://github.com/swaywm/sway/issues/4 … -575667151

Bottom line, find the HDR or UHD Deep Color setting on your TV and enable it for the HDMI port that your PC is connected to. Worked for me on my LG TV by going into Settings -> General -> HDMI ULTRA HD Deep Color.

I am also adding this workaround to the Arch Wiki.

Last edited by CaptainVascular (2021-04-24 00:16:38)

Offline

#5 2021-04-25 14:59:58

bajczyk
Member
Registered: 2021-01-09
Posts: 3

Re: [SOLVED] AMDGPU HDMI issue with resolution, refresh and audio on LG CX

CaptainVascular wrote:

After hours and hours of searching for an answer for the "chipmunk" audio issue, I finally found this:
https://github.com/swaywm/sway/issues/4 … -575667151

Bottom line, find the HDR or UHD Deep Color setting on your TV and enable it for the HDMI port that your PC is connected to. Worked for me on my LG TV by going into Settings -> General -> HDMI ULTRA HD Deep Color.

I am also adding this workaround to the Arch Wiki.

Yes, that worked for me as well! Now I have both 4K@60Hz and working audio - thank you!

Offline

Board footer

Powered by FluxBB