Mailinglist Archive: opensuse-factory (468 mails)

< Previous Next >
Re: [opensuse-factory] Bumblebee up for grabs
Am Donnerstag, 9. April 2020, 09:59:49 CEST schrieb Stefan Dirsch:


Only suse-prime package!

Not the suse-prime-bbswitch package, please! Since if you switch to intel
mode with that being installed, this will make sure no nvidia kernel
modules are loaded any longer in order to be able to switch the NVIDIA GPU
off!

ok, so I've installed suse-prime instead of suse-prime-bbswitch, and
uninstalled bbswitch and the package with the bbswitch kernel module.
bumblebee and primus are also uninstalled.

and then all I do is "prime-select intel", and then I'll be able to use
the __NV variables to get specific apps to use the nvidia card?

Exactly. On an Optimus laptop with Intel/nvidia GPU combination.

doesn't work here...
after "prime-select nvidia" and a relog:

mathias@kirika:~> sudo /usr/sbin/prime-select get-current
Driver configured: nvidia
mathias@kirika:~> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x22a; cap: 0x1 (Source Output); crtcs: 0; outputs: 0;
associated providers: 1; name: NVIDIA-0
Provider 1: id: 0x46; cap: 0xf (Source Output, Sink Output, Source Offload,
Sink Offload); crtcs: 3; outputs: 4; associated providers: 1; name: modese
tting
output eDP-1-1
output DP-1-1
output HDMI-1-1
output HDMI-1-2
mathias@kirika:~> inxi -G
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v:
kernel
Device-2: NVIDIA GM108M [GeForce 840M] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.3 driver: modesetting,nvidia
unloaded: intel resolution: 1366x768~60Hz
OpenGL: renderer: GeForce 840M/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82
mathias@kirika:~> glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x99
Context is Direct
OpenGL Renderer: GeForce 840M/PCIe/SSE2
mathias@kirika:~>


after prime-select intel and a relog:
mathias@kirika:~> sudo /usr/sbin/prime-select get-current
Driver configured: intel
mathias@kirika:~> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1df; cap: 0xf (Source Output, Sink Output, Source Offload,
Sink Offload); crtcs: 3; outputs: 4; associated providers: 0; name:
modesetting
output eDP-1
output DP-1
output HDMI-1
output HDMI-2
Provider 1: id: 0x1b8; cap: 0x0 (); crtcs: 0; outputs: 0; associated
providers: 0; name: NVIDIA-G0
mathias@kirika:~> inxi -G
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v:
kernel
Device-2: NVIDIA GM108M [GeForce 840M] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.3 driver: modesetting,nvidia
resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.3.2
mathias@kirika:~> __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
__GLX_VENDOR_LIBRARY_NAME=nvidia inxi -G
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v:
kernel
Device-2: NVIDIA GM108M [GeForce 840M] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.3 driver: modesetting,nvidia
resolution: 1366x768~60Hz
OpenGL: renderer: N/A v: N/A
mathias@kirika:~> __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 inxi -G
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v:
kernel
Device-2: NVIDIA GM108M [GeForce 840M] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.3 driver: modesetting,nvidia
resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.3.2
mathias@kirika:~> __NV_PRIME_RENDER_OFFLOAD_PROVIDER=1 inxi -G
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v:
kernel
Device-2: NVIDIA GM108M [GeForce 840M] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.3 driver: modesetting,nvidia
resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.3.2
mathias@kirika:~> __NV_PRIME_RENDER_OFFLOAD_PROVIDER=1 glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x292
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Haswell Mobile
61.084513 frames/sec - 53.778805 Mpixels/sec



any ideas?
the nvidia drivers "as such" work fine, as shown at the top...

Cheers
MH



--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups