I’ve got a Clevo P950R, which is hybrid Intel/Nvidia.
I can play games on the internal monitor just fine. But when I try to watch videos or game on an external monitor instead, plugged into the HDMI port, the framerate drops very low and it becomes oh so stuttery. The wayland/xwayland screen on the external monitor seems to tax the igpu quite heavily, even if the game itself uses the dgpu.
This seems weird.
Can someone give me pointers to get reverse prime(?) working on wayland?
/etc/X11/xorg.conf.d/nvidia.conf
Section “ServerLayout”
Identifier “layout”
Option “AllowNVIDIAGPUScreens”
EndSection
Section “Device”
Identifier “intel”
Driver “modesetting”
BusID “PCI:0@0:2:0”
EndSection
Section “Device”
Identifier “nvidia”
Driver “nvidia”
BusID “PCI:1@0:0:0”
Option “ConstrainCursor” “off”
Option “coolbits” “28”
Option “PrimaryGPU” “yes”
EndSection
Section “OutputClass”
Identifier “nvidia”
MatchDriver “nvidia-drm”
Driver “nvidia”
Option “AllowEmptyInitialConfiguration”
Option “SLI” “Auto”
Option “BaseMosaic” “on”
Option “PrimaryGPU” “yes”
EndSection
lspci | grep VGA
:
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
01:00.0 VGA compatible controller: NVIDIA Corporation GP104M [GeForce GTX 1070 Mobile] (rev a1)
inxi -FAzy80
System:
Kernel: 6.4.7-200.fc38.x86_64 arch: x86_64 bits: 64 Desktop: KDE Plasma
v: 5.27.6 Distro: Fedora release 38 (Thirty Eight)
Machine:
Type: Laptop System: Notebook product: P95xER v: N/A
serial:
Mobo: Notebook model: P95xER serial:
UEFI: American Megatrends v: 1.07.15 date: 11/16/2018
Battery:
ID-1: BAT0 charge: 31.7 Wh (89.5%) condition: 35.4/53.2 Wh (66.5%)
CPU:
Info: 6-core model: Intel Core i7-8750H bits: 64 type: MT MCP cache:
L2: 1.5 MiB
Speed (MHz): avg: 1616 min/max: 800/4100 cores: 1: 2200 2: 2200 3: 800
4: 2200 5: 2200 6: 800 7: 800 8: 2200 9: 2200 10: 2200 11: 800 12: 800
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
Device-2: NVIDIA GP104M [GeForce GTX 1070 Mobile] driver: nvidia
v: 535.86.05
Device-3: Chicony USB 2.0 Camera driver: uvcvideo type: USB
Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.9
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
gpu: i915,nvidia resolution: 1920x1080
API: OpenGL v: 4.6 Mesa 23.1.5 renderer: Mesa Intel UHD Graphics 630 (CFL
GT2)
Audio:
Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
API: ALSA v: k6.4.7-200.fc38.x86_64 status: kernel-api
Server-1: PipeWire v: 0.3.77 status: active
Network:
Device-1: Intel Wireless-AC 9260 driver: iwlwifi
IF: wlp3s0 state: up mac:
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: enp4s0 state: down mac:
IF-ID-1: wg-norway state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
Device-1: Intel Wireless-AC 9260 Bluetooth Adapter driver: btusb type: USB
Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 2.05 TiB used: 1.23 TiB (60.2%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 EVO 250GB
size: 232.89 GiB
ID-2: /dev/sda vendor: Seagate model: ST2000LX001-1RG174 size: 1.82 TiB
Partition:
ID-1: /boot size: 973.4 MiB used: 98 MiB (10.1%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 598.8 MiB used: 9.8 MiB (1.6%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: zram size: 14 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: 49.0 C pch: 54.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 368 Uptime: 1d 2h 38m Memory: available: 31.06 GiB
used: 6.92 GiB (22.3%) Shell: Zsh inxi: 3.3.27