Notifications
Clear all

A script to change Xorg config  

 of  16
  RSS

nu_ninja
(@nu_ninja)
Reputable Member
Joined: 3 years ago
 

Thanks for the work @sebulon the gswitch package works for me (I just changed the driver and busID manually in xorg.conf.egpu since I'm using an AMD card).
When I download and try to unpack the gswitch-gui package however, I get a dependency error:

gswitch issue 11 30

Looks like the qt5 version on Linux Mint is a bit out of date:

qt5 update 11 30

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.15+Win10 + Linux Mint 19.1

 
2012 13" MacBook Pro [3rd,2C,M] + RX 460 @ 10Gbps-TB1 (AKiTiO Thunder2) + macOS 10.14.4 [build link]  


ReplyQuote
mzo
 mzo
(@mzo)
Active Member
Joined: 4 years ago
 
 
Thank you so much for this, I’m going to try this on Monday.
 
In the last couple of days I actually tried many things to solve my issues, including a process very similar to the one you are describing.
 
I purged Nvidia-* then I installed the latest mainline kernel using the script ubuntu-mainline-kernel.sh and reinstalled nvidia-driver-410 (also tried 415). No luck so far. I think this way was almost identical to the one you suggested however I’ll try your way as well to see if installing the mainline kernel manually makes a difference.
 
I have been having troubles blacklisting the nouveau drivers. I did it in /etc/modprobe.d/blacklist.conf and also on grub adding nouveau.modeset=0 after quite splash. This does not seem to work as nouveau keeps getting listed. I think this may a possible cause of the problem. Do you have any advices about this?
 
Yesterday at some point I was messing around with xorg and the nvidia driver suddenly loaded (nvidia-settings returned the driver and gpu info) but unfortunately this was during a sequence of actions and after reboot it stopped working again. I was unable to isolate and reproduce the step that made it work.
 
A couple of questions, do I have to stop the video server and install the nvidia driver from command line?  Does the eGPU need to be connected at all times during the nvidia driver installation?
 
Thank you.
 
 

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 
Posted by: mzo
I have been having troubles blacklisting the nouveau drivers. I did it in /etc/modprobe.d/blacklist.conf and also on grub adding nouveau.modeset=0 after quite splash. This does not seem to work as nouveau keeps getting listed. I think this may a possible cause of the problem. Do you have any advices about this?

Installing the nvidia drivers does that automatically, so no need actually:

[Please login to see this]

Posted by: mzo
A couple of questions, do I have to stop the video server and install the nvidia driver from command line? Does the eGPU need to be connected at all times during the nvidia driver installation?

No and maybe, I don't know 🙂

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 
Posted by: Sebulon

Adding unsupported PPA's is something I´m extremely weary of, since it may or may not break stuff down the line when the PPA maintainer finds another fancy or get hit by a bus, or whatever.

I realize how self-contradictory this is going to sound... But I've setup a PPA 🙂

Tested on Ubuntu Standard 18.04, Kubuntu 18.04 AND Linux Mint 19 😉 Top post updated.

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

nu_ninja liked
ReplyQuote
mzo
 mzo
(@mzo)
Active Member
Joined: 4 years ago
 

@sebulon

Hi, I installed your ppa but the installation returns an error saying that this ppa does not have a release file so it cannot be securely updated.

Now, every time I sudo apt-get update the system I get that error.

I tried to remove the ppa with ppa-purge but it won’t let me to because of the same error above.

Any idea how can I fix this? Also, as an alternative, can the script still be installed manually?

Thanks

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
nu_ninja
(@nu_ninja)
Reputable Member
Joined: 3 years ago
 

@mzo

You can manually change the sources apt uses by just editing the file:

[Please login to see this]

so you could edit that to remove the PPA or I think you can add allow-insecure=yes in brackets [  ] after deb in the line with the gswitch PPA and that might fix it.

Edit: Looking at my directory, the list file might also be in /etc/apt/sources.list.d/

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.15+Win10 + Linux Mint 19.1

 
2012 13" MacBook Pro [3rd,2C,M] + RX 460 @ 10Gbps-TB1 (AKiTiO Thunder2) + macOS 10.14.4 [build link]  


ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 

@mzo

What Ubuntu version are you running?

To remove the repo:

[Please login to see this]

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
mzo
 mzo
(@mzo)
Active Member
Joined: 4 years ago
 

@sebulon

Thanks, later today I'll try again. I'm running 18.10 cosmic with the latest mainline kernel.

Regarding the Nvidia drivers, I still haven't managed to have them working. However, I found several posts of people that have exactly the same problem. I will try some of the solutions suggested.

My other problem is with my AMD dGPU. The amdgpu driver is not stable on my system. The card overheats and produces frequent kernel freezes. I tried countless solutions to fix this with no luck (including fresh ubuntu reinstalls, etc). The problem is even there when I boot Ubuntu from live usb (tried 18.04 and 18.10, same problem). I had my MacBook Pro inspected by Apple to check if there were hardware issues but it looked all good. That being said, if I understand correctly, the Nvidia Prime feature uses the dGPU (or iGPU when available) to render on the screen the graphic that is being processed by the external GPU. If that is the case, if I manage to have the Nvidia drivers loading, do you think my unstable dGPU problem will persist even though I'm using the Nvidia eGPU with your script?

Finally, I tried a workaround to activate the intel iGPU and use that instead of the dGPU because by default recent Mac hardware disable the iGPU if you boot anything that is not MacOS. This worked, the iGPU was used instead of the dGPU (resolving the kernel freezes issues). However, this solution was very "invasive" as it modifies EFI stuff and MacOS boot files and rendered MacOS irreversibly un-bootable (I had to do a fresh reinstall). This solution is discussed here:  https://sourceforge.net/p/refind/discussion/general/thread/84a55c48/

My plan is to fix the Nvidia drivers problem, and, through your script, use my Nvidia eGPU as my only graphic solution for Ubuntu. Do you think it's doable to use the eGPU for everything despite the iGPU being inactive and not recognized by default and the dGPU having driver problems?

Thank you!

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 
Posted by: mzo

@sebulon

Thanks, later today I'll try again. I'm running 18.10 cosmic with the latest mainline kernel.

As I thought, that explains the issues you were having with the PPA. I have only submitted packages for "bionic", as that is the long term supported version. But I can invest the time to submit packages for "cosmic" as well, if you´re interested?

Posted by: mzo

... if I manage to have the Nvidia drivers loading, do you think my unstable dGPU problem will persist even though I'm using the Nvidia eGPU with your script?

It also explains why my instructions and the commands don´t work as you´re on a different Ubuntu version than what I have tested and know work. And the kernel included in "cosmic" is 4.18, so not much difference to the mainline 4.19 kernels I wanted you to install then. See below for answer about eGPU

Posted by: mzo

Do you think it's doable to use the eGPU for everything despite the iGPU being inactive and not recognized by default and the dGPU having driver problems?

Thank you!

The driver problems comes from using the hardware. If you are only using the eGPU then I would imagine the dGPU wouldn´t bother you any more. With that said, I cannot test this for you as I have a different computer than you have.

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 

Never mind, I got carried away and got packages published for "cosmic" too 😉

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

itsage liked
ReplyQuote
 of  16