Beast of a machine on Fedora 41 has terrible performance

I have a pretty beefy laptop that I bought recently. I’ve been using fedora for a few years now and never had such an issue before. After updating to fedora 41, I did not use my laptop for a week or two (due to master’s and work related stuff) and when I opened it, the performance of the machine seems very poor. I’m not sure if there’s fedora 41 or it’s dependencies based compatibility issue or if the drivers are acting weird, but simple animations like hovering over stuff seems very sluggish and overall performance is pretty bad given the specs of the laptop.

Below is the inxi -Fzxx output along with Gnome’s system info:

System:
  Kernel: 6.12.9-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
  Console: pty pts/3 wm: gnome-shell DM: GDM Distro: Fedora Linux 41
    (Workstation Edition)
Machine:
  Type: Laptop System: LENOVO product: 82WK v: Legion Pro 5 16IRX8
    serial: <filter> Chassis: type: 10 v: Legion Pro 5 16IRX8 serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN serial: <filter>
    part-nu: LENOVO_MT_82WK_BU_idea_FM_Legion Pro 5 16IRX8 UEFI: LENOVO
    v: KWCN46WW date: 07/04/2024
Battery:
  ID-1: BAT0 charge: 78.5 Wh (100.0%) condition: 78.5/80.0 Wh (98.1%)
    volts: 17.4 min: 15.4 model: SMP L22M4PC0 serial: <filter> status: full
CPU:
  Info: 24-core (8-mt/16-st) model: 13th Gen Intel Core i9-13900HX bits: 64
    type: MST AMCP arch: Raptor Lake rev: 1 cache: L1: 2.1 MiB L2: 32 MiB
    L3: 36 MiB
  Speed (MHz): avg: 1073 min/max: 800/5200:5400:3900 cores: 1: 1073 2: 1073
    3: 1073 4: 1073 5: 1073 6: 1073 7: 1073 8: 1073 9: 1073 10: 1073 11: 1073
    12: 1073 13: 1073 14: 1073 15: 1073 16: 1073 17: 1073 18: 1073 19: 1073
    20: 1073 21: 1073 22: 1073 23: 1073 24: 1073 25: 1073 26: 1073 27: 1073
    28: 1073 29: 1073 30: 1073 31: 1073 32: 1073 bogomips: 154828
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Raptor Lake-S UHD Graphics vendor: Lenovo driver: i915
    v: kernel arch: Xe ports: active: eDP-1 empty: none bus-ID: 00:02.0
    chip-ID: 8086:a788
  Device-2: NVIDIA AD106M [GeForce RTX 4070 Max-Q / Mobile] vendor: Lenovo
    driver: nvidia v: 565.77 arch: Lovelace pcie: speed: 5 GT/s lanes: 8 ports:
    active: none off: HDMI-A-1 empty: DP-1,DP-2,eDP-2 bus-ID: 01:00.0
    chip-ID: 10de:2860
  Device-3: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-11:5 chip-ID: 04f2:b7b6
  Display: unspecified server: X.Org v: 24.1.4 with: Xwayland v: 24.1.4
    compositor: gnome-shell driver: dri: iris gpu: i915,nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 9216x2940 s-dpi: 96
  Monitor-1: not-matched mapped: HDMI-1 pos: primary,top-left res: 5120x2880
    hz: 144 dpi: 217 diag: 690mm (27.15")
  Monitor-2: not-matched mapped: eDP-1 pos: bottom-r res: 4096x2560 hz: 240
    dpi: 306 diag: 405mm (15.94")
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.3.3 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel Graphics (RPL-S)
    device-ID: 8086:a788
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo gpu: nvidia-settings x11: xdriinfo, xdpyinfo,
    xprop, xrandr
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7a50
  Device-2: NVIDIA AD106M High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: speed: 5 GT/s lanes: 8 bus-ID: 01:00.1
    chip-ID: 10de:22bd
  API: ALSA v: k6.12.9-200.fc41.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.2.7 status: off with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7a70
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 4000 bus-ID: 0c:00.0 chip-ID: 10ec:8168
  IF: enp12s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-14:7 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
Drives:
  Local Storage: total: 953.87 GiB used: 15.5 GiB (1.6%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDKBA1T0TFH size: 953.87 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
Partition:
  ID-1: / size: 552.16 GiB used: 14.98 GiB (2.7%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 475.8 MiB (48.9%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 57.8 MiB (60.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 552.16 GiB used: 14.98 GiB (2.7%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 51.5 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.07 GiB used: 6.63 GiB (21.3%)
    igpu: 60 MiB
  Processes: 580 Power: uptime: 21m wakeups: 0 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 13
    Compilers: gcc: 14.2.1 Shell: Sudo v: 1.9.15p5 running-in: tilix
    inxi: 3.3.37

System info:

# System Details Report
---

## Report details
- **Date generated:**                              2025-01-22 11:12:13

## Hardware Information:
- **Hardware Model:**                              Lenovo Legion Pro 5 16IRX8
- **Memory:**                                      32.0 GiB
- **Processor:**                                   13th Gen Intel® Core™ i9-13900HX × 32
- **Graphics:**                                    Intel® Graphics (RPL-S)
- **Graphics 1:**                                  NVIDIA GeForce RTX™ 4070 Laptop GPU
- **Disk Capacity:**                               1.0 TB

## Software Information:
- **Firmware Version:**                            KWCN46WW
- **OS Name:**                                     Fedora Linux 41 (Workstation Edition)
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               47
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.12.9-200.fc41.x86_64

This is the only thing I note.
The display is ‘unspecified’
Both monitors show as ‘not-matched’

It appears from the system info that you are using wayland but that does not show in inxi and the monitors are usually identified as well.

Please try running dnf distro-sync and akmods --force --rebuild then reboot and see if things change at all.