Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Running Cool VL viewer on nvidia optimus laptops http://sldev.free.fr/forum/viewtopic.php?f=10&t=2027 |
Page 1 of 1 |
Author: | Lance Corrimal [ 2020-06-18 08:54:52 ] |
Post subject: | Running Cool VL viewer on nvidia optimus laptops |
I have a diff for the startup script that enables bumblebee or nvidia prime render offloading on laptops with that hardware. https://build.opensuse.org/package/view ... h?expand=1 cheers |
Author: | Henri Beauchamp [ 2020-06-18 15:24:32 ] |
Post subject: | Re: Running Cool VL viewer on nvidia optimus laptops |
Thank you. Care to elaborate what it does exactly ?... Not having any such hardware here, and not knowing anything about "Optimus", "Bumblebee" & Co, it is hard for me to figure out whether this could, for example, have negative side effects on some systems... EDIT: there also seem to be issues:
|
Author: | Lance Corrimal [ 2020-06-18 18:24:18 ] | |||||||||||||||||||||||||||
Post subject: | Re: Running Cool VL viewer on nvidia optimus laptops | |||||||||||||||||||||||||||
What it does is to check if the viewer is running on a computer with nvidia optimus hardware, and if so, activate the installed driver for it.
It shouldn't, I've had that in Dolphin Viewer for years and noone ever complained... Anyway: Optimus is what nvidia calls those setups for laptops, an intel integrated GPU for normal rendering, and an additional NVidia chip for 3d work. Bumblebee is the old way of dealing with this on linux, prime render offloading is the new way.
Cheers LC |
Author: | Henri Beauchamp [ 2020-06-18 19:28:42 ] | ||||||||||||||||||||||||||||||||||||
Post subject: | Re: Running Cool VL viewer on nvidia optimus laptops | ||||||||||||||||||||||||||||||||||||
![]()
As for PRIME, I was under the impression that it was sort of built inside the NVIDIA drivers and that all you had to do is to set some fancy environment variables, the ones you used in your patch, but with "NVIDIA-0" (or NVIDIA-n, as reported by xrandr) instead of "nvidia"... |
Author: | Lance Corrimal [ 2020-06-22 07:45:49 ] | |||||||||
Post subject: | Re: Running Cool VL viewer on nvidia optimus laptops | |||||||||
you were right about the type command, I'm going to rework my wrapper script a bit. anyway, yes, for prime all you have to do is set those variables, which is what my wrapper does. for optimus, it attempts to figure out which wrapper script to use, and then uses it. For any system with more than two graphics cards: ... well... normally that would be a system with an onboard intel GPU and either dual NVIDIA or dual AMD cards in SLI or whatever AMD calls it. In such a setup the onboard card should be disabled in your BIOS, and the crossfire / sli setup should report as only one card, if i'm not mistaken... and as far as laptops go, I don't really think there will be a laptop with more than two GPUs anyway. Still, I'm going to change my wrapper to the extent that the user can override everything I'm trying to do just by setting the right variables. For example, is you have your own wrapper for optimus, you can already run the viewer like this:
So all I need is to set the prime vars only IF there's a prime setup, and only IF they are empty. Should be simple enough. In any case, my additions to the wrapper script already work without issues on regular desktop PCs. Cheers LC |
Author: | Henri Beauchamp [ 2020-06-22 08:41:04 ] | |||||||||||||||||||||||||||
Post subject: | Re: Running Cool VL viewer on nvidia optimus laptops | |||||||||||||||||||||||||||
Mind you, I have desktop PCs with both iGPU and GPU active: the iGPU can be used on a second screen and/or as an additional OpenCL device for calculations (e.g. for rendering in blender).
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |