Egpu gswitch ubuntu3/30/2023 ![]() ![]() I happy with the setup and feel that it accomplishes the goals I set out. Typically just disconnecting the eGPU gets me back to Intel graphics automatically, albeit causing my session to logout. When I want to play a round of Cities Skylines, I plugin the eGPU, reboot and am good to go. My laptop works just like before and has the same battery life as before. ![]() I find that this setup works pretty well and is generally trouble free. Now when you boot without the eGPU attached your system should work just like it did previously. We then edit /etc/X11/nf one more time and create a section like the following: Section "Device" Identifier "iris" Driver "modesetting" BusID "PCI:0:2:0" EndSection The first component ‘00:02.0’ is the BUS ID for this GPU. $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) First we need to identify the built in GPU. Next we need to add a section so our original built in Intel graphics work correctly. Let’s see what our trusty friend ‘glxinfo’ has to say: $ glxinfo | grep vendor server glx vendor string: NVIDIA Corporation client glx vendor string: NVIDIA Corporation OpenGL vendor string: NVIDIA Corporation With the eGPU connected you should be able to verify things are working. Reboot and you should see the normal login screen. Your BusID, BoardName, etc will likely be somewhat different. My section ends up looking like: Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce GTX 660" BusID "PCI:9:0:0" Option "AllowExternalGpus" "True" EndSection Rebooting with my attached eGPU resulted in a blank screen and an error in /var/log/Xorg.0.log indicating ‘Screen(s) found, but none have a usable configuration’.Įdit /etc/X11/nf and add a line ‘Option “AllowExternalGpus” “True”` to the device section for you Nvidia card. The generated configuration gets us close, but not quite. You will need to create an nf for the Nvidia driver: sudo nvidia-xconfig -prime Next you will need to allow Thunderbolt devices to authenticate sudo echo 1 > sudo /sys/bus/thunderbolt/devices/0-0/0-1/nvm_authenticate Select the Nvidia prime profileĪfter installing drivers run: nvidia-settings Or by plugging in your eGPU, going to ‘Software and Update’, going to the ‘Additional Drivers’ tab, and selecting the appropriate Nvidia driver that way. This can be installed via the command line: sudo apt-get install nvidia-driver-435 Setup Nvidia driversįirstly, you will want to install the Nvidia proprietary driver. You will want to look for ‘Thunderbolt’ settings and verify that you have security disabled. Checkout your BIOSīefore you get going, it may be a good idea to take a look at your BIOS settings. When done using the eGPU, I ought to be able to simply disconnect it and go back to low-power Intel GPU mode. I want to accelerate the display on my laptop, not an external monitor. ![]() When I want to use the eGPU, I should be able to plug that in to the thunderbolt port and either reboot and logout/login and be in Nvidia mode. What I would like to be able to do is use this laptop with the built in Intel GPU so that I maximize battery life most of the time. In Ubuntu this is pretty straightforward, but not exactly 100% plug and play. Since most modern laptops come with a thunderbolt connection, it’s now possible to use an external GPU to give a laptop more oomph. On occasion I would like to be able to run games on my laptop that the built in Intel GPU just can’t cope with. I love the portability, but dislike that I’m pretty much stuck with the hardware my system came with. I tend to use a laptop as my primary workstation. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |