bbswitch: No discrete VGA device found on debian buster
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:
The external gpu is found:
It is possible to run, e.g., hashcat
X11 doesn't use it (yet)
(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
Because some handle can't be found?
I moved `xorg.conf.internal`, because I couldn't login to cinnamon anymore when `xorg.conf` pointed to that configuration.
bbswitch modprobe fails
I upgraded the kernel and the headers of my Debian to 5.6.0-0.bpo.2:
module bbswitch not found
processing bbswitch-dkms fails
there's an incompatible pointer
I have no idea how to proceed from here... What should I try/do next? Thx.
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?
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?
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
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:
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?
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.
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.