Video / audio troubles with RX 570 / stretch

Use this forum for questions related to graphics, sound or desktop environments.

Video / audio troubles with RX 570 / stretch

Postby oddhack » December 16th, 2018, 4:25 am

(Also posted on forums.debian.net; hopefully that's not bad etiquette, I'm unclear on the relationship between the two boards)

I just installed stretch on a new machine (Ryzen 5 2600 / AMD RX 570 GPU / AsRock B450-M Pro / Samsung 43NU6950 display), and am having various display driver-related (I think) difficulties with appropriate modelines and with having no sound (over HDMI or otherwise):

* Initially X ran at a max resolution of 1920x1080, and refused explicit modelines suitable for the 4K monitor. AFAICT by inspecting Xorg.0.log, it tried running the radeon driver, which apparently doesn't support the Polaris 12 GPU in my RX 570, and fell back to the VESA driver.
* To get around this I installed the AMDGPU driver, e.g. just installed linux-firmware. This did succeed in running at 4K, but the system has no sound. Apparently AMDGPU doesn't support sound over HDMI until the DC improvements consequent to kernel 4.15 and later, but that aside, I wasn't even getting sound out of the onboard analog audio ports, and no audio device showed in the audio controls other than "Simultaneous Audio" without any underlying physical devices.
* This seemed odd because the snd_hda_intel module was loaded, and there were no obvious audio-related errors in syslog. All I see is:
Code: Select all
Dec 14 23:33:38 celly kernel: [147930.102594] snd_hda_intel 0000:23:00.1: Handle vga_switcheroo audio client
Dec 14 23:33:38 celly kernel: [147930.102600] snd_hda_intel 0000:23:00.1: Force to non-snoop mode
Dec 14 23:33:38 celly kernel: [147930.110024] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:23:00.1/sound/card0/input20
Dec 14 23:33:38 celly kernel: [147930.110148] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:23:00.1/sound/card0/input21
Dec 14 23:33:38 celly kernel: [147930.110261] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:23:00.1/sound/card0/input22
Dec 14 23:33:38 celly kernel: [147930.110377] input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:23:00.1/sound/card0/input23
Dec 14 23:33:38 celly kernel: [147930.110491] input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:23:00.1/sound/card0/input24
Dec 14 23:33:38 celly kernel: [147930.110601] input: HDA ATI HDMI HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:23:00.1/sound/card0/input25
Dec 14 23:33:38 celly systemd[1]: Reached target Sound Card.
Dec 14 23:33:38 celly kernel: [147930.116426] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
Dec 14 23:33:38 celly kernel: [147930.116433] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Dec 14 23:33:38 celly kernel: [147930.116437] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
Dec 14 23:33:38 celly kernel: [147930.116440] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
Dec 14 23:33:38 celly kernel: [147930.116444] snd_hda_codec_realtek hdaudioC1D0:    inputs:
Dec 14 23:33:38 celly kernel: [147930.116448] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
Dec 14 23:33:38 celly kernel: [147930.116452] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
Dec 14 23:33:38 celly kernel: [147930.116455] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
Dec 14 23:33:38 celly systemd-udevd[4669]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 0' failed with exit code 99.


That's where matters stand. If I could get analog audio out, that would be something, but I'd like audio over HDMI. Advice welcome; possible paths forward I see right now are:

* Try the AMDGPU-PRO driver, which supposedly doesn't have the audio-over-HDMI issue (whether this would address the underlying complete lack of audio problem is not clear to me).
* Update to testing, which supports a kernel recent enough that it might support the DC layer improvements needed for AMDGPU audio-over-HDMI (again, whether this has any bearing on the lack of analog audio is unclear). I'm averse to doing this since this is intended to be my primary desktop / production system.
oddhack
 
Posts: 2
Joined: December 16th, 2018, 4:21 am

Re: Video / audio troubles with RX 570 / stretch

Postby Randicus Draco Albus » December 16th, 2018, 5:36 am

The audio issue might be simple. I do not know if it is still the case, but back when I used Debian the default audio settings had mute enabled. A new installation required changing the mute setting to off.
Klingons are fun, but Romulans are the sexiest women in the galaxy.
User avatar
Randicus Draco Albus
 
Posts: 1496
Joined: September 22nd, 2011, 1:22 pm

Re: Video / audio troubles with RX 570 / stretch

Postby nodir » December 16th, 2018, 10:46 am

Update to testing, which supports a kernel recent enough

No need to upgrade to testing, as far the kernel is concerned. A newer kernel should be in debian-backports:
https://backports.debian.org/

btw: back in the days it was possible to install a kernel from testing or sid without running into problems. It was one of the very few exceptions to the general rule to never ever mix stable with anything but stable-backports.
backporting it yourself is probably preferred anyway.
But, as said, i don't even think that debian-backports won't offer a kernel new enough.
nodir
 
Posts: 307
Joined: June 16th, 2015, 10:10 pm

Re: Video / audio troubles with RX 570 / stretch

Postby oddhack » December 17th, 2018, 3:14 am

nodir wrote:
Update to testing, which supports a kernel recent enough

No need to upgrade to testing, as far the kernel is concerned. A newer kernel should be in debian-backports:
https://backports.debian.org/


Thanks. I updated to the 4.18.0 kernel and corresponding firmware-amd-graphics in stretch-backports (and a bunch of other stuff that got pulled in by apt upgrade), and my video problems seem largely solved. Unfortunately I'm still getting no audio. There are two alsa devices for the ATI HDMI and Realtek, but neither seems to be producing sound. I'm unclear how to begin diagnosing this further given my very small knowledge of audio issues.
oddhack
 
Posts: 2
Joined: December 16th, 2018, 4:21 am


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x