Page 2 of 2

Re: nvidia optimus

Posted: Sat Dec 18, 2021 1:14 pm
by mg979
Purged/reinstalled with tools, no bumblebee:

Code: Select all

$ inxi -G
Graphics:  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 460.91.03 
           Display: x11 server: X.Org 1.20.11 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.5 

$ nvidia-run-mx nvidia-settings

ERROR: Unable to load info from any available system

Re: nvidia optimus  [Solved]

Posted: Sat Dec 18, 2021 2:34 pm
by dolphin_oracle
we probably need the

/var/log/ddm.log

file and also the output of both

Code: Select all

nvidia-detect
and

Code: Select all

nvidia-detect-mx
also, if you have switched to the "intel" graphics driver in mx-tweak, try going back to modesetting. forcing use of "intel" will cause the issue you are facing.

On the 1060 that I have here, I don't need any special tools to start nvidia-setttings, but I'm not using the "intel" driver.

Re: nvidia optimus

Posted: Sat Dec 18, 2021 4:19 pm
by mg979
dolphin_oracle wrote: Sat Dec 18, 2021 2:34 pm also, if you have switched to the "intel" graphics driver in mx-tweak, try going back to modesetting. forcing use of "intel" will cause the issue you are facing.

On the 1060 that I have here, I don't need any special tools to start nvidia-setttings, but I'm not using the "intel" driver.
That was it thanks! Unfortunately without the intel driver I get horrible screen tearing everywhere. I guess I'll stay with the intel card on Linux.

Re: nvidia optimus [solved]

Posted: Sat Dec 18, 2021 6:02 pm
by Stevo
You can use the intel driver with bumblebee on MX 21 with your card, but nvidia-settings does need extra goodies on the command:

viewtopic.php?t=67997

The easiest way to test with either the MX Prime command or optirun is just compare the output of "inxi -G" alone and then preceded by the command.

Code: Select all

optirun inxi -G

Re: nvidia optimus [solved]

Posted: Sun Dec 19, 2021 1:53 am
by mg979
Stevo wrote: Sat Dec 18, 2021 6:02 pm You can use the intel driver with bumblebee on MX 21 with your card, but nvidia-settings does need extra goodies on the command:

viewtopic.php?t=67997
I had read that thread and tried with

Code: Select all

optirun -b none nvidia-settings -c :8
but it didn't work (got the errors from the first post). bumblebee failed to activate the card.

Reposting here:

Code: Select all

$ optirun nvidia-settings
[  963.884950] [ERROR]No bridge found. Try installing primus or virtualgl.

$ optirun -b none nvidia-settings -c :8
[  986.886349] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card

[  986.886402] [ERROR]Aborting because fallback start is disabled.

Re: nvidia optimus [solved]

Posted: Sun Dec 19, 2021 3:55 am
by mg979
Just adding that I switched again to modesetting and enabled

Code: Select all

backend = "glx";
in my compton.conf and I have no more screen tearing, everything seems to work well now! Thanks for the help.

This is my inxi output now:

Code: Select all

$ inxi -G
Graphics:  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 460.91.03 
           Display: x11 server: X.Org 1.20.11 driver: modesetting,nvidia 
           unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.5 

$ nvidia-run-mx inxi -G
Graphics:  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 460.91.03 
           Display: x11 server: X.Org 1.20.11 driver: modesetting,nvidia 
           unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 460.91.03