Notifications
Clear all

A script to change Xorg config  

 of  17
  RSS

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

@morv

I believe the script was written with nvidia in mind, so change 'nvidia' to 'amdgpu' in the xorg.conf.egpu file and that should work.

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
Morv
 Morv
(@morv)
Eminent Member
Joined: 5 years ago
 

@nu_ninja I know that and set the driver accordingly, should've mentioned it probably. The GPU is also recognized and listed by lspci, also the amdgpu driver module is loaded even without the xorg.conf.egpu being renamed by the script.

I'm on kernel 4.19.2.

Edit: Ok, got it to work by moving the config to /etc/X11/xorg.conf.d/ where all the other configs are put. Now the displays are driven by the external gpu, will modify the script towards this Smile I have basically no relevant knowledge about all the configs, so maybe this is a thing the way Arch Linux is set up? Restarting the display manager is enough though! This reduces the amount of time a lot for switching between external and internal GPUs.

Edit2:
This is my change to the script, switched several times now, works surprisingly fine. Wouldn't have thought to get the eGPU running that fast. Thanks a lot for the starting point @Sebulon.

[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.

.

itsage and nu_ninja liked
ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 3 years ago
 

@Morv

I really dig your changes, I'm going to test them out and see what changes. About the authorizing part, I was just too lazy to do it every time so I've put this into udev:
/etc/udev/rules.d/99-local.rules

[Please login to see this]

So it just authorizes everything that's plugged in, while I wait for the KDE team to fix Bolt into Plasma. Nice choice of desktop by the way 😉 Rocking KDE Neon myself.

Now, about the changes you made, can we have that conversation up on GitHub instead, and push the changes there, so it gets tracked, please? I'm not a fan of Git myself but this is a conversation worth having!

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

.

Morv and itsage liked
ReplyQuote
itsage
(@itsage)
Founder Admin
Joined: 5 years ago
 

Thank you all for making this process easier in Linux!

LinkedIn | Twitter | Facebook | Youtube | Instagram
 
external graphics card builds
best laptops for external GPU
eGPU enclosure buyer's guide

 
2020 Gigabyte Z490 Vision D [10th,8C,K] + RTX 2080 Ti @ 32Gbps-TB3 (AORUS Gaming Box) + Win10 2004 [build link]  


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

Huuuge update! The script now has a full fledged GUI frontend! 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.

.

itsage liked
ReplyQuote
itsage
(@itsage)
Founder Admin
Joined: 5 years ago
 
Posted by: Sebulon

Huuuge update! The script now has a full fledged GUI frontend! Top post updated! 🙂

Thank you very much! I will give it a try soon and report back.

LinkedIn | Twitter | Facebook | Youtube | Instagram
 
external graphics card builds
best laptops for external GPU
eGPU enclosure buyer's guide

 
2020 Gigabyte Z490 Vision D [10th,8C,K] + RTX 2080 Ti @ 32Gbps-TB3 (AORUS Gaming Box) + Win10 2004 [build link]  


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

@Sebulon

Great stuff, thank you.

I'm sort of stuck at  " BUS_ID=$(nvidia-xconfig --query-gpu-info | grep -i -A 3 '1080ti' | awk '/PCI BusID/{print$4}')" as  nvidia-xconfig returns that cannot provide GPU info. There I understood that the Nvidia drivers are not working. The eGPU is recognized OK and can get the bus id from " lswh -c video " but it appears that the open-source Nouveau drivers that come with Ubuntu are preventing the proprietary Nvidia drivers that I installed from " ppa:graphics-drivers/ppa " from working (although they appear installed OK). I read somewhere that Nouveau drivers need to be blacklisted to prevent this kind of problems. Do You have any advices about this? Shall I download the drivers directly from Nvidia and go through manual installation? How do I block the pre-installed Nouveau and prevent them from creating conflicts?

Thanks again

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: 3 years ago
 

Hey @mzo!

Can you just run the command:

[Please login to see this]

And paste the output here, please?

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
 

Hi @Sebulon,

The output is: "ERROR: Unable to query GPU information"

 

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: 3 years ago
 
Posted by: mzo

Hi @Sebulon,

The output is: "ERROR: Unable to query GPU information"

Hi @mzo!

I was able to reproduce your issue and have a solution _that works for me_! I'm not sure if the mainline kernel is actually needed, maybe just purging everything related to nvidia is enough, but this is how I did it.

Note here that the order _is_ important! Install the mainline kernel first, then make sure to purge everything related to "nvidia", then install the latest driver again.

[Please login to see this]

And to uninstall everything, if you're not satisfied:

[Please login to see this]

I'm not sure if the mainline kernel is actually neccessary, but as I said, this works for me. Hope this solves the issue with "nvidia-xconfig" for you as well.

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

.

ReplyQuote
 of  17