LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-05-2021, 02:32 PM   #1
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Rep: Reputation: Disabled
AMD RX 5700 XT displays at 1024x768 in Debian Bullseye (Testing) despite having installed drivers and firmware.


(I apologize if this gets posted multiple times. The website insists I posted it, but when I go to "My Posts" nothing shows up.)

Hello, I have recently built a PC and installed Debian. After a day or two of trying to figure out why I couldn't start Xorg, I managed to get a seemingly functional desktop. At one point, I decided I wanted to use GPU Passthrough for a project of mine. After adjusting some configurations, I rebooted my system only to realize that apparently Debian was using the card I wanted to passthrough while refusing to use the other the entire time.

After about another day or two of fruitless package-swapping and rebooting, I didn't manage to get anywhere new. Currently my desktop seems to be stuck at 1024x768.

Here is my configuration.

Debian Testing (Upgraded from Debian 10 Stable)

CPU : AMD Ryzen 9 3990x

AMD RX 5700XT (This is the card I want to use on my regular desktop.)

AMD RX 590 (This is the card I want to use for passthrough, apparently it was also the one the system tried to use (Which is odd, because I definitely recall putting this NOT in the main PCI-E slot (As specified in the motherboard's manual.) but instead the card I actually wanted to become the primary card.))

I have previously installed drivers and the required nonfree firmware, I may need to reinstall them again if it turns out something didn't register correctly.
 
Old 02-05-2021, 02:51 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
The whole Xorg initialization is in its log file, you can drop it into some pastebin site if you want more eyes looking at it.
 
Old 02-05-2021, 03:42 PM   #3
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
Here is the contents of Xorg.1.log
Attached Files
File Type: txt xorg.1.log.txt (39.8 KB, 17 views)
 
Old 02-05-2021, 03:46 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Does your lspci show two cards?
 
Old 02-05-2021, 03:48 PM   #5
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
Yes
 
Old 02-05-2021, 03:48 PM   #6
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
Do you want the output?
 
Old 02-05-2021, 03:49 PM   #7
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
The Output

03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e1)
0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1)

Last edited by linuxquestio; 02-05-2021 at 03:49 PM. Reason: lspci -nn | grep VGA
 
Old 02-05-2021, 03:50 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
OK, are you following some guide? Like this one?
 
Old 02-05-2021, 03:57 PM   #9
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
Linux does what Windon't

I previously was.

This one specifically.

https://www.youtube.com/watch?v=3yhwJxWSqXI

This was the last command I did before I stopped following the tutorial.

sudo nano /etc/modprobe.d/vfio_pci.conf
options vfio_pci ids=1002:67df,1002:aaf0

Last edited by linuxquestio; 02-05-2021 at 04:06 PM. Reason: Chris Titus why you do this
 
Old 02-05-2021, 04:06 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
This is kind of uncharted land for me, never attempted to use IOMMU. Anyhow, you could force Xorg to the card you want by specifying the BusID, see here.
 
Old 02-05-2021, 04:39 PM   #11
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
Well, I tried it. A bit of research later, I set the config with the Bus ID and boom!


It failed.

X didn't even start, and apparently neither did my display manager (LightDM).

After deleting the config file and rebooting, I can still use X and such (hence why I'm typing this) but unfortunately the xorg config didn't seem to work.

Here is the config I used, in case you were wondering.

Section "Device"
Identifier "AMD"
Driver "amdgpu"
BusId "1002:731f"
EndSection
 
Old 02-05-2021, 04:46 PM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
This is not BusID, it is the PCI ID. This is what BusID looks like, just example.
Code:
BusID "PCI:1:0:0"
Edit, this is a quote from the page I linked to. How comes you didn't read it?
Quote:
BusID "bus−id"

This specifies the bus location of the graphics card. For PCI/AGP cards, the bus−id string has the form PCI:bus:device:function (e.g., “PCI:1:0:0” might be appropriate for an AGP card). This field is usually optional in single-head configurations when using the primary graphics card. In multi-head configurations, or when using a secondary graphics card in a single-head configuration, this entry is mandatory. Its main purpose is to make an unambiguous connection between the device section and the hardware it is representing. This information can usually be found by running the pciaccess tool scanpci.

Last edited by Emerson; 02-05-2021 at 04:56 PM.
 
Old 02-05-2021, 04:56 PM   #13
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
I actually caught on to that a little bit before you posted and...

I can get into Xorg with the configuration!

Sort of, I'm still stuck in 1024x768, but at least the card itself works.

Last edited by linuxquestio; 02-05-2021 at 06:08 PM.
 
Old 02-05-2021, 05:32 PM   #14
linuxquestio
LQ Newbie
 
Registered: Feb 2021
Posts: 22

Original Poster
Rep: Reputation: Disabled
So where exactly would I go from here?
 
Old 02-05-2021, 06:15 PM   #15
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Alright, what does your most recent Xorg log tell? The one you posted has no problems in it and much higher resolutions are listed. If you run xrandr in a terminal window, what does it show about available resolutions?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AMD RX 5700 XT does not seem to display correctly (if at all) in Debian Bullseye (Testing) despite having installed drivers and firmware. linuxquestio Linux - Hardware 0 02-06-2021 05:45 AM
kernel 5.6, Firmware and the correct path to firmware under Debian Bullseye. Forsland Linux - Kernel 0 04-04-2020 05:48 AM
Debian 9 with AMD HD 5700 / Debian 8 with sgfxi untimunti Linux - Newbie 1 05-20-2018 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration