F39 - black screen after kernel upgrade

Hi to all, I’m encountering some problems after kernel update from kernel-6.5.12-300.fc39.x86_64 to kernel-6.6.2-201.fc39.x86_64.
No issues with kernel.6.5.12-xxx a part from two alerts:

iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
Bluetooth: hci0: Malformed MSFT vendor event: 0x02

from dmesg command.
When I booted in kernel-6.6.2-201.fc39.x86_64 it stops somewhere and I get a black screen.
I thougt it was a problem related to a specific kernel release, but the same happened also with the recent upgraded kernel-6.6.3-200.fc39.x86_64.
I’m running the lastest version of F39 on Lenovo p53s. I could post the output of journalctl -b -1. Sicne it’s an huge output, I thought to use Mozilla Community Pastebin. Please, let me know if you need some other informations.

Journalctl -b -1

Many thanks in advance.
Paolo

Are you a KDE user with nvidia graphics?

You really should try to show us the relevant information from journalctl along with the hardware details from inxi -Fzxx (as text using the </> button).

To save others the trouble and hopefully move things forward, here is the section that deals with video:

dic 04 22:56:41 fedora kernel: i915 0000:00:02.0: enabling device (0006 -> 0007)
dic 04 22:56:41 fedora kernel: ACPI Warning: \_SB.PCI0.RP09.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20230628/nsarguments-61)
dic 04 22:56:41 fedora kernel: pci 0000:3c:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported
dic 04 22:56:41 fedora kernel: VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.RP09.PEGP handle
dic 04 22:56:41 fedora kernel: nouveau: detected PR support, will not use DSM
dic 04 22:56:41 fedora kernel: nouveau 0000:3c:00.0: enabling device (0006 -> 0007)
dic 04 22:56:41 fedora kernel: Console: switching to colour dummy device 80x25
dic 04 22:56:41 fedora kernel: nouveau 0000:3c:00.0: NVIDIA GP108 (138000a1)
dic 04 22:56:41 fedora kernel: i915 0000:00:02.0: vgaarb: deactivate vga console
dic 04 22:56:41 fedora kernel: i915 0000:00:02.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=io+mem:owns=mem
dic 04 22:56:41 fedora kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
dic 04 22:56:41 fedora kernel: nouveau 0000:3c:00.0: bios: version 86.08.2a.00.0b
dic 04 22:56:41 fedora kernel: nouveau 0000:3c:00.0: pmu: firmware unavailable
dic 04 22:56:41 fedora kernel: i915 0000:00:02.0: [drm] [ENCODER:102:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
dic 04 22:56:41 fedora kernel: i915 0000:00:02.0: [drm] [ENCODER:118:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
dic 04 22:56:41 fedora kernel: nouveau 0000:3c:00.0: fb: 2048 MiB GDDR5
dic 04 22:56:41 fedora kernel: [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 1
dic 04 22:56:41 fedora kernel: ACPI: video: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
dic 04 22:56:41 fedora kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input7
dic 04 22:56:41 fedora kernel: ACPI: video: Video Device [PEGP] (multi-head: no  rom: yes  post: no)
dic 04 22:56:41 fedora kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4c/LNXVIDEO:01/input/input8
dic 04 22:56:42 fedora kernel: fbcon: i915drmfb (fb0) is primary device
dic 04 22:56:42 fedora systemd[1]: systemd-vconsole-setup.service: Deactivated successfully.
dic 04 22:56:42 fedora kernel: Console: switching to colour frame buffer device 240x67
dic 04 22:56:42 fedora kernel: vga_switcheroo: enabled
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: VRAM: 2048 MiB
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: GART: 536870912 MiB
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: BIT table 'A' not found
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: BIT table 'L' not found
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: Pointer to TMDS table not found
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: DCB version 4.1
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: DRM: MM: using COPY for buffer copies
dic 04 22:56:42 fedora kernel: [drm] Initialized nouveau 1.4.0 20120801 for 0000:3c:00.0 on minor 0
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: [drm] No compatible format found
dic 04 22:56:42 fedora kernel: nouveau 0000:3c:00.0: [drm] Cannot find any crtc or sizes
dic 04 22:56:42 fedora systemd[1]: Stopped systemd-vconsole-setup.service - Virtual Console Setup.
dic 04 22:56:42 fedora systemd[1]: Stopping systemd-vconsole-setup.service - Virtual Console Setup...
dic 04 22:56:42 fedora kernel: i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device

Do you have the nvidia-gpu-firmware.noarch (Firmware for NVIDIA GPUs) package installed and what version is it?

You may want to skip nouveau and just install the non-free Nvidea drivers from rpmfusion – note the section on Optimus.

I’m running Gnome DE with Nouveau video. Here the output of inxi -Fzxx command:

System:
  Kernel: 6.5.12-300.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-13.fc39 Desktop: GNOME v: 45.2 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 39 (Thirty Nine)
Machine:
  Type: Laptop System: LENOVO product: 20N6001JUK v: ThinkPad P53s
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20N6001JUK v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: N2IETA2W (1.80 )
    date: 06/21/2023
Battery:
  ID-1: BAT0 charge: 47.6 Wh (99.4%) condition: 47.9/57.0 Wh (83.9%)
    volts: 12.1 min: 11.5 model: SMP 02DL012 serial: <filter>
    status: discharging
CPU:
  Info: quad core model: Intel Core i7-8665U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check rev: C cache: L1: 256 KiB L2: 1024 KiB
    L3: 8 MiB
  Speed (MHz): avg: 475 high: 600 min/max: 400/4800 cores: 1: 600 2: 400
    3: 400 4: 600 5: 600 6: 400 7: 400 8: 400 bogomips: 33599
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Lenovo
    driver: i915 v: kernel arch: Gen-9.5 ports: active: eDP-1 empty: DP-1,
    DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:3ea0
  Device-2: NVIDIA GP108GLM [Quadro P520] vendor: Lenovo driver: nouveau
    v: kernel arch: Pascal pcie: speed: 2.5 GT/s lanes: 4 bus-ID: 3c:00.0
    chip-ID: 10de:1d34 temp: 35.0 C
  Device-3: Chicony ThinkPad T490 Webcam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-8:3 chip-ID: 04f2:b681
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.2
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915
    display-ID: 0
  Monitor-1: eDP-1 model: Lenovo 0x40ba res: 1920x1080 dpi: 142
    diag: 395mm (15.5")
  API: OpenGL v: 4.6 vendor: intel mesa v: 23.2.1 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    device-ID: 8086:3ea0 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9dc8
  API: ALSA v: k6.5.12-300.fc39.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:9df0
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15bd
  IF: enp0s31f6 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
    v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-10:5
    chip-ID: 8087:0aaa
  Report: btmgmt ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 5.1
    lmp-v: 10
Drives:
  Local Storage: total: 476.94 GiB used: 143.73 GiB (30.1%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN720
    SDAQNTW-512G-1001 size: 476.94 GiB speed: 31.6 Gb/s lanes: 4
    serial: <filter> temp: 44.9 C
Partition:
  ID-1: / size: 291.97 GiB used: 71.69 GiB (24.6%) fs: btrfs
    dev: /dev/nvme0n1p5
  ID-2: /boot size: 973.4 MiB used: 297.6 MiB (30.6%) fs: ext4
    dev: /dev/nvme0n1p4
  ID-3: /boot/efi size: 996 MiB used: 58.2 MiB (5.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 291.97 GiB used: 71.69 GiB (24.6%) fs: btrfs
    dev: /dev/nvme0n1p5
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A gpu: nouveau temp: 35.0 C
  Fan Speeds (rpm): fan-1: 3144
Info:
  Processes: 395 Uptime: 1h 39m Memory: total: 32 GiB note: est.
  available: 30.96 GiB used: 4.03 GiB (13.0%) Init: systemd v: 254
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages: 36
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 33 pm: snap pkgs: 3
  Shell: Bash v: 5.2.21 running-in: gnome-terminal inxi: 3.3.31

In the previous post, I use an external pastebin application because the output of journalctl command exceeded the amount of characters allowed in a post, and I could not extract the relevant part. My bad.

$ dnf list installed "*nvidia*"
Pacchetti installati
nvidia-gpu-firmware.noarch               20231111-1.fc39                @updates

I would like to use Prime Render Offload. As far as I know, I can’t use It along with Wayland, and Nvidia driver. So I decided for nouveau driver instead. I don’t know if they are causing the problem.

Not sure I’m doing well, but, if it is a kernel related problem, I locked the working version from upgrading with:

sudo dnf versionlock add kernel-6.5*
Ultima verifica della scadenza dei metadati: 0:08:05 fa il mer 6 dic 2023, 16:39:55.
Aggiunta di blocco versione per: kernel-0:6.5.12-300.fc39.*
(version locked for: kernel-...) <= translation added by myself. be patient with italian console output :)

Am I worng?

I expect this is the cause of the black screen with the 6.6 kernel. You are still using the nouveau driver and many users see similar problems since the nouveau driver does not properly support newer nvidia gpus.

The fix probably would be to install the nvidia drivers from rpmfusion following the instructions here.
https://rpmfusion.org/Howto/NVIDIA

This is a bit disappointing since Render Offload is not supported yet by proprietary drivers, as I understood from here:

So, at the time of writing, this feature is not usable under Linux, since it is not provided nor by the open source driver, neither by the closed one. You are welcome to show different solutions if you are aware of them. thanks

Installing Nvida driver from rpmfusion solved. thanks to @computersavvy and @gnwiii for the hint.

Just to clear up, PRIME Render Offload was working since many drivers ago (apparently since at least driver 440 according to RPMFusion) but only for X11 apps (including in XWayland mode).

However it only started working for Wayland applications recently on Nvidia 545 driver, before that it would always crash. So, the alternative was to either switch running the system in Xorg or, even easier, force XWayland mode for the specific application (that is very easy to do with Flatseal, since you can change whether x11 or wayland or allowed there).