-
-
Notifications
You must be signed in to change notification settings - Fork 912
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
DisplayLink monitors not working in hyprland #2752
Comments
does it work in sway? if anything this would be a wlroots issue, hyprland does not handle drm |
Okay that's weird, I have another kernel (xanmod, based on Linux 6.4.4), and switching from LTS to this one, DisplayLink now work on hyprland. So I believe this might be a compatibility issue between evdi and linux lts? I'm very sorry to have bothered you for such a dumb issue, I should have checked with another kernel earlier... I hope it'll help other people :) |
@clementpoiret could you please share your |
@danielkrajnik I personally had to downgrade nvidia drivers to 521 or less, also, merging the patches from both edit: you can also try evdi-compat, maybe it'll help :) |
@clementpoiret Thank you, I'm trying not to use nvidia and render everything on Intel integrated GPU (only selected applications get offloaded via Prime), so the Are you saying then that you didn't have to add anything else to the hyperland.conf? Like:
Did it just work right after installing the
using the |
Yes, I believe that you do not need the nvidia patch. Why not trying the nouveau driver if you plan to let your gpu alone? https://github.com/clementpoiret/dotfiles/tree/main/dot_config/hypr Look at both hyprland.conf and hypr/scripts/startup.sh Also, I use ly as my display manager, previously I used lightdm, maybe using one can help you? |
Thank you, sadly any combination of environment variables, monitors and even trying to remove nvidia drivers doesn't seem to make any difference. Hyprland is trying to activate the displaylink connected monitor, but keeps quitting. At the same time witching to plasma Wayland starts is just fine. Adding
Line 134 isn't preceded by any of the other three possible
Do you know by any chance how to start some interactive debugger to trace this logic further? |
Hmm so I have no clue... But when I had issues, I posted a comment on this page: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823 Julian Poidevin (the maintainer of the patched version of hyprland) has been very helpful |
I've posted the issue there, hopefully someone may pick it up. I'm also trying to debug it with gdb, but not sure where to find debug symbols (debuginfod doesn't seem to have Hyprland). |
I'm having the same issue. Both hyprland from Arch packages as well as patched hyprland for displaylink (used original PKGBUILD and extended with patch from hyprland-displaylink-git) have no output on DisplayLink. Works fine on GNOME with Wayland. I'm using evdi-git and displaylink service is running. Hardware:
Software:
Login manager is GDM |
This issue persists, sway also doesn't work and I have tried the different display link packages on the AUR (displaylink-beta, git, and all available evdi packages). However other wayland DE / WMs work (KDE Plasma, and Gnome are the only ones I have tested so far). I will update if I find a fix however it is unlikely as the relevant fix is not available in WLRoots yet https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823. I will update if I find something that fixes it for me. edit : It appears there is a patch that can be applied to the pre-packaged wlroots that comes with hyprland in the above gitlab link, its seems there are 2 possible patches however. So there are 2 difficulties, which patch actually works, and can we add support in hyprland without breaking other things. Further I don't think that @vaxerski is willing to possibly break other things to apply these packages for displaylink devices. It seems that the creator of WLroots is not keen on supporting display link displays anytime soon (the above gitlab issue has been open for 4 years) so maybe tiling window managers weren't meant for display link users. |
Displaylink is what's kept me from jumping on the hyprland bandwagon, or specifically a solution that provides displaylink without breaking nvidia prime rendering offload - it's still on my list though. |
Just updated my PKGBUILD to support hyprland 0.37.1 https://gist.github.com/clementpoiret/992d7b4c8cd3707b21461366c817db4d it doesn't have the nvidia patch, but you could apply it in the PKGBUILD similarly to displaylink.patch |
Disclaimer: the displaylink patch is not mine, it comes from https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823 from matt1606. |
DisplayLink seems to be working out of the box using the |
For some reason, for like 2 weeks Wayland does not work anymore on DisplayLink for me. I can't select it in GDM and if I connect a monitor while in a session it'll just crash and bring me back to the login screen. Really weird. |
I have the same issue where the monitors will show up using |
Update 26th July 2024The patch below has since been merged. Update 24th July 2024Made a slightly more robust aquamarine patch here: Update 22nd July 2024With the aquamarine transition merged in today (#6608) and wlroots-hyprland archived, an equivalent hack is: i.e. changing aquamarine's
to
Caveat is the same as mentioned by Kacper Żuk on gitlab.freedesktop.org: Tracking this topic in aquamarine issue 22: Original Response@mattydebie I had the same issue and was able to fix it by manually patching wlroots as mentioned by @clementpoiret and @GersiD above. Left the steps/instructions here if you're still interested: I'd also recommend looking into USB-C DisplayPort (DP Alt Mode) instead of DisplayLink if that's a possibility for you. |
Alright I'll try checking it out! Thanks for the feedback 😁 |
For the arch users among us, adding the following line (annotated with
|
Thanks @mattydebie - I've made a slightly more robust (less hacky) patch here: For AUR, place the diff file in the same directory as the PKGBUILD, then replace the |
Hyprland Version
v0.27.0
Bug or Regression?
Bug
Description
I have an external DisplayLink monitor for my laptop (endeavouros, base arch linux).
It works with:
I all of them, I can activate the display with xrandr.
In hyprland, it doesn’t. The screen stay black forever.
I tried to install hyprland-displaylink-git, which patches hyprland to detect displaylink monitors: it has the same behavior, a black screen on the displaylink screen.
I currently have linux-lts, and use evdi-compat-git, but the behavior is the same with evdi-git.
I tried with the following drivers:
The behavior is exactly the same.
systemctl status displaylink says enabled and active
dmesg | grep -E 'usb|evdi' says: https://pastebin.com/u0fVAgVV 1
inxi -Ga:
hyprctl monitors:
hyprland.conf monitor config:
I’m a bit clueless…
Do you have any idea?
Thank you,
Clément
How to reproduce
Connect any DisplayLink screen using hyprland-displaylink-git on arch. (same behavior with hyprland-nvidia-git).
Crash reports, logs, images, videos
No response
The text was updated successfully, but these errors were encountered: