LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-31-2020, 05:47 AM   #1
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 115

Rep: Reputation: 1
Switching two GPU


So far used AMD as my primary GPU on the first PCIe slot and Nvidia as secondary on the second slot, to be used for CUDA compute.


Now for other needs I need the Nvidia on the first slot and so need to switch the AMD on the second one.


Trying to boot on KDE Neon result in a core dump. Trying to shift the HDMI connection to the AMD card looking at GRUB menu result in black screen.


I suppose the only way is to switch again the GPU so to being able to boot, but what about from there. Need I to delete the AMD and Nvidia drivers and use only Nuveau drivers after switching back the Nvidia on the first slot?
 
Old 01-31-2020, 06:39 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,302
Blog Entries: 1

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
The HD7950 can run on the default DDX, modesetting. Most NVidia GPUs can run on the modesetting DDX as well, which should include your 1070. Thus with neither xserver-xorg-video-amdgpu nor xserver-xorg.video-ati nor xserver-xorg-video-nouveau nor any proprietary NVidia driver installed, both GPUs should run on the modesetting DDX. Whether CUDA is supported on the modesetting DDX I have no idea.

With NVidia's proprietary drivers installed, traditionally KMS is blocked. Whether that remains the case in latest versions I don't know, but all DDXes competent to run AMD's GPUs require KMS be unblocked. Blocking of KMS for NVidia only should be sufficient via cmdline option nouveau.modeset=0. This might make slot placement of the cards unimportant. Whether the NVidia driver can function without using an xorg.conf that NVidia setup creates without conflicting with other GPUs I don't know either. Hopefully it wouldn't be a problem to exclude anything from xorg.conf that would prevent the 7950 from functioning.

I'd be using two PCs instead, one for each graphics card.
 
Old 02-02-2020, 10:17 AM   #3
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 115

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by mrmazda View Post
The HD7950 can run on the default DDX, modesetting. Most NVidia GPUs can run on the modesetting DDX as well, which should include your 1070. Thus with neither xserver-xorg-video-amdgpu nor xserver-xorg.video-ati nor xserver-xorg-video-nouveau nor any proprietary NVidia driver installed, both GPUs should run on the modesetting DDX. Whether CUDA is supported on the modesetting DDX I have no idea.

With NVidia's proprietary drivers installed, traditionally KMS is blocked. Whether that remains the case in latest versions I don't know, but all DDXes competent to run AMD's GPUs require KMS be unblocked. Blocking of KMS for NVidia only should be sufficient via cmdline option nouveau.modeset=0. This might make slot placement of the cards unimportant. Whether the NVidia driver can function without using an xorg.conf that NVidia setup creates without conflicting with other GPUs I don't know either. Hopefully it wouldn't be a problem to exclude anything from xorg.conf that would prevent the 7950 from functioning.

I'd be using two PCs instead, one for each graphics card.
Maybe I better needed to post in the Beginners section, since I didn't get almost anything in your post...
Pardon me, What's a DDX, and what I'm supposed to be? Searching on Ubuntu seems it's some option in GPU drivers, but not sure how this apply since I'm not able to boot at all.
 
Old 02-03-2020, 04:26 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,302
Blog Entries: 1

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Your OP included indications of significant competence in these matters, particularly the plan to utilize CUDA, but you didn't make it clear whether you have managed to install Neon or not.

What exactly does "not at all mean"? At what point in the boot process does a coredump occur? Can you append a 3 to the kernel cmdline (Tab key if installation menu; E key if Grub menu) to produce a shell prompt from which you can login?

Video output is the result of many software layers that include multiple so-called "drivers". DDX is one category of "driver" on which both Xorg and Wayland depend. xserver-xorg-video-* are the names of packages that provide various DDXes. By removing them all, the modesetting DDX should be able to support both your GPUs at least to some useful degree.

Whether already installed or not, I suggest if the cmdline 3 wasn't helpful that you consider appending nouveau.modeset=0 to kernel cmdline to see if boot will progress far enough to enable useful troubleshooting steps to be taken.
 
1 members found this post helpful.
Old 02-03-2020, 04:40 AM   #5
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 115

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by mrmazda View Post
Your OP included indications of significant competence in these matters, particularly the plan to utilize CUDA, but you didn't make it clear whether you have managed to install Neon or not.

What exactly does "not at all mean"? At what point in the boot process does a coredump occur? Can you append a 3 to the kernel cmdline (Tab key if installation menu; E key if Grub menu) to produce a shell prompt from which you can login?

Video output is the result of many software layers that include multiple so-called "drivers". DDX is one category of "driver" on which both Xorg and Wayland depend. xserver-xorg-video-* are the names of packages that provide various DDXes. By removing them all, the modesetting DDX should be able to support both your GPUs at least to some useful degree.

Whether already installed or not, I suggest if the cmdline 3 wasn't helpful that you consider appending nouveau.modeset=0 to kernel cmdline to see if boot will progress far enough to enable useful troubleshooting steps to be taken.
I have experimented a lot, but mostly by trial and error and reading tutorials, so in fact didn't have a deep understanding of what I'm doing and acting as beginner.
I'm using KDE Neon since some months and before that Kubuntu since beginning 2019 (first Linux installation ever), and my dual GPU setting is working fine, also using CUDA for ML-related training.
Currently writing on Neon since I tried to switch back the two GPU in the original status and all is working again.

So just wanting to return my setup to a neutral status with both GPU using "generic" drivers, might I use
Code:
dpkg -l | grep -i nvidia
and maybe
Code:
 sudo apt-get remove --purge '^nvidia-.*'
?
I think AMD card isn't using any proprietary driver so I suppose didn't need to uninstall anything on his side.
 
Old 02-03-2020, 01:40 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,302
Blog Entries: 1

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
I don't have any significant experience unrelated to purging NVidia, and last I did have hands on was many years ago. I do know that simple NVidia package removal such as with apt(-get) may not be sufficient. NVidia provides instructions, accompanying installation, for removal which need to be strictly followed, as installation traditionally replaces at least one standard library, and without its replacement with the original, along with purging of NVidia's own binaries, nothing can work right.

You may wish to purge the reverse engineered xserver-xorg-video-nouveau and allow the DDX I use almost exclusively regardless of GPU, modesetting, to control both your GPUs. I would expect it to stand a good chance of getting past the black screen.
 
  


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
Handbrake GPU Acceleration - Inexpensive AMD GPU for Old PC Mr. Macintosh Linux - Software 8 01-03-2018 04:11 PM
Does blacklisting discrete GPU driver completely disables discrete GPU, or using acpi_call is better decision? SuperPrower Linux - Hardware 2 08-21-2017 09:32 PM
how can I setup the amd GPU as a default gpu instead of intel graphics? divinefishersmith Linux - Newbie 33 08-22-2015 07:03 PM
Tried to swap GPU in HP workstation. GPU not working good. LexMK Linux - Hardware 1 06-21-2013 07:59 PM

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

All times are GMT -5. The time now is 08:26 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