Unable to make my nvidia card work in a dual-gpu laptop

Hi, I think I might be doing somethign wrong.

I have unistalled bbswitch and kmp, and now I see that the driver for nvidia is nouveau.

queroseno@localhost:~> inxi -GSaz
System:
  Kernel: 6.12.10-1-default arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.12.10-1-default
    root=UUID=d4961ba7-6339-4382-8973-e2ab2d69afa3 splash=silent
    mitigations=auto quiet security=apparmor
  Desktop: KDE Plasma v: 6.2.5 tk: Qt v: N/A info: frameworks v: 6.10.0
    wm: kwin_x11 tools: avail: xscreensaver vt: 2 dm: SDDM Distro: openSUSE
    Tumbleweed 20250121
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics
    vendor: CLEVO/KAPOK driver: i915 v: kernel arch: Gen-7.5 process: Intel 22nm
    built: 2013 ports: active: eDP-1 empty: HDMI-A-1,VGA-1 bus-ID: 00:02.0
    chip-ID: 8086:0416 class-ID: 0300
  Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: CLEVO/KAPOK
    driver: nouveau v: kernel non-free: series: 470.xx+
    status: legacy-active (EOL~2024-09-xx) arch: Kepler-2 code: GKxxx
    process: TSMC 28nm built: 2012-2018 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:11e2 class-ID: 0302 temp: 42.0 C
  Device-3: Bison BisonCam NB Pro driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-8:4 chip-ID: 5986:0400
    class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev,intel,nouveau,nv,nvidia dri: crocus,nouveau gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1343 built: 2012 res:
    mode: 1920x1080 hz: 60 scale: 100% (1) dpi: 166 gamma: 1.2
    size: 294x165mm (11.57x6.5") diag: 337mm (13.3") ratio: 16:9
    modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel crocus drv: nvidia nouveau platforms:
    device: 0 drv: nouveau device: 1 drv: crocus device: 2 drv: swrast gbm:
    drv: nouveau surfaceless: drv: nouveau x11: drv: crocus inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.3 vendor: intel mesa v: 24.3.3 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    device-ID: 8086:0416 memory: 1.46 GiB unified: yes
  API: Vulkan v: 1.4.304 layers: 5 device: 0 type: integrated-gpu name: Intel
    HD Graphics 4600 (HSW GT2) driver: N/A device-ID: 8086:0416
    surfaces: xcb,xlib
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr

also neither of the conf files are now in the output: Lizard25_02 - Pastebin.com

But everything I execute uses the intel card. In furmark, I can only choose between intel and llvmpipe which has same performance than the intel.

In Lutris, I can run a game with the intel, but attempting to change it to run with nvidia will just not start.

I think I am going to give it another go, but otherwise, will return back to the G04 drivers (Mental note: install G04, suse-prime, and bbswitch). A shame because I did want to check nouveau performance.

In any case, thank you for all your answer, they are really appreciated.

@Lizard25 You need to slow down :wink: I need more info now please before you jump ahead!

Can you show the output from xrandr --listproviders

And no, please don’t install that other stuff, that’s the problem…

IIRC from your current state to engage the Nvidia GPU with nouveau you should open a terminal and issue e.g.

DRI_PRIME=1 glxinfo

or, to see the same with the integrated GPU issue

DRI_PRIME=0 glxinfo

(just recalling from memory, so I might not be up to date).
Anyway, Malcolm knows better :wink:

queroseno@localhost:~> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 3; associated providers: 1; name: modesetting
    output eDP-1
    output VGA-1
    output HDMI-1
Provider 1: id: 0xc5; cap: 0x5 (Source Output, Source Offload); crtcs: 0; outputs: 0; associated providers: 1; name: modesetting
queroseno@localhost:~> 

I would only install in order to be back at privative driver, using intel mostly, and having to reboot to go to nvidia. I must say, that I am learning a lot.

@Lizard25 OK, that xrandr output is good, it also means you should not need suse-prime (it deprecated) and bbswitch stuff to see the Nvidia GPU.

OK, so now there are a couple of things to do.

Step 1. Fire up YaST Bootloader and in the kernel options you need to add fbdev=1 nosimplefb=1 and save.

Step 2. Add a lock for suse-prime and bbswitch zypper al suse-prime bbswitch*

