Cast laptop screen to LG tv (webOS)

I want to share my screen as if i was connecting a HDMI cable to to tv. (Installed it via AUR)

I tried gnome-network-display which displays the tv i want to use and i can connect to it.
The tv recognise it, i have a pop up (on the tv) that says im trying to connect, black screen and then an error in the gnome-network-display.

Error i got

(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: WFDP2PProvider: Found a new sink with peer "[LG] webOS TV UP76703LB" (4E:BC:E9:53:A7:56) on device 0x556e31e6e050
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 4E:BC:E9:53:A7:56 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 4E:BC:E9:53:A7:56 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 62:AB:14:D1:C4:10 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 62:AB:14:D1:C4:10 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 4E:BC:E9:53:A7:56 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 66:07:F6:82:A9:B6 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: NdWFDP2PSink: Adding P2P MAC 66:07:F6:82:A9:B6 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: MetaSink: Priority sink updated. Priority: 100
(gnome-network-displays:2486832): Gnd-DEBUG: 18:48:59.090: SinkList: Adding a sink
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.793: Got state change notification from streaming sink to state ND_SINK_STATE_ENSURE_FIREWALL

(gnome-network-displays:2486832): Gnd-WARNING **: 18:49:11.795: codec list not initialized

(gnome-network-displays:2486832): Gnd-WARNING **: 18:49:11.795: codec list not initialized
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.795: WFDP2PProvider: Discover is now set to 0
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.795: WFDP2PProvider: Stopping P2P discovery.
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.805: NdFirewalld: Firewalld does not seem to be installed. Code will assume that no firewall will be configured.
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.805: NdWfdP2PSink: Got firewall information
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.805: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_P2P
(gnome-network-displays:2486832): Gtk-DEBUG: 18:49:11.952: snapshot symbolic icon using mask
(gnome-network-displays:2486832): Gtk-DEBUG: 18:49:11.965: snapshot symbolic icon using mask
(gnome-network-displays:2486832): Gtk-DEBUG: 18:49:11.967: snapshot symbolic icon using mask
(gnome-network-displays:2486832): Gtk-DEBUG: 18:49:11.969: snapshot symbolic icon using mask
(gnome-network-displays:2486832): Gtk-DEBUG: 18:49:11.971: snapshot symbolic icon using mask
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.988: NdWfdP2PSink: Got P2P connection
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.991: WfdMediaFactory: Checking profile: 0
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.991: WfdMediaFactory: Found x264enc gst element.
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.991: WfdMediaFactory: Found fdkaacenc gst element.
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.991: WfdMediaFactory: Found mpegtsmux gst element.
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.991: WfdMediaFactory: Found elements for media profile: 0
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.992: Got state change notification from streaming sink to state ND_SINK_STATE_WAIT_SOCKET
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.993: WFDP2PProvider: Device state changed. It is now 40. Reason: 0
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:11.993: WFDP2PProvider: Device state changed. It is now 50. Reason: 0

(gnome-network-displays:2486832): Gtk-CRITICAL **: 18:49:12.006: Unable to register the application: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.a11y.atspi.Registry': unit failed
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:57.016: WFDP2PProvider: Device state changed. It is now 120. Reason: 11
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:57.017: WfdServer: Finalize
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:57.017: WfdMediaFactory: Finalize
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:57.017: Got state change notification from streaming sink to state ND_SINK_STATE_ERROR
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:57.029: WFDP2PProvider: Device state changed. It is now 30. Reason: 0
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:58.640: WFDP2PProvider: Peer removed
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:58.640: NdWFDP2PProvider: Removing sink
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:58.640: NdWFDP2PSink: Adding P2P MAC 66:07:F6:82:A9:B6 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:49:58.640: MetaSink: Priority sink updated. Priority: 100
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.658: WFDP2PProvider: Peer removed
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.658: NdWFDP2PProvider: Removing sink
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.658: NdWFDP2PSink: Adding P2P MAC 62:AB:14:D1:C4:10 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.658: MetaSink: Priority sink updated. Priority: 100
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.659: WFDP2PProvider: Peer removed
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.659: NdWFDP2PProvider: Removing sink
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.660: NdWFDP2PSink: Adding P2P MAC 62:AB:14:D1:C4:10 to match list
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.660: MetaSink: No usable sink is left, object has become invalid.
(gnome-network-displays:2486832): Gnd-DEBUG: 18:50:18.660: SinkList: Removing a sink
inxi -v7azy

System:
  Kernel: 5.15.154-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=cc7be21e-d9d4-4881-841a-b047d2a1253a rw quiet
    udev.log_priority=3 intel_pstate=disable acpi_backlight=intel
  Desktop: i3 v: 4.23 with: polybar tools:
    avail: i3lock,light-locker,xss-lock vt: 7 dm: 1: LightDM v: 1.32.0 2: SDDM
    note: stopped Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20L6S1LV2F v: ThinkPad T480
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20L6S1LV2F v: SDK0J40697 WIN
    serial: <superuser required>
    part-nu: LENOVO_MT_20L6_BU_Think_FM_ThinkPad T480
    uuid: <superuser required> UEFI: LENOVO v: N24ET72W (1.47 )
    date: 01/03/2023
Battery:
  ID-1: BAT0 charge: 14.9 Wh (81.4%) condition: 18.3/23.9 Wh (76.5%)
    volts: 11.8 min: 11.4 model: LGC 01AV489 type: Li-poly serial: <filter>
    status: not charging cycles: 456
  ID-2: BAT1 charge: 50.2 Wh (73.8%) condition: 68.0/71.3 Wh (95.3%)
    power: 8.0 W volts: 11.8 min: 10.8 model: SANYO 01AV427 type: Li-ion
    serial: <filter> status: discharging cycles: 127
Memory:
  System RAM: total: 8 GiB available: 7.51 GiB used: 3.53 GiB (47.0%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 32 GiB slots: 2 modules: 2 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: ChannelA-DIMM0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 4 GiB speed: 2400 MT/s volts: curr: 1 width (bits):
    data: 64 total: 64 manufacturer: 0443 part-no: RMSA3270ME86H9F-2666
    serial: <filter>
  Device-2: ChannelB-DIMM0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 4 GiB speed: 2400 MT/s volts: curr: 1 width (bits):
    data: 64 total: 64 manufacturer: 0443 part-no: RMSA3270ME86H9F-2666
    serial: <filter>
CPU:
  Info: model: Intel Core i5-8350U bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2017 process: Intel 14nm family: 6
    model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xF4
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 983 high: 1100 min/max: 400/1901 boost: disabled scaling:
    driver: acpi-cpufreq governor: conservative cores: 1: 900 2: 962 3: 884
    4: 1075 5: 1100 6: 1045 7: 998 8: 900 bogomips: 30409
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt 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 fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep sgx smap smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3
    stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx
    vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS; IBPB: conditional; STIBP: conditional;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5917
    class-ID: 0300
  Device-2: Chicony Integrated Camera (1280x720@30) driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:3
    chip-ID: 04f2:b604 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.12 compositor: Picom v: git-89c2c
    driver: X: loaded: intel dri: i965 gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: LG Display 0x0521 built: 2016
    res: 1920x1080 hz: 60 dpi: 157 gamma: 1.2 size: 310x170mm (12.2x6.69")
    diag: 355mm (14") ratio: 16:9 modes: 1920x1080
  API: Vulkan v: 1.3.279 layers: 4 device: 0 type: integrated-gpu name: Intel
    UHD Graphics 620 (KBL GT2) driver: mesa intel v: 24.1.1-manjaro1.1
    device-ID: 8086:5917 surfaces: xcb,xlib
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo ThinkPad T480
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d71
    class-ID: 0403
  API: ALSA v: k5.15.154-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: off tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module
    tools: pacat,pactl,pamixer,pavucontrol
Network:
  Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15d7 class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
  Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:24fd class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: mld, NetworkManager, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.47 GiB used: 642.1 GiB (269.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKKF256G8L
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: L15P temp: 35.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 118.93 GiB size: 116.5 GiB (97.96%) used: 75.89 GiB (65.1%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A
    uuid: cc7be21e-d9d4-4881-841a-b047d2a1253a
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 25.4 MiB (26.4%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: N/A uuid: 2EAD-1B08
  ID-3: /mnt/external_hdd_1 raw-size: N/A size: 122.48 GiB
    used: 53.82 GiB (43.9%) fs: ext4 dev: /dev/sdc2 label: N/A uuid: N/A
  ID-4: /run/timeshift/2674756/backup raw-size: N/A size: 563.57 GiB
    used: 255.94 GiB (45.4%) fs: ext4 dev: /dev/sda1 label: N/A uuid: N/A
  ID-5: /run/timeshift/2686026/backup raw-size: N/A size: 563.57 GiB
    used: 256.43 GiB (45.5%) fs: ext4 dev: /dev/sdb1 label: N/A uuid: N/A
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 8 GiB used: 1.28 GiB (16.0%) priority: -2
    file: /swapfile
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 118.93 GiB fs: ntfs label: N/A
    uuid: 3648B0CC48B08C5D
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 509 MiB fs: ntfs label: N/A
    uuid: 1804C52004C5022C
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-8:3 info: Chicony Integrated Camera (1280x720@30) type: video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
    mode: 2.0 power: 500mA chip-ID: 04f2:b604 class-ID: 0e02 serial: <filter>
  Hub-2: 2-0:1 info: super-speed hub ports: 6 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 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 (57.2 MiB/s) lanes: 1 mode: 2.0 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 (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 40.0 C pch: 37.0 C mobo: N/A
  Fan Speeds (rpm): fan-1: 2314
Info:
  Processes: 296 Power: uptime: 20d 7h 43m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 43 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 2.99 GiB
    services: power-profiles-daemon, thermald, upowerd Init: systemd v: 256
    default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1860 libs: 470 tools: pamac,yay Compilers:
    clang: 17.0.6 gcc: 14.1.1 Shell: Bash v: 5.2.26 running-in: kitty
    inxi: 3.3.35

Any idea what could be the fix?

EDIT: I do not use any DE. So it can be that i dont have some gnome packages.

I don’t use Gnome, but it seems to be a missing CODEC.

Try running gst-inspect-1.0 | grep -E "openh264enc|x264enc|vaapih264enc" or just gst-inspect-1.0 | grep -E "264" and see what the output is.

1 Like
gst-inspect-1.0 | grep -E "264"
codec2json:  h2642json: H2642json
codectimestamper:  h264timestamper: H.264 timestamper
libav:  avdec_h264: libav H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 decoder
libav:  avmux_ipod: libav iPod H.264 MP4 (MPEG-4 Part 14) muxer
rtp:  rtph264depay: RTP H264 depayloader
rtp:  rtph264pay: RTP H264 payloader
typefindfunctions: video/x-h264: h264, x264, 264
uvch264:  uvch264deviceprovider (GstDeviceProviderFactory)
uvch264:  uvch264mjpgdemux: UVC H264 MJPG Demuxer
uvch264:  uvch264src: UVC H264 Source
videoparsersbad:  h264parse: H.264 parser
vulkan:  vulkanh264dec: Vulkan H.264 decoder
x264:  x264enc: x264 H.264 Encoder
 gst-inspect-1.0 | grep -E "openh264enc|x264enc|vaapih264enc"
x264:  x264enc: x264 H.264 Encoder