You are not logged in.

#1 2024-03-09 09:51:53

w1se
Member
Registered: 2021-03-30
Posts: 2

Help with screen recording on Wayland

I’ve been using X11all this time, but recently switched to Wayland on this laptop, mainly due to gestures being a lifesaver. But I can’t get screen recording to work for the life of me. I want to record games and some online videos using the GPU.
As I understand, this was solved long ago and should be doable, so help me out a bit.

System info:

System:
  Kernel: 6.7.8-arch1-1 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.0.1 Distro: EndeavourOS
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 15-dc1xxx v: N/A
    serial: <superuser required>
  Mobo: HP model: 8575 v: 21.17 serial: <superuser required> UEFI: AMI
    v: F.23 date: 07/06/2021
CPU:
  Info: 6-core model: Intel Core i7-9750H bits: 64 type: MT MCP cache:
    L2: 1.5 MiB
  Speed (MHz): avg: 802 min/max: 800/4500 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 828 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia
    v: 550.54.14
  Device-3: Quanta HP Wide Vision HD Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915,nvidia resolution: 1920x1080
  API: EGL v: 1.5 drivers: iris,nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.0.2-arch1.1
    renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
  API: Vulkan v: 1.3.279 drivers: nvidia surfaces: xcb,xlib,wayland
Audio:
  Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
  Device-2: NVIDIA driver: snd_hda_intel
  Device-3: Samsung USB C Earphones driver: hid-generic,snd-usb-audio,usbhid
    type: USB
  API: ALSA v: k6.7.8-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.0.3 status: active
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi
  IF: wlan0 state: up mac: 0c:dd:24:02:7a:c4
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: eno1 state: down mac: f8:b4:6a:b4:41:10
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
    type: USB
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: 0C:DD:24:02:7A:C8 bt-v: 5.1
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
Drives:
  Local Storage: total: 1.14 TiB used: 57.53 GiB (4.9%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN720
    SDAPNTW-256G-1006 size: 238.47 GiB
  ID-2: /dev/sda vendor: HGST (Hitachi) model: HTS721010A9E630
    size: 931.51 GiB
Partition:
  ID-1: / size: 39.07 GiB used: 25.75 GiB (65.9%) fs: ext4 dev: /dev/nvme0n1p4
  ID-2: /boot/efi size: 256 MiB used: 92.8 MiB (36.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 57.68 GiB used: 31.7 GiB (55.0%) fs: ext4
    dev: /dev/nvme0n1p5
Swap:
  ID-1: swap-1 type: partition size: 4.55 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p6
Sensors:
  System Temperatures: cpu: 77.0 C pch: 66.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 2420 fan-2: 2232
Info:
  Memory: total: 8 GiB available: 7.57 GiB used: 2.99 GiB (39.5%)
  Processes: 275 Uptime: 46m Shell: Zsh inxi: 3.3.33
inxi -Ga                                                                                                                                           
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-2,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
    vendor: Hewlett-Packard driver: nvidia v: 550.54.14
    alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current (as of
    2024-02; 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: DP-1,HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:1f91 class-ID: 0300
  Device-3: Quanta HP Wide Vision HD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:4 chip-ID: 0408:5300
    class-ID: 0e02 serial: 200901010001
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915,nvidia display-ID: 0
  Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
    surfaceless: drv: nvidia wayland: drv: iris x11: drv: iris
    inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.0.2-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL
    GT2) device-ID: 8086:3e9b memory: 7.39 GiB unified: yes display-ID: :1.0
  API: Vulkan v: 1.3.279 layers: 5 device: 0 type: discrete-gpu
    name: NVIDIA GeForce GTX 1650 driver: nvidia v: 550.54.14
    device-ID: 10de:1f91 surfaces: xcb,xlib,wayland

On gpu-screen-recorder I get blank recordings when I try to record with prime-run

This comes up when using obs: https://i.imgur.com/1ZpZg4f.png

Offline

#2 2024-03-12 09:00:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: Help with screen recording on Wayland

Is pipewire/wireplumber installed and started, as well as xdg-desktop-portal-kde ? But FWIW afaik actual GPU acceelerated proper grabbing is still in flux and not fully implemented in the relevant pipewire capture source logistics.

Online

Board footer

Powered by FluxBB