0

What is the current (preferred) (year 2020 - Kubuntu 19.10) way to switch between nvidia (RTX 2060) GPU and iGPU (Intel UHD Graphics 630)?

i am interessted in both: - nvidia with official drivers (version >=440.64) - nvidia with nouveau

and iam also not sure if it is possible to do this live (without reboot / relogin)?!

the posts & questions i found about Optimus and related things are mostly predating 2016...

nouveau.freedesktop wiki page for Optimus was last edited 2015-01-09
and if i try to follow the infos i find very varying outputs - and don't know if my command results are just wrong because i have missed something or because it is just outdated / has changed in the meantime...

so it is hard to know where to start...

hopefully anybody has a good idea on this or and links to uptodate information ;-)

really nice would be if someone has a system setup that allows for 'live' switching between nouveau and nvidia drivers..
(there was a unanswered question in this direction from 2016 and a answered one from 2010)

1

1 Answer 1

0

If you want to use nvidia drivers and on demand feature, xorg needs some patches that are only available for 18.04 and 19.04 here I tried that feature in ubuntu 19.10 without success. You can read all information here

first you need to remove intel drivers to use software based rendering (modeseting aka llvmpipe renderer). Install latest drivers from this ppa and finally, compile/install patched xorg.

The easiest solution today is upgrade to ubuntu 20.04. I explicitly configure the iGPU and dGPU devices in xorg.conf and get nvidia on-demand working very easily:

$ offload-glx glxinfo | grep "OpenGL renderer"
OpenGL renderer string: GeForce 940M/PCIe/SSE2


$ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2)

offload_glx comes from mate-prime-select and is an alias of:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .