bbswitch: No discrete VGA device found on debian buster
 
Notifications
Clear all

bbswitch: No discrete VGA device found on debian buster  

  RSS

Kurt Sys
(@kurt_sys)
Active Member
Joined: 10 months ago
 

I'm having a Geforce RTX2060 in a Sonnet Breakaway Box 550. I'm running Debian Buster and I'm trying to get the egpu working. I followed http://www.pocketnix.org/posts/eGPUs%20under%20Linux%3A%20an%20advanced%20guide and https://wiki.debian.org/NvidiaGraphicsDrivers#Version_440.82_.28via_buster-backports.29 .

In short: the card is recongized, but I'm missing something to make applications run on the external gpu. 

 

There are no thunderbolt issues:

[Please login to see this]

The external gpu is found:

[Please login to see this]

It is possible to run, e.g., hashcat

[Please login to see this]

X11 doesn't use it (yet)

[Please login to see this]

(the aim would be to switch automatically to the egpu whenever attached, but I guess I need to get the egpu running properly)

I can't run glxinfo

[Please login to see this]

Because some handle can't be found?

[Please login to see this]

xorg config

I have been using egpu-switcher https://github.com/hertg/egpu-switcher , which is reflected in my x11 configs:

[Please login to see this]

I moved `xorg.conf.internal`, because I couldn't login to cinnamon anymore when `xorg.conf` pointed to that configuration.

[Please login to see this]

bbswitch modprobe fails

[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
Kurt Sys
(@kurt_sys)
Active Member
Joined: 10 months ago
 

I upgraded the kernel and the headers of my Debian to 5.6.0-0.bpo.2:

module bbswitch not found

[Please login to see this]

processing bbswitch-dkms fails

[Please login to see this]

there's an incompatible pointer

[Please login to see this]

I have no idea how to proceed from here... What should I try/do next? Thx.

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

.

ReplyQuote
Kurt Sys
(@kurt_sys)
Active Member
Joined: 10 months ago
 

I downloaded bbswitch-dkms from debian bulseye and installed it:

[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
nu_ninja
(@nu_ninja)
Reputable Member
Joined: 3 years ago
 

I'm not experienced with the nvidia side of things, but is bumblebee necessary? I don't think it's required with the egpu switcher script you are using. I noted that your xorg.conf is still linked to xorg.conf.internal in your logs. Can you try switching it to the xorg.conf.egpu and try running something without bumblebee?

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
Kurt Sys
(@kurt_sys)
Active Member
Joined: 10 months ago
 

No, I don't really need bumblebee, so I removed it and tried with the egpu-switcher. The xorg configs are generated, but no matter which one I use, in both cases I get a blank screen when I start. I renamed them to .backup, so the symlink points to nowhere. So, it's a matter of getting this xorg config right?

 

[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
nu_ninja
(@nu_ninja)
Reputable Member
Joined: 3 years ago
 

Right, that looks to be correct from what I've seen and used on this forum, but maybe Debian configures itself differently somehow...

This part of the debian wiki might be the one to follow: https://wiki.debian.org/NVIDIA%20Optimus#Using_NVIDIA_GPU_as_the_primary_GPU

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
Kurt Sys
(@kurt_sys)
Active Member
Joined: 10 months ago
 

OK, so we're making progress: I'm able to use the egpu when I connect my monitor to the egpu with the config below and my laptop screen works fine as well.

Thanks a lot already!

I used nvidia-xconfig to generate one, but added a few lines, the most important ones:

[Please login to see this]

and

[Please login to see this]

I don't really understand why it's working, so it would be nice if someone can elaborate on it: I'm mainly struggling to understand the `Inactive` and `Driver  "modesetting"` in my xorg.conf. However, at this point, all works well when I'm connected to the egpu, but when I disconnect the egpu, the console starts, and it flickers about every 2 seconds, which makes it pretty hard to do anything useful. So, the next question is: how to configure xorg to the iGPU when the eGPU is not connected?

Thanks!

 

[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
nu_ninja
(@nu_ninja)
Reputable Member
Joined: 3 years ago
 

Without the egpu you shouldn't need any xorg configuration file I don't think. You can use the egpu switcher script to switch between the working egpu xorg.conf you have now and internal which should be nothing or just an empty file. Or you could also create your own way of switching if you like.

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
Kurt Sys
(@kurt_sys)
Active Member
Joined: 10 months ago
 

Right. It seems to work right now. I switch now, without reboot, by one of these, they all do the same, I think:

  • `sudo pkill X`
  • `sudo systemctl restart display-manager`
  • alt + PrintScreen + k

I was about to make two entries in my grub, with different parameters and a systemd script reading these, but it seems egpu-switcher is doing something like this without the boot parameters. It automatically detects if there's an egpu or not. Nice... 

Thanks a lot... I'm fine for now.

This post was modified 10 months ago

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