Where do i type “nomodeset” in Grub2

im trying to disable the nouveau driver btw,im following a tutorial where it says to put “nomodeset” at the end of the line that starts with Linux, but that line expands to 3 lines which left me confused, can anybody point out where do i exactly leave the command.

here a pic of grub i have:

This completely disables KMS in kernel and today NVIDIA driver supports KMS.

It is one wrapped line. You can put “nomodeset” anywhere on this line as a separate word.

oh-… after updating (sudo zypper dup) my pc couldn’t detect nvidia card anymore, so i google the problem and some suggested i disable nouveau. so i guess i will find another way. tell me if u know can help pls

If a card is not detected, it does not matter which driver you try to use.

1 Like

Are you using the proprietary driver or the open nouveau driver

I had the closed source drivers since nouveau drivers never worked fine, it was working well until this last update that i did, following the update i noticed that they were deleted so i had reinstalled them with yast from nvidia repo, and now my pc only detect the integrated gpu

what is the output of inxi -GSaz

System:
  Kernel: 6.9.9-1-default arch: x86_64 bits: 64 compiler: gcc v: 13.3.0
    clocksource: hpet avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.9.9-1-default
    root=UUID=8314e85f-22f1-4ff1-bba1-63458b98332a splash=silent
    mitigations=auto quiet security=apparmor
  Desktop: KDE Plasma v: 6.1.2 tk: Qt v: N/A info: frameworks v: 6.4.0
    wm: kwin_wayland tools: avail: xscreensaver vt: 3 dm: SDDM Distro: openSUSE
    Tumbleweed 20240714
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
    vendor: Hewlett-Packard driver: nvidia v: 550.100
    alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current (as of
    2024-06; EOL~2026-12-xx) arch: Turing code: TUxxx process: TSMC 12nm FF
    built: 2018-2022 pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3
    speed: 8 GT/s lanes: 16 ports: active: none empty: HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:1f99 class-ID: 0300
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Hewlett-Packard driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1 empty: none
    bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 47.0 C
  Device-3: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-3:2 chip-ID: 0408:5365
    class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.12 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,vesa alternate: nouveau,nv dri: radeonsi
    gpu: nvidia,amdgpu display-ID: 0
  Monitor-1: eDP-1 res: 1536x864 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 2 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi inactive: device-1
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.3 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi renoir LLVM
    18.1.8 DRM 3.57 6.9.9-1-default) device-ID: 1002:1638 memory: 500 MiB
    unified: no display-ID: :1.0
  API: Vulkan v: 1.3.283 layers: 5 device: 0 type: integrated-gpu name: AMD
    Radeon Graphics (RADV RENOIR) driver: N/A device-ID: 1002:1638
    surfaces: xcb,xlib,wayland

it shows that nvidia drivers are detected, how are you checking which gpu is detected by your pc, what is the output of nvidia-smi and are you using PRIME or switcheroo
you can also try blacklisting the nouveau drivers and enabling nvidia drm by creating a file name 50-nvidia.conf at /etc/modprobe.d/ with the folloeing options:

options nvidia-drm fbdev=1
options nvidia-drm modeset=1
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

and then run sudo dracut -f --regenerate-all and rebooting

When installing the Nvidia drivers, noveau is automatically blacklisted.
Better wait for @malcolmlewis as he has way more experience with dual setup.

How old is this installation? Days? Weeks? Months? Have you never had this problem before with this laptop? At what point during boot is failure first apparent?

Inxi reports you have two GPUs, with the nvidia kernel module loaded for #1 and the amdgpu kernel module loaded for #2. So far, so good. It also reports an nvidia display driver, appropriate only with NVidia GPUs, and a modesetting display driver, appropriate for both your GPUs. Even though ostensibly appropriate display drivers are loaded, inxi reports the GeForce to be inactive, with the Radeon active connected to the laptop display. It may be all that’s needed is to make use of suse-prime or switcheroo. Are they installed? Have you used either before?

If you never needed to blacklist nouveau before, it should not be needed now out of the blue just because of a normal upgrade, or did you? Did you upgrade using zypper dup, or something else?

i noticed it for exemple in lutris settings and superposition benchmarks

u mean the update? just did it few hours ago. i have opensuse installed since april

no cuz im new to linux i guess

no failure or anything just lutris and my apps dont seem to detect nvidia, just amd

i have never head of these tbh i will try installing them and see

yes i did, and googled my problem and some suggested to disable nouveau

are you using the normal version of lutris or the flatpakk one, you can try launching the apps using
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia
environment variables

These variables are fully integrated in suse-prime and prime-run
https://en.opensuse.org/SDB:NVIDIA_SUSE_Prime#Offloading

1 Like

normal one

i did put it, but the game still uses AMD instead:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.