You are not logged in.

#26 2023-01-04 09:16:10

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

Btw, thanks for helping me!
It is fun learning and working with you smile

Those are the glxgear output with compositor disabled/killed:

glxgears                    
10854 frames in 5.0 seconds = 2170.730 FPS
10959 frames in 5.0 seconds = 2191.755 FPS
10952 frames in 5.0 seconds = 2189.368 FPS
9234 frames in 5.0 seconds = 1846.583 FPS
X connection to :0 broken (explicit kill or server shutdown).

prime-run glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
974 frames in 5.7 seconds = 169.469 FPS
5 frames in 5.0 seconds =  1.000 FPS
6 frames in 6.0 seconds =  1.001 FPS
X connection to :0 broken (explicit kill or server shutdown).

export __GL_SYNC_TO_VBLANK=0
prime-run glxgears          
13154 frames in 5.0 seconds = 2630.751 FPS
10892 frames in 5.0 seconds = 2178.345 FPS
11768 frames in 5.0 seconds = 2353.595 FPS
X connection to :0 broken (explicit kill or server shutdown).

intel only is a lot faster without compositor.
prime-run is still crippled
export + prime-run is a low faster without compositor.

Last edited by Utini (2023-01-04 09:23:00)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#27 2023-01-05 06:56:18

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

I also can't figure out why Firefox is now crippled without DRI_PRIME=1

Firefox --refresh didn't help
Creating a new empty profile didn't help
Running firefox --safe-mode fixes the issue though.

It seems firefox --safe-mode disables:
- HW acceleration
- WEB GL

I tried doing that manually but whenever I run without --safe-mode then firefox is again crippled.

Some console outputs:

firefox in safe mode:

ATTENTION: default value of option mesa_glthread overridden by environment.
[2023-01-05T07:02:47Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update
[2023-01-05T07:03:58Z ERROR viaduct::backend::ffi] Missing HTTP status
[2023-01-05T07:03:58Z ERROR viaduct::backend::ffi] Missing HTTP status

firefox without safe mode (on an refreshed profile without extensions and so on):

TTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[2023-01-05T07:05:03Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update
[2023-01-05T07:05:07Z ERROR viaduct::backend::ffi] Missing HTTP status
[2023-01-05T07:05:07Z ERROR viaduct::backend::ffi] Missing HTTP status

prime-run firefox (which also has no issues):

[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
[GFX1-]: Failed to create EGLSurface!: 0x3009
[GFX1-]: Failed to create EGLSurface. 1 renderers, 0 active.
[GFX1-]: Handling webrender error 3
[GFX1-]: Fallback WR to SW-WR
[2023-01-05T07:11:29Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update

Last edited by Utini (2023-01-05 07:12:03)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#28 2023-01-05 10:33:25

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

Okay, I seem to have fixed firefox but I am not sure why this fix is working.

Settings -> Performance -> Use recommended performance setting (disable) -> Use hardware acceleration when available (disable)

If both are disabled, firefox is back to normal and the error "ATTENTION: default value of option mesa_glthread overridden by environment." is only outputted once in the terminal (instead of 4 times) when starting firefox.

Interestingly, the following options are still enabled in about:config:
media.ffmped.vaapi.enabled
And about:support still shows "WebRender (Software)" as "Compositing

So now I am back to my previous problem with slow external displays.
I just thought this firefox issue might help finding the cause of the original problem.


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#29 2023-01-05 15:12:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,406

Re: Slow external display performance when laptop display disabled

Because you're now using software GL w/ FF.
There's especially no vsync in software GL - this isn't really a fix.

Make sure to export "export __GL_SYNC_TO_VBLANK=0" to the session.
As for intel being slow w/ the compositor enabled, look at the compositor settings - kwin does not seem to sync (glxgears run in #25) but things like the blur effect or color correction might be too much for the IGP to provide > 120fps

Offline

#30 2023-01-06 17:16:08

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

I found another option regarding vsync to disable it. I use both for now:

export __GL_SYNC_TO_VBLANK=0
export vblank_mode=0

But isn't is weird that my iGPU gets higher frame rates with glxgears than my NVIDIA GPU?

glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
50536 frames in 5.0 seconds = 10107.042 FPS
50803 frames in 5.0 seconds = 10160.447 FPS
50885 frames in 5.0 seconds = 10176.957 FPS
50599 frames in 5.0 seconds = 10119.774 FPS
50339 frames in 5.0 seconds = 10067.562 FPS
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0"
      after 261448 requests (237795 known processed) with 0 events remaining.

prime-run glxgears
41692 frames in 5.0 seconds = 8338.323 FPS
41353 frames in 5.0 seconds = 8270.566 FPS
41715 frames in 5.0 seconds = 8342.864 FPS
42399 frames in 5.0 seconds = 8479.672 FPS
X connection to :0 broken (explicit kill or server shutdown).

I didn't have many options activated in the compositor / windows effects.
I have now disabled pretty much everything (but that was jut 2-3 options more) and will give it a try when I am back in the office (don't have so many screens at home to test tongue).

Something I notice one my internal (laptop display) though:
When moving windows, I get tearings. As in the text of those windows looking weird.

Last edited by Utini (2023-01-06 17:25:18)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#31 2023-01-06 17:48:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,406

Re: Slow external display performance when laptop display disabled

But isn't is weird that my iGPU gets higher frame rates with glxgears than my NVIDIA GPU?

No. glxgears isn't a beenchmark. It's not very challenging to any graphics hardware and copying over the buffer from the nvidia to the intel chip becomes the limiting factor.

I get tearings. As in the text of those windows looking weird.

"tearing" describes an artifact where parts of two different frames are passed to the output - it's the default unless you take couter measures like syncing the buffer updates to the outputs vblank signal (vsync…)
It doesn't however make the "text look weird" - do you have a screenshot or photo of that effect?

Offline

#32 2023-01-06 22:22:24

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

seth wrote:

But isn't is weird that my iGPU gets higher frame rates with glxgears than my NVIDIA GPU?

No. glxgears isn't a beenchmark. It's not very challenging to any graphics hardware and copying over the buffer from the nvidia to the intel chip becomes the limiting factor.

I get tearings. As in the text of those windows looking weird.

"tearing" describes an artifact where parts of two different frames are passed to the output - it's the default unless you take couter measures like syncing the buffer updates to the outputs vblank signal (vsync…)
It doesn't however make the "text look weird" - do you have a screenshot or photo of that effect?

With weird looking text I meant tearing. Basically the text line will look "weird" or ripped. Could only show it by doing a video of it.

I could try enabling vsync when not connected to external displays and disable vsync when connecting a display. But first I need to test if that will even fix the solution. I kinda doubt it and I also doubt that the HD630 is too weak to drive 2x FHD display. But I will test it on monday smile


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#33 2023-01-09 06:32:17

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

Okay, I did some testing and got even more problems. But lets start step by step.

KWIN has an option under "Desktop Effects" to Show FPS on the desktop. I enabled this, vsync disabled, compositor enabled:

1x external display: 120-180fps
2x external display: 40-60 fps
2x external display + internal display: 20-30 fps
Only internal display: 60fps

Since I can't believe that the iGPU is too weak to drive 2 external displays I rebooted into dual-boot Windows 10 to check the performance there.
While I didn't check for the fps, I noticed that everything was very very fluid with all 3 displays enabled.
I noticed how ever, that the nvidia-optimus logo was active and saw that it said "2 applications running on NVIDIA GPU".
The 2 applications were the both external displays.

So it seems that on windows, both external displays will be powered by the nvidia GPU.
Maybe this has to be the same for Arch to get good performance?
@edit: I found this but that doesn't work for me:
https://bbs.archlinux.org/viewtopic.php?id=274210
I have "nvidia-drm.modeset=1" already set.

pacman -Qs nvidia:

 
local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/lib32-nvidia-utils 525.60.11-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 525.60.11-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 525.60.11-2
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 525.60.11-1
    NVIDIA drivers - module sources
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 525.60.11-2
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 525.60.11-1
    NVIDIA drivers utilities
local/opencl-nvidia 525.60.11-1
    OpenCL implemention for NVIDIA

lspci -k:

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: skl_uncore
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
        Subsystem: Lenovo Device 2267
        Kernel driver in use: i915
        Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device_pci_legacy
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        Subsystem: Lenovo Device 2267
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
        Subsystem: Lenovo Device 2267
00:14.3 Network controller: Intel Corporation Cannon Lake PCH CNVi WiFi (rev 10)
        Subsystem: Intel Corporation Device 0030
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #17 (rev f0)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
00:1b.4 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #21 (rev f0)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:1f.0 ISA bridge: Intel Corporation Cannon Lake LPC Controller (rev 10)
        Subsystem: Lenovo Device 2267
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_cnl
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: intel-spi
        Kernel modules: spi_intel_pci
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-LM (rev 10)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: e1000e
        Kernel modules: e1000e
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
02:00.0 Non-Volatile memory controller: Intel Corporation SSD Pro 7600p/760p/E 6100p Series (rev 03)
        Subsystem: Intel Corporation SSD Pro 7600p/760p/E 6100p Series [NVM Express]
        Kernel driver in use: nvme
        Kernel modules: nvme
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
05:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: pcieport
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: thunderbolt
        Kernel modules: thunderbolt
07:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
        Subsystem: Intel Corporation Device 0000
        Kernel driver in use: pcieport
08:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
        Subsystem: Intel Corporation Device 0000
        Kernel driver in use: pcieport
09:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] (rev 06)
        Subsystem: Intel Corporation Device 0000
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
3a:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
        Subsystem: Lenovo Device 2267
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
71:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
        Subsystem: Samsung Electronics Co Ltd SSD 970 EVO Plus
        Kernel driver in use: nvme
        Kernel modules: nvme

xrandr --setprovideroutputsource NVIDIA-G0 modesetting
xrandr --auto
xrandr --listproviders

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

Additionally I had the following problems (not sure if this related and helps resolving the main issue):
I rebooted from Windows back to Arch.
The FPS display was still active.
Before I could even disable it, the whole system froze.
I had to force power off on my laptop and rebooted.
Now all KDE desktop settings were gone (no task bar, no widgets, no backround, no anything).
One of the external displays (the main one) was basically just black but I could saw my cursor moving on it.
Spawning a windows on it would only create half of the windows (e.g. only the borders or the window without border) and freeze the whole system again.
This would happen over and over and over.
So I had to disconnect all displays, boot on the internal display only, re-connect my displays and now it seems to be stable again.
All desktop settings are still gone though. So I have to re-configure wallpaper, taskbar, etc.

Online I read about a KDE bug where an external display would sometimes turn up completely black and becomes unconfigurable.
The fix is supposed to be "kquitapp5 plasmashell && kstart5 plasmashell".
In the past few days this really helped, and I did it today too but my taskbars where still resetted.
However, my wallpaper settings were atleast back.

This is the output of the above command, with several errors:

kquitapp5 plasmashell && kstart5 plasmashell
Both external displays connected:

ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
kf.plasma.quick: Applet preload policy set to 1
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:556:5: QML Label: Binding loop detected for property "height"
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:556:5: QML Label: Binding loop detected for property "height"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/ThumbnailStrip.qml"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationHeader.qml"
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:99: TypeError: Cannot read property 'pluginName' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:78: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:81: TypeError: Cannot read property 'pluginName' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:83: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:84: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:85: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:86: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:87: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:19: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:20: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:21: TypeError: Cannot read property 'configuration' of null
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/MonthView.qml:381: TypeError: Cannot read property 'cellHeight' of null
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
sneida@S2000: Could not find the Plasmoid for Plasma::FrameSvgItem(0x3fb0f481d10) QQmlContext(0x3fb0c200c00) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
Could not find the Plasmoid for Plasma::FrameSvgItem(0x3fb0f481d10) QQmlContext(0x3fb0c200c00) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:222:21: QML SelectableLabel: Binding loop detected for property "implicitWidth"
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:222:21: QML SelectableLabel: Binding loop detected for property "implicitWidth"
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:222:21: QML SelectableLabel: Binding loop detected for property "implicitHeight"
Could not find the Plasmoid for Plasma::FrameSvgItem(0x3fb0f5e8d40) QQmlContext(0x3fb0c200c00) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
Could not find the Plasmoid for Plasma::FrameSvgItem(0x3fb0f5e8d40) QQmlContext(0x3fb0c200c00) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:222:21: QML SelectableLabel: Binding loop detected for property "implicitWidth"
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:222:21: QML SelectableLabel: Binding loop detected for property "implicitWidth"
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:222:21: QML SelectableLabel: Binding loop detected for property "implicitHeight"

kquitapp5 plasmashell && kstart5 plasmashell
Only internal display active (external displays disconnected):

ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
kf.plasma.quick: Applet preload policy set to 1
qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.

Last edited by Utini (2023-01-09 09:24:33)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#34 2023-01-09 08:10:43

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

I seem to have two configuration files for xorg:

/etc/xorg.conf:

Section "Device"
       Identifier  "Card1"
       Driver      "modesetting"
       BusID       "PCI:0:2:0"
EndSection


Section "ServerFlags"
    Option "DontZap"      "True"
EndSection

Section "ServerFlags"
    Option "DontVTSwitch" "True"
EndSection

/etc/X11/xorg.conf:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Inactive "nvidia"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "NVreg_DynamicPowerManagement=0x02"
    Option "Coolbits" "1"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

I guess I can (and should?) delete /etc/xorg.conf?


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#35 2023-01-09 09:11:38

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

And here are some journalctl from crashes that just happend.
The first log was made after a crash.
I rebooted arch and all my KDE desktop settings were resetted again.
One display (secondary screen) had a taskbar.
Main display didn't have one.
As soon as I spawned a window on the main display - crash.

journalctl -b -1
Link: https://pastebin.com/Wivx59Ze

journalctl --since=today
Link: https://files.bestmail.ws/Arch/crash2.log

@edit:
This system is getting unusable with 2 screens now. It's basically freezing/crashing every 10 mins randomly :S

This is all with compositor disabled/killed.

@edit2: Three hours later, with compositor enabled, it seems more stable now (no freeze/crash). But ofcourse laggy as hell.
@edit3: Or not, here is another crash with compositor enabled this time: https://pastebin.com/APrLDKtr
Basically this happens everytime I boot with both external displays connected and then open a new windows (konsole,dolphin, whatever).
If I boot without them connected, and then connect them after booting, everything is fine.
@edit4: Another freeze/crash. It seems like KDE is freezing but everything else works because I was still able to write in my active RDP Session lol
Link: https://pastebin.com/kwxC9M46

Not sure if this is relevant. I have:

/etc/udev/rules.d/80-nvidia-pm.rules

# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"

# Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"

as well as
/etc/modprobe.d/nvidia-pm.conf

options nvidia "NVreg_DynamicPowerManagement=0x02"

Last edited by Utini (2023-01-09 14:16:16)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#36 2023-01-09 15:19:15

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

nvidia-smi shows that some sort of xorg is running on the dgpu though?

nvidia-smi
Mon Jan  9 16:17:58 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01    Driver Version: 525.78.01    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
| N/A   49C    P0    N/A /  N/A |     85MiB /  4096MiB |      3%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1141      G   /usr/lib/Xorg                      83MiB |
+-----------------------------------------------------------------------------+

Last edited by Utini (2023-01-09 15:20:57)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#37 2023-01-10 05:55:04

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

Is there a way to verify reverse-prime is working? The wiki doesn't have an entry to verify that.

Becuase then I could connect a display directly via HDMI (instead of using the USB C dock) to verify if that changes anything?


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#38 2023-01-10 10:50:01

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

Re: Slow external display performance when laptop display disabled

As per the post I linked in #16 (... and e.g.: https://bbs.archlinux.org/viewtopic.php?id=282161 ) have you already tried downgrading the nvidia driver to a 520 variant? AFAIK this is a known regression in 525 in this constellation

As for verification, the xorg log should show the settings that are applied, generally "some sort of Xorg process" is normal and expected

Last edited by V1del (2023-01-10 10:51:37)

Online

#39 2023-01-10 11:59:44

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

Hi V1del, thanks for the hint but it didn't help.
I am now on "520.56.06" and still have the issue (I downgraded nvidia-dkms, nvidia-utils).

Some additional infos I figured out:
nvidia settings shows the displays connected to the dgpu
See those 3 screenshots: https://imgur.com/a/CF37Ivo

nvidia-smi shows some GPU utilization (and even xorg is listed there)

Tue Jan 10 12:48:58 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.56.06    Driver Version: 520.56.06    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
| N/A   47C    P3    N/A /  N/A |     85MiB /  4096MiB |      4%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1127      G   /usr/lib/Xorg                      83MiB |
+-----------------------------------------------------------------------------+

Sometimes my system freezes when connecting/disconnecting external displays
See pictures: https://imgur.com/a/qsar0ZJ
Also this is a log/output that happend during the freeze:

qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
org.kde.plasma.libtaskmanager: Failed to determine whether virtual desktop navigation wrapping is enabled:  "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:99: TypeError: Cannot read property 'pluginName' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:78: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:81: TypeError: Cannot read property 'pluginName' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:83: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:84: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:85: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:86: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:87: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:19: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:20: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:21: TypeError: Cannot read property 'configuration' of null
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:556:5: QML Label: Binding loop detected for property "height"
org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/MonthView.qml:381: TypeError: Cannot read property 'cellHeight' of null
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"

sneida@S2000: htop
sneida@S2000: Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:556:5: QML Label: Binding loop detected for property "height"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/ThumbnailStrip.qml"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationHeader.qml"
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/InfiniteList.qml:43:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/qt/qml/org/kde/plasma/workspace/calendar/MonthView.qml:381: TypeError: Cannot read property 'cellHeight' of null
file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
trying to show an empty dialog
trying to show an empty dialog
kf.xmlgui: Shortcut for action  "" "Show Quick Commands" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action  "" "Show SSH Manager" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: known incorrect sRGB profile
libpng warning: profile matches sRGB but writing iCCP instead
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: known incorrect sRGB profile
libpng warning: profile matches sRGB but writing iCCP instead

(nvidia-settings:2600): GLib-GObject-CRITICAL **: 10:49:27.235: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
kf.kio.filewidgets.kfilefiltercombo: Could not find filter "image/png"
kf.kio.filewidgets.kfilefiltercombo: Could not find filter "*.png|PNG image "
kf.kio.widgets.kdirmodel: No node found for item that was just removed: QUrl("file:///home/sneida/Downloads/'When It All Falls Down' from the Audiomachine release MAGNUS-5vec-01WKFo.mp3")
kf.coreaddons: Expected a KPluginFactory, got a KIOPluginForMetaData
file:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width"
file:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width"
QFSFileEngine::open: No file name specified
kf.coreaddons.desktopparser: Error: Failed to open  ""
QFileDevice::seek: IODevice is not open
QFSFileEngine::open: No file name specified
kf.coreaddons.desktopparser: Error: Failed to open  ""
QFileDevice::seek: IODevice is not open
QFSFileEngine::open: No file name specified
kf.coreaddons.desktopparser: Error: Failed to open  ""
QFileDevice::seek: IODevice is not open
QFSFileEngine::open: No file name specified
kf.coreaddons.desktopparser: Error: Failed to open  ""
QFileDevice::seek: IODevice is not open
QFSFileEngine::open: No file name specified
kf.coreaddons.desktopparser: Error: Failed to open  ""
QFileDevice::seek: IODevice is not open
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:///usr/lib/qt/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
qml: The item SubCategoryPage_QMLTYPE_107(0x2c6fe933c10) is already in the PageRow
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:99: TypeError: Cannot read property 'pluginName' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:78: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:81: TypeError: Cannot read property 'pluginName' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:83: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:84: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:85: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:86: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:87: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:19: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:20: TypeError: Cannot read property 'configuration' of null
file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:21: TypeError: Cannot read property 'configuration' of null

I have 2x xorg.conf, should I delete /etc/xorg.conf?
/etc/X11/xorg.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Inactive "nvidia"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "NVreg_DynamicPowerManagement=0x02"
    Option "Coolbits" "1"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "DRI" "3"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

/etc/xorg.conf

Section "Device"
       Identifier  "Card1"
       Driver      "modesetting"
       BusID       "PCI:0:2:0"
EndSection


Section "ServerFlags"
    Option "DontZap"      "True"
EndSection

Section "ServerFlags"
    Option "DontVTSwitch" "True"
EndSection

GRUB parameters

i915.fastboot=1 i915.enable_psr=0 i915.enable_fbc=0 disable_power_well=0 nmi_watchdog=0 psmouse.synaptics_intertouch=1 semaphores=1 enable_rc6=1 rd.luks.options=discard intel_iommu=on,igfx_off iommu=pt kvm.ignore_msrs=1 apparmor=1 lsm=lockdown,yama,apparmor nvidia_drm.modeset=1"

mkinitcpio modules

MODULES=(ext4 i915 atkbd vhost-net nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Some dkms/modinfo outputs

dkms status
acpi_call/1.2.2, 6.0.17-hardened1-1-hardened, x86_64: installed (WARNING! Diff between built and installed module!)
nvidia/525.78.01, 6.0.17-hardened1-1-hardened, x86_64: installed
sudo modprobe nvidia
no output
sudo modprobe nvidia-dkms
modprobe: FATAL: Module nvidia-dkms not found in directory /lib/modules/6.0.17-hardened1-1-hardened

modinfo nvidia

filename:       /lib/modules/6.0.17-hardened1-1-hardened/updates/dkms/nvidia.ko.zst
firmware:       nvidia/525.78.01/gsp_tu10x.bin
firmware:       nvidia/525.78.01/gsp_ad10x.bin
alias:          char-major-195-*
version:        525.78.01
supported:      external
license:        NVIDIA
srcversion:     668C228F3EA38017CDD1E7A
alias:          pci:v000010DEd*sv*sd*bc06sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
retpoline:      Y
name:           nvidia
vermagic:       6.0.17-hardened1-1-hardened SMP preempt mod_unload modversions RANDSTRUCT_33312ae977176e54b65d3fcb94b6df732ff5f982de987b7dda3201d239fbb7e4
sig_id:         PKCS#7
signer:         DKMS module signing key
sig_key:        31:A8:B1:F7:3F:31:76:7B:6E:98:B8:58:A0:F5:B2:D6:7B:B1:ED:EC
sig_hashalgo:   sha512
signature:      A8:DF:05:9A:B1:05:FD:BF:B0:C9:12:4A:0A:0D:95:EF:3B:40:0A:DC:
                7C:DB:B1:6E:D6:2F:B5:7A:A2:69:98:C4:11:18:2C:F9:7C:90:2E:3E:
                BF:DE:E7:D4:7D:BC:36:71:93:6E:37:3A:6B:90:62:43:C7:F2:AD:84:
                26:34:8E:3C:DD:04:CD:BC:57:13:42:ED:FC:70:97:94:C4:35:CC:2A:
                4B:06:44:0D:19:F5:03:DB:21:78:77:EA:D0:F2:9B:59:9F:76:BE:E5:
                34:E1:DB:D4:3B:13:90:3C:CB:56:8E:B0:C7:6E:D9:00:E9:0E:2A:3B:
                81:9B:93:8E:8D:13:C8:62:5B:0C:BF:E6:4A:90:7E:DD:1D:D0:1D:4B:
                13:C8:0F:76:63:71:E9:75:0F:2D:29:C8:11:66:5A:83:5A:BF:BF:49:
                B4:F4:64:A9:BF:20:03:94:4F:EE:EC:36:E7:1A:B4:9A:19:8B:43:75:
                81:C1:F7:13:0F:DF:0E:98:AA:81:18:B3:8D:55:5A:50:54:4C:56:D7:
                B2:71:A5:4E:36:A1:7C:9F:21:0A:B7:87:25:3A:27:B3:80:52:F1:D1:
                6F:57:5C:DD:6E:10:D1:F5:E9:0B:54:2E:44:79:63:B6:42:46:D0:DB:
                B3:E3:E1:17:73:96:CA:7B:DD:ED:A1:A7:32:E3:31:58
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_EnableS0ixPowerManagement:int
parm:           NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm:           NVreg_EnableGpuFirmware:int
parm:           NVreg_EnableGpuFirmwareLogs:int
parm:           NVreg_OpenRmEnableUnsupportedGpus:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_EnablePCIERelaxedOrderingMode:int
parm:           NVreg_RegisterPCIDriver:int
parm:           NVreg_EnableDbgBreakpoint:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_ExcludedGpus:charp
parm:           NVreg_DmaRemapPeerMmio:int
parm:           rm_firmware_active:charp

Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#40 2023-01-10 12:09:44

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

It is fixed... thanks to a "Commander" on the Archlinux Discord server.
This was missing in my configuration: https://us.download.nvidia.com/XFree86/ … ndr14.html

How ever, this means that xorg will now still run on the dGPU if no external display is connected.
Meaning my dGPU will never go into battery saving mode on my laptop?

Should I now remove any of the previous steps that I took during this troubleshooting?
E.g.
Upgrade nvidia to latest version
Remove KWIN_X11_NO_SYNC_TO_VBLANK=1
Remove export __GL_SYNC_TO_VBLANK=0
Remove .drirc

Last edited by Utini (2023-01-10 12:15:06)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#41 2023-01-10 13:15:35

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

Re: Slow external display performance when laptop display disabled

Yes, if I'm interpreting this correctly you are now simply using the old method and thus the nvidia gpu does everything and the intel GPU is just a dumb pipe not doing much actual work.

This should become apparent if you check nvidia-smi now as everything that use graphics should default to the nvidia GPU and you're likely to see kwin and plasma on there as well as Xorg.

you can try and check behaviour by reverting your steps so far yes. FWIW regarding your duplicated xorg.conf question, on a normal setup /etc/xorg.conf will simply never be read so the file is likely to not do anything.

Last edited by V1del (2023-01-10 13:19:22)

Online

#42 2023-01-10 13:36:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,406

Re: Slow external display performance when laptop display disabled

1x external display: 120-180fps
2x external display: 40-60 fps
2x external display + internal display: 20-30 fps
Only internal display: 60fps

seth wrote:

As for intel being slow w/ the compositor enabled, look at the compositor settings - kwin does not seem to sync (glxgears run in #25) but things like the blur effect or color correction might be too much for the IGP to provide > 120fps

Though the above along

Clone setup: Now I know what you mean, I tried that already but it didn't work. I now used your three commands to create a clone setup again. How ever, the performance is still as bad.

suggests there're some syncing issues (so that't not be effectively disabled), maybe the kwin MaxFPS being capped.

qdbus org.kde.KWin /KWin supportInformation

I rebooted into dual-boot Windows 10 to check the performance there.

3rd link below. Click it. Mandatory.

I noticed however, that the nvidia-optimus logo was active and saw that it said "2 applications running on NVIDIA GPU".
The 2 applications were the both external displays.

This is necessary when/if the external outputs are attached there and the reason why Xorg shows up in nvidia-smi.

Offline

#43 2023-01-10 13:59:01

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

seth wrote:

I rebooted into dual-boot Windows 10 to check the performance there.

3rd link below. Click it. Mandatory.

Huh, which 3rd link below do you mean?
@edit: oh you mean disable fast startup and hibernation.
I did that already previously. Thanks! smile

With dGPU as main GPU (as mentioned in #40)
qdbus org.kde.KWin /KWin supportInformation

KWin Support Information:
The following information should be used when requesting support on e.g. https://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like https://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.26.5
Qt Version: 5.15.8
Qt compile version: 5.15.8
XCB compile version: 1.15

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101006
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
onAllDesktopsAvailable: false
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 2
gridUnit: 10
font: Segoe UI,10,-1,5,50,0,0,0,0,0,Standard
smallSpacing: 2
largeSpacing: 10

Platform
==========
Name: KWin::X11StandalonePlatform

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: 0
xwaylandCrashPolicy: 
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: true
placement: 
activationDesktopPolicy: 0
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: false
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 28
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 28
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777250
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: true
hiddenPreviews: 2
glSmoothScale: 1
glStrictBinding: false
glStrictBindingFollowsDriver: true
glPreferBufferSwap: 99
glPlatformInterface: 1
windowsBlockCompositing: true
latencyPolicy: 
renderTimeEstimator: 

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Active screen follows mouse:  yes
Number of Screens: 2

Screen 0:
---------
Name: DP-0
Enabled: 1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 74972
Adaptive Sync: incapable
Screen 1:
---------
Name: DP-1.2
Enabled: 1
Geometry: 1919,0,1920x1080
Scale: 1
Refresh Rate: 60000
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1050 Ti with Max-Q Design/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 520.56.06
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 520.56.6
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.21.1
Linux kernel version: 6.0.17
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
colorpicker
outputlocator
blendchanges
screenshot
kwin4_effect_sessionquit
kwin4_effect_eyeonscreen
kwin4_effect_morphingpopups
kwin4_effect_dimscreen
kwin4_effect_fadingpopups
kwin4_effect_frozenapp
sheet
kwin4_effect_dialogparent
highlightwindow
overview
kscreen

Currently Active Effects:
-------------------------

Effect Settings:
----------------
colorpicker:

outputlocator:

blendchanges:

screenshot:

kwin4_effect_sessionquit:
pluginId: kwin4_effect_sessionquit
isActiveFullScreenEffect: false

kwin4_effect_eyeonscreen:
pluginId: kwin4_effect_eyeonscreen
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
pluginId: kwin4_effect_morphingpopups
isActiveFullScreenEffect: false

kwin4_effect_dimscreen:
pluginId: kwin4_effect_dimscreen
isActiveFullScreenEffect: false

kwin4_effect_fadingpopups:
pluginId: kwin4_effect_fadingpopups
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
pluginId: kwin4_effect_frozenapp
isActiveFullScreenEffect: false

sheet:
duration: 1

kwin4_effect_dialogparent:
pluginId: kwin4_effect_dialogparent
isActiveFullScreenEffect: false

highlightwindow:

overview:
activeView: 
animationDuration: 1
layout: 1
ignoreMinimized: false
blurBackground: true
partialActivationFactor: 0
gestureInProgress: false
searchText: 

kscreen:


Loaded Plugins:
---------------
kwin5_plugin_krunner
kwin5_plugin_nightcolor

Available Plugins:
------------------
kwin5_plugin_buttonrebinds
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolor
 

With simply reverse-prime but using the iGPU
qdbus org.kde.KWin /KWin supportInformation

KWin Support Information:
The following information should be used when requesting support on e.g. https://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like https://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.26.5
Qt Version: 5.15.8
Qt compile version: 5.15.8
XCB compile version: 1.15

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101006
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
onAllDesktopsAvailable: false
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 2
gridUnit: 10
font: Segoe UI,10,-1,5,50,0,0,0,0,0,Standard
smallSpacing: 2
largeSpacing: 10

Platform
==========
Name: KWin::X11StandalonePlatform

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: 0
xwaylandCrashPolicy: 
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: true
placement: 
activationDesktopPolicy: 0
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: false
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 28
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 28
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777250
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: true
hiddenPreviews: 2
glSmoothScale: 1
glStrictBinding: true
glStrictBindingFollowsDriver: true
glPreferBufferSwap: 101
glPlatformInterface: 1
windowsBlockCompositing: true
latencyPolicy: 
renderTimeEstimator: 

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Active screen follows mouse:  yes
Number of Screens: 2

Screen 0:
---------
Name: DP-1-0
Enabled: 1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60000
Adaptive Sync: incapable
Screen 1:
---------
Name: DP-1-1.2
Enabled: 1
Geometry: 1919,0,1920x1080
Scale: 1
Refresh Rate: 60000
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.2
OpenGL platform interface: GLX
OpenGL shading language version string: 4.60
Driver: Intel
GPU class: Coffee Lake
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 22.3.2
X server version: 1.21.1
Linux kernel version: 6.0.17
Direct rendering: Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
colorpicker
outputlocator
blendchanges
screenshot
kwin4_effect_sessionquit
kwin4_effect_eyeonscreen
kwin4_effect_morphingpopups
kwin4_effect_dimscreen
kwin4_effect_fadingpopups
kwin4_effect_frozenapp
sheet
kwin4_effect_dialogparent
highlightwindow
overview
kscreen

Currently Active Effects:
-------------------------

Effect Settings:
----------------
colorpicker:

outputlocator:

blendchanges:

screenshot:

kwin4_effect_sessionquit:
pluginId: kwin4_effect_sessionquit
isActiveFullScreenEffect: false

kwin4_effect_eyeonscreen:
pluginId: kwin4_effect_eyeonscreen
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
pluginId: kwin4_effect_morphingpopups
isActiveFullScreenEffect: false

kwin4_effect_dimscreen:
pluginId: kwin4_effect_dimscreen
isActiveFullScreenEffect: false

kwin4_effect_fadingpopups:
pluginId: kwin4_effect_fadingpopups
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
pluginId: kwin4_effect_frozenapp
isActiveFullScreenEffect: false

sheet:
duration: 1

kwin4_effect_dialogparent:
pluginId: kwin4_effect_dialogparent
isActiveFullScreenEffect: false

highlightwindow:

overview:
activeView: 
animationDuration: 1
layout: 1
ignoreMinimized: false
blurBackground: true
partialActivationFactor: 0
gestureInProgress: false
searchText: 

kscreen:


Loaded Plugins:
---------------
kwin5_plugin_krunner
kwin5_plugin_nightcolor

Available Plugins:
------------------
kwin5_plugin_buttonrebinds
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolor
 

The only differences according to meld:

glStrictBinding: true (iGPU), false (dGPU)
glPreferBufferSwap: 101 (iGPU), 99 (dGPU)
Direct rendering: Requires strict binding: yes (iGPU), no (dGPU)
.. the refresh rate of Name: DP-1-0 and DP-0 (both same external screen) differes as well on one screen (75Hz vs 60Hz) but that is because I changed it manually to 60Hz now.

Also there is something generally wrong when not using the dGPU as main GPU because the whole system freezes and goes to 100% CPU usage by KWIN when connecting/disconnecting the external screen.
I have to force/hardware reboot the laptop and plugin the displays after X loaded.

I tried "prime-run kwin_x11 --replace" to see if performance increases when KWIN runs via dGPU, but that crashes the system.

V1del wrote:

Yes, if I'm interpreting this correctly you are now simply using the old method and thus the nvidia gpu does everything and the intel GPU is just a dumb pipe not doing much actual work.

This should become apparent if you check nvidia-smi now as everything that use graphics should default to the nvidia GPU and you're likely to see kwin and plasma on there as well as Xorg.

you can try and check behaviour by reverting your steps so far yes. FWIW regarding your duplicated xorg.conf question, on a normal setup /etc/xorg.conf will simply never be read so the file is likely to not do anything.

I removed /etc/xorg.conf.. laptop is not burning so far smile
And yes, nvidia-smi now lists all kind of applications.
Not what I want on my laptop.
I would rather have the iGPU as main GPU and then run relevant apps via prime.
I would also be okay with restarting/running specific apps automatically via prime when an external display connects (e.g. KWIN or so) if that helps.

Last edited by Utini (2023-01-10 14:08:16)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#44 2023-01-11 14:18:21

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

I made a temporary work around although I believe I could simply use optimus-manager for that as well.

/home/user/bin/udev/dgpu-external-display.sh:

#! /usr/bin/bash
function connect(){
  mv /etc/X11/xorg.conf.d/10-gpu.conf.bak /etc/X11/xorg.conf.d/10-gpu.conf
}

function disconnect(){
  mv /etc/X11/xorg.conf.d/10-gpu.conf /etc/X11/xorg.conf.d/10-gpu.conf.bak
}

if [ $(cat /sys/class/drm/card1-DP-1/status) == "connected" ] ; then
  connect
elif [ $(cat /sys/class/drm/card1-DP-2/status) == "connected" ] ; then
  connect
elif [ $(cat /sys/class/drm/card1-DP-3/status) == "connected" ] ; then
  connect  
else 
  disconnect
  exit
fi

sudo nano /etc/systemd/system/dgpu-external-display.service

[Unit]
Description=Check if  external display is connected and enable/disable dGPU accordingly
[Service]
Type=oneshot
ExecStart=/home/user/bin/udev/dgpu-external-display.sh
[Install]
WantedBy=multi-user.target

/etc/udev/rules.d/95-hdmi-plug.rules:

ACTION=="change", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/user/.Xauthority", RUN+="/home/user/bin/udev/dgpu-external-display.sh"

/usr/share/sddm/scripts/Xsetup:

/home/user/bin/udev/dgpu-external-display.sh

This will enable/disable the dGPU as main GPU for outputs depending on if something is connected as external display or not during session and when booting the device.
I left out the HDMI Port on purpose because this is the usual port I would use when doing presentations (=I need my battery).

It sill required a login/logout which is annoying. Especially when having 4 meetings a day and constantly swap between office/meeting.

Last edited by Utini (2023-01-11 14:18:39)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#45 2023-01-13 08:39:28

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

I believe getting a new laptop with AMD+AMD GPU won't be of any help either since this uses prime as well?

The only option would be to ditch a dGPU completely and only have an iGPU?
Which is sadly not really an option for me.


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#46 2023-01-13 09:11:31

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

Re: Slow external display performance when laptop display disabled

There are laptops (... my Acer V15 somethingsomething) where the dGPU is just for accelerated application purposes and all screens are attached to the integrated GPU avoiding a large host of issues.

But I don't think you can really generalize this in that way, afaik the 1 FPS issue while using PRIME the "normal" way - while a bug - is not technically unsolvable and it isn't clear whether an amdgpu combination would have the same issues (no hands on here)

Online

#47 2023-01-13 09:55:25

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

V1del wrote:

There are laptops (... my Acer V15 somethingsomething) where the dGPU is just for accelerated application purposes and all screens are attached to the integrated GPU avoiding a large host of issues.

But I don't think you can really generalize this in that way, afaik the 1 FPS issue while using PRIME the "normal" way - while a bug - is not technically unsolvable and it isn't clear whether an amdgpu combination would have the same issues (no hands on here)

Ah ye right, there are systems where the connection between those two GPUs is different (e.g. muxless(?)).

I believe I do not suffer from the "1 FPS" issue? I get 30-40fps (according to KWIN widget).


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#48 2023-01-13 09:58:55

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

Re: Slow external display performance when laptop display disabled

Ah whoops missed that, just generally slowish? FWIW because looking at the post again, are you able to reproduce this on a normal non hardened kernel and without most of these i915/iommu parameters?

Online

#49 2023-01-13 13:12:55

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

V1del wrote:

Ah whoops missed that, just generally slowish? FWIW because looking at the post again, are you able to reproduce this on a normal non hardened kernel and without most of these i915/iommu parameters?

While researching this problem I saw that you recommended this a few months ago to someone on reddit as well ;-)

So I did that and installed linux and linux-headers
NVIDIA is still the same "old 520" package.

GRUB Kernel Parameters:

cryptdevice=/dev/nvme1n1p3:luks:allow-discards rd.luks.options=discard nvidia_drm.modeset=1 nmi_watchdog=0 psmouse.synaptics_intertouch=1

glxgears:

glxgears  
872 frames in 5.0 seconds = 173.842 FPS
935 frames in 5.0 seconds = 185.448 FPS

prime-run glxgears
1880 frames in 5.0 seconds = 374.184 FPS
2173 frames in 5.0 seconds = 434.403 FPS

I am still having the same issue:
Slowish, laggy desktop as soon as KWIN is enabled.
If I kill KWIN compositor, then everything is fine.
Small video demonstrating (recorded with 60fps on my Pixel 6 Pro): https://files.bestmail.ws/nvidialag.mp4
Additionally KWIN again froze the whole system and used 100% CPU when creating a first GUI-Windows because I booted with external displays connected.

Also:
I have both installed "intel-media-driver" and "libva-intel-driver" but I guess I only need one for HW Acceleration on my i7-8850H? Which one? :S

Last edited by Utini (2023-01-13 13:46:01)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#50 2023-01-14 14:15:10

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Slow external display performance when laptop display disabled

Additionally I just did some power measurements with powerstat.

With dGPU as main GPU: 10,8W idle drain
With iGPU as main GPU: 10,8W idle drain

Why even bother using hybrid mode lol?

dGPU as main GPU means: /etc/X11/xorg.conf.d/10-gpu.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

Board footer

Powered by FluxBB