Poor PRIME performance (Intel + NVIDIA)

Hello!

I recently install manjaro with 5.19 kernel on my laptop and got poor performance. It feels like < 60 FPS even on desktop without running applications. Nvidia-settings see only external display without ability to change any settings. Also in gnome settings internal display has only 60Hz refresh rate but must have 240Hz

Here some outputs:

 System:
  Kernel: 5.19.7-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.19-x86_64
    root=UUID=29c4295c-f42c-4db2-8b3c-8d36fc387c8a rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3 ibt=off
  Desktop: GNOME v: 42.4 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Micro-Star product: Raider GE77HX 12UGS v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-17K5 v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: E17K5IMS.108 date: 07/14/2022
Battery:
  ID-1: BAT1 charge: 96.2 Wh (100.0%) condition: 96.2/95.0 Wh (101.2%)
    volts: 17.2 min: 15.2 model: MSI BIF0_9 type: Li-ion serial: N/A
    status: full
Memory:
  RAM: total: 31.06 GiB used: 5.42 GiB (17.4%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges
    required.
CPU:
  Info: model: 12th Gen Intel Core i7-12800HX bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 built: 2021+ process: Intel 7 (10nm
    ESF) family: 6 model-id: 0x97 (151) stepping: 2 microcode: 0x22
  Topology: cpus: 1x cores: 16 mt: 8 tpc: 2 st: 8 threads: 24 smt: enabled
    cache: L1: 1.4 MiB desc: d-8x32 KiB, 8x48 KiB; i-8x32 KiB, 8x64 KiB
    L2: 14 MiB desc: 8x1.2 MiB, 2x2 MiB L3: 25 MiB desc: 1x25 MiB
  Speed (MHz): avg: 2408 high: 4372 min/max: 800/4800:3400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 2300 2: 1190 3: 2300
    4: 2300 5: 3750 6: 2300 7: 2300 8: 2300 9: 2300 10: 2300 11: 4372 12: 2300
    13: 2300 14: 2300 15: 2300 16: 2300 17: 2300 18: 2300 19: 2300 20: 2300
    21: 2300 22: 2300 23: 2300 24: 2492 bogomips: 110616
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts clflush clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16 cx8
    de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fsrm fxsr gfni hfi ht hwp hwp_act_window
    hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ida intel_pt
    invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe
    movdir64b movdiri msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid
    pclmulqdq pdcm pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid
    rdrand rdseed rdtscp rep_good sdbg sep serialize sha_ni smap smep
    split_lock_detect ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm
    tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer tsc_known_freq umip vaes
    vme vmx vnmi vpclmulqdq vpid waitpkg x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel vendor: Micro-Star MSI driver: i915 v: kernel arch: Gen-12.2
    process: Intel 10nm built: 2021-22+ ports: active: eDP-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:4688 class-ID: 0300
  Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU]
    vendor: Micro-Star MSI driver: nvidia v: 515.65.01
    alternate: nouveau,nvidia_drm non-free: 515.xx+ status: current (as of
    2022-08) arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-22
    pcie: gen: 2 speed: 5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:24a0 class-ID: 0300
  Device-3: Acer Integrated Camera type: USB driver: uvcvideo bus-ID: 1-13:6
    chip-ID: 5986:1160 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 6400x2160 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-1-0 pos: right res: 3840x2160 hz: 60 dpi: 185
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") modes: N/A
  Monitor-2: eDP-1 pos: primary,left res: 2560x1440 hz: 60 dpi: 171
    size: 381x214mm (15x8.43") diag: 437mm (17.2") modes: N/A
  OpenGL: renderer: Mesa Intel Graphics (ADL-S GT1) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Alder Lake-S HD Audio vendor: Micro-Star MSI
    driver: sof-audio-pci-intel-tgl bus-ID: 1-4:3
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl chip-ID: 1235:8202
    bus-ID: 00:1f.3 class-ID: 0102 chip-ID: 8086:7ad0 class-ID: 0401
  Device-2: NVIDIA GA104 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:228b class-ID: 0403
  Device-3: Focusrite-Novation Focusrite Scarlett 2i2 2nd Gen type: USB
    driver: snd-usb-audio
  Sound Server-1: ALSA v: k5.19.7-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.57 running: yes
Network:
  Device-1: Intel Alder Lake-S PCH CNVi WiFi vendor: Rivet Networks
    driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:7af0 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek Killer E3000 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 5000 bus-ID: 04:00.0
    chip-ID: 10ec:3000 class-ID: 0200
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:7
    chip-ID: 8087:0033 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.86 TiB used: 609.71 GiB (32.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVL22T0HBLB-00B00 size: 1.86 TiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: GXB7601Q temp: 41.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 1.86 TiB size: 1.83 TiB (98.37%) used: 609.71 GiB (32.5%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 29c4295c-f42c-4db2-8b3c-8d36fc387c8a
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 312 KiB
    (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: NO_LABEL
    uuid: 621C-1429
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: ROCCAT Kone AIMO Mouse type: Mouse,Keyboard
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 500mA chip-ID: 1e7d:2e27 class-ID: 0300
  Device-2: 1-4:3 info: Focusrite-Novation Focusrite Scarlett 2i2 2nd Gen
    type: Audio driver: snd-usb-audio interfaces: 4 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 1235:8202 class-ID: 0102
  Device-3: 1-8:4 info: SteelSeries ApS KLC type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 300mA chip-ID: 1038:113a class-ID: 0300
  Device-4: 1-9:5 info: SteelSeries ApS ALC type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 300mA chip-ID: 1038:113e class-ID: 0300
  Device-5: 1-13:6 info: Acer Integrated Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 5986:1160
    class-ID: 0e02 serial: <filter>
  Device-6: 1-14:7 info: Intel type: Bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0033 class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 10 rev: 3.1 speed: 20 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 461 Uptime: 11m wakeups: 722 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6
  Packages: 1486 pm: pacman pkgs: 1475 libs: 447 tools: gnome-software,pamac
  pm: flatpak pkgs: 11 Shell: Zsh v: 5.9 running-in: gnome-terminal
  inxi: 3.3.21
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI


Warning: No installed USB configs!

Please, help!

What is wrong with using the last LTS version 5.15 ? Stable releases are not perfect and can be just called “stable enough to run, but bugs may be included by adding new features”.

On LTS 5.15

Intel Alder Lake-S PCH CNVi WiFi

doesn’t work. Driver don’t loads.

But new kernels have optimizations for Alder Lake

Hello i have sold for 10 years (among other things) solutions for military use, simulators and high end CAD-CAM … the display speed was based on the configuration and the graphical driver, including the way it was configured with the app using it … So i guess that the best you should do at first is testing it with your real own case app. Just to compare in another domain on a 5 years old computer VS my ASUS TUF under Manjaro KDE with prime-run in Second Life, i went from around 50 fps to 170+ fps. The test is easy to do as with ctrl+1 you get the Linden Lab graphical benchmark tool. Moreover on my TUF the CPU use is low though on my old computer it was exploding CPU use and thermal (see my TUF configuration in my profile, knowing that TUF if far from being optimized on the nvidia part as the watts are too low to deliver all the potential performance of the gpu but then the thermal would peak which is not my aim on a notebook).

Please post the output of:

xrandr --listproviders
glxinfo | grep "OpenGL renderer"
prime-run glxinfo | grep "OpenGL renderer"

I have a similar setup with three external 144 Hz monitors. I use the nvidia_drm.modeset=1 kernel parameter to enable PRIME Syncronization.

1 Like

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:modesetting
Provider 1: id: 0x24b cap: 0x2, Sink Output crtcs: 4 outputs: 8 associated providers: 1 name:NVIDIA-G0

glxinfo | grep “OpenGL renderer”

OpenGL renderer string: Mesa Intel(R) Graphics (ADL-S GT1)

prime-run glxinfo | grep “OpenGL renderer”

OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2

Try adding the kernel parameter as I mentioned above, update grub & reboot.

System doesn’t boot with it. Hangs on boot.

I also had that happen to me before. Blinking underscore cursor in the upper left? For some reason Xorg fails to load.

You can check the logs to see what happened.

Try booting from the rEFInd USB flash image with the kernel parameter set and see if that makes any difference vs. booting normally.

Error when i try to boot with nvidia_drm.modeset=1 kernel parameter:

[    34.172] (EE) modeset(G0): Failed to create pixmap
[    34.172] (EE) 
Fatal server error:
[    34.172] (EE) failed to create screen resources(EE) 
[    34.172] (EE) 

That tiny snippet doesn’t tell us anything. Please paste the full log to a pastebin service and link it here.

Here is it