Step 3. reboot and check those two kernel options were added by running cat /proc/cmdline

Step 4. Install the relevant nvidia 390.157 (G04) series rpms. {edit it is the G04}

Step 5. Install switcherooctl https://en.opensuse.org/SDB:NVIDIA_Switcheroo_Control

Step 6. Reboot and should see the Nvidia driver present in the output of switcherooctl list

Noooooo

I did all the steps in that order! Maybe is it because I am on KDE.

@Lizard25 can you show the output from inxi -Gxxz

Yes

queroseno@localhost:~> inxi -Gxxz
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics
    vendor: CLEVO/KAPOK driver: i915 v: kernel arch: Gen-7.5 ports:
    active: eDP-1 empty: HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0416
  Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: CLEVO/KAPOK
    driver: nvidia v: 390.157 arch: Kepler-2 pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:11e2
  Device-3: Bison BisonCam NB Pro driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-8:4 chip-ID: 5986:0400
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev,intel dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1343 res: 1920x1080 hz: 60
    dpi: 166 diag: 337mm (13.3")
  API: EGL v: 1.5 platforms: gbm: drv: crocus surfaceless: drv: crocus x11:
    drv: crocus inactive: wayland
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.3.3 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    device-ID: 8086:0416
  API: Vulkan v: 1.4.304 surfaces: xcb,xlib device: 0 type: integrated-gpu
    driver: N/A device-ID: 8086:0416
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
queroseno@localhost:~> 

@Lizard25 and xrandr --listproviders

queroseno@localhost:~> xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x44; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 3; associated providers: 0; name: modesetting
    output eDP-1
    output VGA-1
    output HDMI-1
queroseno@localhost:~> 


Is there any BIOS settings for the iGPU and dGPU?

Not in my current Bios, but I know that this Clevo can have other Bios. But I would like to avoid playing with the Bios, as I already had a bad experience with it in the past.

@Lizard25 If there are not any setting for the cards, then I want you to log out of the Wayland session and change to an Xorg one and check the commands.

Ignore above I see you already are…

The nvidia did show up in xrandr under nouveau… so is x11-video-nvidiaG04-390.157 really installed?

OK, so remove the switcherooctl stuff, remove the locks zypper rl suse-prime bbswitch* then zypper in suse-prime bbswitch-kmp-default then reboot and check the xrandr and inxi output again.

If that doesn’t work, set suse-prime to use offload and I assume reboot and try all the commands again.

It should be:

@Lizard25 Oh, does the nvidia-smi command work?

@OrsoBruno I wonder if that gpu needs an xorg.conf file to make it work properly (which is what suse-prime does)? Or maybe just Bumblebee…

I’m about to head out for the afternoon, so won’t be back for some time…

I have done all that (the nvidia-smi is after removing switcherooctl and installing the bswitch and suse-prime):

queroseno@localhost:~> inxi -Gxxz
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics
    vendor: CLEVO/KAPOK driver: i915 v: kernel arch: Gen-7.5 ports:
    active: eDP-1 empty: HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0416
  Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: CLEVO/KAPOK
    driver: nvidia v: 390.157 arch: Kepler-2 pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:11e2
  Device-3: Bison BisonCam NB Pro driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-8:4 chip-ID: 5986:0400
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev,intel dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1343 res: 1920x1080 hz: 60
    dpi: 166 diag: 337mm (13.3")
  API: EGL v: 1.5 platforms: gbm: drv: crocus surfaceless: drv: crocus x11:
    drv: crocus inactive: wayland
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.3.3 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    device-ID: 8086:0416
  API: Vulkan v: 1.4.304 surfaces: xcb,xlib device: 0 type: integrated-gpu
    driver: N/A device-ID: 8086:0416
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo, xprop, xrandr
queroseno@localhost:~> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 3; associated providers: 0; name: modesetting
    output eDP-1
    output VGA-1
    output HDMI-1
Provider 1: id: 0x29c; cap: 0x0 (); crtcs: 0; outputs: 0; associated providers: 0; name: modesetting
queroseno@localhost:~> nvidia-smi
Thu Jan 23 19:03:55 2025       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.157                Driver Version: 390.157                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 765M    Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   52C    P8    N/A /  N/A |      2MiB /  2002MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+
queroseno@localhost:~>

No worries, we will pick it up later. Thank you.