Die Ablösung von bumblebee mit nvidia-driver fehlt

Started by Hanisch, 2025/07/23, 20:14:45

Previous topic - Next topic

hendrikL

Ob das Script funktioniert? Versuch macht klug!
Und wenn ich das richtig sehe, wüsste intelligentes Mensch mit der Fähigkeit gelesenes umzusetzen, was von dem Script ausgetauscht wird.

Ach ja, es gibt hervorragende Wiki Einträge zu diesem Thema, sei es bei debian, Arch oder gar bei Nvidia.

Was die Frage weiter oben sollte, ich wollte nur schauen ob der Nouveau Treiber installiert ist.

Hanisch

Quote from: towo on 2025/07/24, 19:57:23

Mit nouveau brauchts nur DRI_PRIME=1 foobar.
Mit "foobar" geht es nicht.
Mit:
$ cat ~/usr/optirun
#!/bin/bash

__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __DRI_PRIME=1 "$@"


wieder keine signifikanten Unterschiede.

Wie sollte das Script nun aussehen?

Gruß
Ch. Hanisch

dibl

Quote from: Hanisch on 2025/07/25, 09:47:35

Ich habe nun die Vermutung, daß towo's Script gar nicht die NVIDIA-Graka aktiviert.


https://wiki.debian.org/NVIDIA%20Optimus

Towo's skript funktioniert hier perfekt.

don@dibl-oryxpro:~$ inxi -G
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nvidia
    v: 550.163.01
  Device-3: Bison BisonCam NB Pro driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris,zink gpu: i915 resolution: 1920x1080~144Hz
  API: EGL v: 1.5 drivers: iris,kms_swrast,nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa
    v: 25.1.5-0siduction1 renderer: Mesa Intel UHD Graphics (TGL GT1)
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

hendrikL

#18
https://letmegooglethat.com/?q=foobar

#!/bin/bash

__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only DRI_PRIME=1 "$@"




Hanisch

Hallo,

Bei mir:
$ inxi -G
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    driver: i915 v: kernel
  Device-2: NVIDIA GF106M [GeForce GT 550M] driver: nouveau v: kernel
  Device-3: Quanta Laptop_Integrated_Webcam_2HDM driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.16 with: Xwayland v: 24.1.6 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 resolution:
    1: 1920x1080~60Hz 2: 1600x900~60Hz
  API: EGL v: 1.5 drivers: crocus,nouveau,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.5 compat-v: 3.3 vendor: intel mesa v: 25.1.5-0siduction1
    renderer: Mesa Intel HD Graphics 3000 (SNB GT2)
  Info: Tools: api: eglinfo,glxinfo de: kscreen-console, kscreen-doctor,
    xfce4-display-settings x11: xdriinfo, xdpyinfo, xprop, xrandr


Und weiter:
$ xrandr --setprovideroffloadsink nouveau Intel
Could not find provider with name nouveau


$ DRI_PRIME=0 glxinfo | grep "OpenGL vendor string"
OpenGL vendor string: Intel

$ DRI_PRIME=1 glxinfo | grep "OpenGL vendor string"
OpenGL vendor string: Mesa

Da sollte statt "Mesa"   "nouveau" stehen?

$ optirun glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x1bc
Context is Direct
OpenGL Renderer: NVC3
61.012329 frames/sec - 68.089760 Mpixels/sec
60.148492 frames/sec - 67.125718 Mpixels/sec
60.196092 frames/sec - 67.178839 Mpixels/sec
60.118076 frames/sec - 67.091773 Mpixels/sec
60.189874 frames/sec - 67.171899 Mpixels/sec
60.017817 frames/sec - 66.979884 Mpixels/sec
^C

/$ glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x1bc
Context is Direct
OpenGL Renderer: Mesa Intel(R) HD Graphics 3000 (SNB GT2)
60.994505 frames/sec - 68.069868 Mpixels/sec
60.144251 frames/sec - 67.120984 Mpixels/sec
60.135564 frames/sec - 67.111289 Mpixels/sec
60.183479 frames/sec - 67.164762 Mpixels/sec
60.122897 frames/sec - 67.097153 Mpixels/sec
60.150631 frames/sec - 67.128104 Mpixels/sec
^C


Ist das so in Ordnung?

Wenn das so einfach geht, wozu hat man dann das ganze Bumblebee-Gerassel gebraucht?

Gruß
Ch. Hanisch