-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Linux & X11) Extremely slow windows when laptop display is disabled. #181
Comments
This seems like it's related to OpenGL performance. Disabling my window compositor (picom) causes the UI to become responsive again, but some OpenGL contexts (glxgears) remain slow, still exactly 1.000 FPS. |
I can confirm this problem on Fedora 31. |
I had this problem with a fresh install of Fedora 30. @mfdgroot I noticed your comment and check my packages. I am running an earlier version of gnome-session (3.32.0-1) so that could not be the problem. We were running the same version of xorg-x11-server though. So I decided to run I don't know in which package the problem lies but I am happy I can close my lid now. |
I can confirm this on Arch Linux (bad latency (1s sounds about right) as well as the effective workaround of enabling the laptop display). This has been working before so I suspect @rprihoda on the right track. I haven't confirmed myself though. |
I can now confirm too that downgrading xserver helps. To be precise, I downgraded xorg-server and xorg-serer-common to 1.20.5 from Arch Rollback Machine (https://archive.archlinux.org/packages/x/xorg-server/ and https://archive.archlinux.org/packages/x/xorg-server-common/ Here's the 1.20.6 release announcement: https://lists.x.org/archives/xorg-announce/2019-November/003032.html in case anyone has a clue. |
I suspect it relates to the newly added "GLX vendor selection support". Looking at the relevant code, it seems the GLX vendor can now be set per-screen, and I guess we now have a different vendor if only the DisplayLink screen is active (compared to both DisplayLink and laptop screen). I don't know how to further debug this, though, or how to verify the GLX vendor. glxinfo gives the same in both scenarios:
|
@kugel- Thanks for confirming. The problem should indeed be somewhere in that changelog. I doubt that it has to do with the vendor. I bet my money on the modesetting changes that involve the master and slave screen. Sadly I also don't have the technical skills to actually fix this. |
can confirm the issue on latest displaylink and evdi on arch/manjaro on kernel 5.4 |
xserver 1.20.8 is released, did anyone check if it's still problematic? My dock setup is at work, not going there due to Corona virus atm. |
thankfully I have finally found a thread that describes exactly my problem. i'm currently running arch with the following setup, and I can confirm those annoying delays (a couple of seconds delay between switching windows/applications): laptop: dell xps13 arch linux:
drivers installed (not sure if both are necessary, but installed them at some point because i needed them):
Current config in /etc/X11/xorg.conf.d/20-displaylink.conf
The switching between applications is very very slow, and takes a couple of seconds. Usually this was pretty swift, just a couple of miliseconds, nothing worth mentioning. Any ideas what could be causing this slowness/delays? I'd appreciate any advice on how to debug this......it's driving me insane. Maybe this also helps:
|
Any news on this? |
Seeing the same thing on fedora 31, with latest evdi. |
Yup, Ubuntu 20.04 here, just the standard kernel, xorg, wayland. DisplayLink is the latest version from the website, 5.3.1.34, so whichever version of EVDI comes with that ( I had this issue on upgrading the DisplayLink driver once I upgraded to 20.04 where it was unusable under Xorg because of the reported latency/lag/low FR as I too have two displays and close my laptop lid as my usual usage. However, Xorg was my default because in a previous Ubuntu upgrade Wayland wasn't usable for me (I have Intel/Nvidia PRIME laptop but mainly just use the iGPU these days) but enabling Wayland again under 20.04 and using that has given me a passably usable desktop (still with occasional stuttering with the laptop display closed but only for fractions of a second). |
same problem here: |
Same problem here Ubuntu 20.04 |
It didn't work here. Please, one solution. Thanks! |
Please take a look at In short, we have raised the issue in Xserver issue tracker https://gitlab.freedesktop.org/xorg/xserver/-/issues/1028 |
Big thanks for providing the patched Xserver package! I'll test it and give feedback later this week when I have access to my docking station again. |
This issue exists even on ubuntu 18.04 , @displaylink-dkurek can you please provide the |
Came here for the exact same thing. Also in 18.04 without a compatible fix |
@elcuervo JakubDabrowski from customer support team released the package for displaylink. I have requested him to release a ptach for 18.04 here https://www.displaylink.org/forum/member.php?u=20834 |
I'm on 20.04 (preinstalled) on an XPS 13 through a d3100 and I'm having this exact issue. So I should be the perfect test dummy here because I'm running a dell linux laptop on a dell docking station. This is me offering to be a guinea pig. NOTE: enabling my laptop display COMPLETELY fixes the problem, which is really weird. My laptop display doesn't even have to be the primary monitor. |
I can confirm that the X.org xserver patch released by Displaylink as a workaround for this issue works pretty well. Here is the link to download it: https://www.displaylink.org/forum/showthread.php?t=67148. Don't forget to reboot your machine after apply it. I'm using KDE Neon 5.19 based on Ubuntu 20.04. I got this problem yesterday when I upgraded from Ubuntu 18.04 to 20.04. Tks Displaylink. |
There are quite old issue and MR on xorg regarding this: |
Debian 11 same issue. |
Same with ubuntu 21.04 |
Same with archlinux |
Same with 21.04, Dell Precision 7530 (no DisplayLink) just close laptop lid and use just external monitors, system becomes slow & unusable. Open laptop lid works normally right away |
Instead of desactivating the built in monitor what I did is mirror my laptop desktop to monitor on the left with
and extende the build in monitor to my right monitor with
to know your monitors type: hope it helps for the ones like me that didn't get the problem solve by downgrading just make sure your laptop dont sleep when closing the lid and your are done. |
Same on ubuntu 21.10 |
After countless hours and different workarounds I switched to Wayland instead. The problem was gone, much smoother and pleasant experience so far. Finally able to dock my machine. |
@faysalnadim what distro/ version/ kernel are you running and is there a link for correct way to install/ switch to Wayland? Thanks |
Select wayland upon login, desktop freezes. Ubuntu 21.10
|
After remove ou shutdown the system, the screen freeze. |
@Leigh-M I apologies for not getting back on the previous comment. I don't know if this is still relevant to you but I was on Ubuntu 20.04 LTS/XPS 13 9380. I just enabled Wayland from the configs. Display Manager had become so resource hungry and it was causing issues for me. Just switched to Pop OS and so far the experience has been great. |
Were you able to fix it? |
I solved the problem activating X.Org X server and stop freezing the screen. |
Is there actually a workaround /fix now? |
@basprins is your display showing low fresh while placing your laptop on dock? If yes, then one solution is to switch to Wayland. |
Same problem here |
if you're on arch you want to install |
Thanks @tuxutku that fixed my issue as well. |
I have this issue on a Ubuntu 22.04 laptop with a RTX 3060 and an AMD 6800H with the following xorg-server-core: I have worked around this issue with the following commands, preventing my laptop display from turning off when the lid is closed:
|
When I turn my laptop display off, my displaylink monitors become extremely slow.
Monitors work fine and have no obvious performance issues when connected to my laptop. However, attempting to disable the laptop display (regardless of whether or not the lid is closed -- closing the lid doesn't cause any problems as long as the display has a mode in xrandr), results in extremely slow changes to windows. The cursor seems to move only a little bit slower than before, but windows repaint extremely slowly (measured exactly 1.000 FPS using glxgears).
I'd really like to just plug my laptop in at work and close the lid, making my first DisplayLink monitor primary, and I don't want to have to buy a Thunderbolt dock if I don't have to.
Software and System
Lenovo ThinkPad T440s w/ Lenovo Hybrid USB-C Dock. Arch Linux.
Steps to reproduce:
arandr
)xrandr --output eDP-1 --off
The text was updated successfully, but these errors were encountered: