Plasma compositor does not work with OpenGl in hybrid mode

Hi there,
I was running DaVinci Resolve and then I went to add a window rule to give it a title bar, as soon as plasma refreshed, all the animations were very laggy and were running at 1 FPS.
I had the same problem on Ubuntu, I posted on askUbuntu and got no reply.
The solution is to change the back-end render option in the compositor settings to Xrender, but at the same time I get GPU errors in DaVinci Resolve, these two issues seem related; when one works the other works too.
This happened after I installed ocl-icd, opencl-nvidia and opencl-headers, I uninstalled them all but that made no difference.
It used to work the first time I installed Manjaro, so I installed Manjaro with the hope of escaping this issue so I hope to resolve it once and for all so I may run resolve, thanks.

$ inxi -Fazmy
  Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64
  root=UUID=ee069653-05a6-40d7-911d-edad961c95f4 rw quiet apparmor=1
  security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
  Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: LENOVO product: 80TU v: Lenovo ideapad 310-14IKB
  serial: <filter> Chassis: type: 10 v: Lenovo ideapad 310-14IKB
  serial: <filter>
  Mobo: LENOVO model: Torronto 4C2 v: NO DPK serial: <filter> UEFI: LENOVO
  v: 3JCN21WW date: 09/23/2016
  ID-1: BAT0 charge: 21.0 Wh (100.0%) condition: 21.0/30.0 Wh (69.9%)
  volts: 8.5 min: 7.4 model: SMP L15M2PB2 type: Li-poly serial: <filter>
  status: Full
  RAM: total: 19.45 GiB used: 3.99 GiB (20.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
  Info: Dual Core model: Intel Core i7-7500U bits: 64 type: MT MCP
  arch: Amber/Kaby Lake note: check family: 6 model-id: 8E (142) stepping: 9
  microcode: EA cache: L2: 4 MiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 23209
  Speed: 500 MHz min/max: 400/3500 MHz Core speeds (MHz): 1: 500 2: 600 3: 518
  4: 540
  Vulnerabilities: 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: 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: Full generic retpoline, IBPB: conditional,
  IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
  Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel
  bus-ID: 00:02.0 chip-ID: 8086:5916 class-ID: 0300
  Device-2: NVIDIA GM108M [GeForce 920MX] vendor: Lenovo driver: nvidia
  v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 03:00.0
  chip-ID: 10de:134f class-ID: 0302
  Device-3: Chicony EasyCamera type: USB driver: uvcvideo bus-ID: 1-4:4
  chip-ID: 04f2:b57d class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver:
  loaded: modesetting,nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3286x1080 s-dpi: 96 s-size: 867x285mm (34.1x11.2")
  s-diag: 913mm (35.9")
  Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 112 size: 309x173mm (12.2x6.8")
  diag: 354mm (13.9")
  Monitor-2: DP-1 res: 1920x1080 hz: 60 dpi: 36 size: 1360x768mm (53.5x30.2")
  diag: 1562mm (61.5")
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.2.3
  direct render: Yes
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
  chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.13.19-2-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: yes
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: Lenovo driver: r8169 v: kernel port: 4000 bus-ID: 01:00.0
  chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
  vendor: Lenovo driver: ath10k_pci v: kernel bus-ID: 02:00.0
  chip-ID: 168c:0042 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-7:6
  chip-ID: 0cf3:e500 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
  rfk-block: hardware: no software: yes address: see --recommends
  Local Storage: total: 372.62 GiB used: 241.14 GiB (64.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G
  size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: 0102 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST9160412AS
  size: 149.05 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
  type: HDD rpm: 7200 serial: <filter> rev: HPM1 scheme: MBR
  ID-1: / raw-size: 223.27 GiB size: 218.71 GiB (97.96%)
  used: 126.28 GiB (57.7%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
  used: 288 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  Alert: No swap data was found.
$ mhwd
> 0000:03:00.0 (0302:10de:134f) Display controller nVidia Corporation:
                  NAME               VERSION          FREEDRIVER           TYPE
video-hybrid-intel-nvidia-prime            2021.07.28               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               false            PCI
          video-nvidia            2020.11.30               false            PCI
    video-nvidia-390xx            2020.11.30               false            PCI
           video-linux            2018.05.04                true            PCI

> 0000:01:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
                  NAME               VERSION          FREEDRIVER           TYPE
         network-r8168            2016.04.20                true            PCI

> 0000:00:02.0 (0300:8086:5916) Display controller Intel Corporation:
                  NAME               VERSION          FREEDRIVER           TYPE
video-hybrid-intel-nvidia-prime            2021.07.28               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

First… dont bump threads. Especially … in … 1 hour?

Second … your BIOS is out of date.

Third … this sounds like “it worked, then I did some things, now it doesnt work” - to which the simplest answer is … reinstall.

What does that mean?

It means your computers BIOS is old and there are updates available. This is not a Manjaro or OS issue … you need to get the update from your manufacturer.

Yes I know that, but what does that have to do with the GPU issue?

Also, how do you know my BIOS is outdated?

❯ sudo fwupdmgr get-updates
[sudo] password for myms: 
Devices with no available firmware updates: 
 • KINGSTON SA400S37240G
 • ST9160412AS
 • System Firmware
 • UEFI Device Firmware
 • UEFI Device Firmware
 • UEFI dbx
No updatable devices

Because its from 2016 and that is out of date for that model.

What about that :point_up_2:?

What do you mean? fwupdmgr can only handle so many things … it certainly wouldnt capture my machines BIOS updates.
Check against your manufacturers website.
I already did … and it clearly shows a BIOS from 2018.

Now I understand, but I have to go through the headache of updating the BIOS

Tbf their docs dont say much or show the earlier versions … this latest one only says they fixed 2 vulnerabilities … so it may not have any real impact for you. but it might.

Both issues were fixed by updating uninstalling all nVidia packages and installing the new nVidia drivier (v 495)
Also, in hybrid mode you have to run DR prime-run:

prime-run /opt/resolve/bin/resolve

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.