Displaylink: Difference between revisions
Note that driver version 6.0.0 support is pending |
Hughobrien (talk | contribs) add instructions for display link support on sway/wlroots |
||
Line 18: | Line 18: | ||
${lib.getBin pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource 2 0 | ${lib.getBin pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource 2 0 | ||
'';</syntaxhighlight> | '';</syntaxhighlight> | ||
==Sway== | |||
Identify which card has the render device, <code>evdi</code> is the DisplayLink interface, so it's not <code>card0</code>, but <code>card1</code>. | |||
<syntaxhighlight lang="console"> | |||
$ ls -l /dev/dri/by-path | |||
lrwxrwxrwx - root 2 Nov 13:38 pci-0000:00:02.0-card -> ../card1 | |||
lrwxrwxrwx - root 2 Nov 13:38 pci-0000:00:02.0-render -> ../renderD128 | |||
lrwxrwxrwx - root 2 Nov 13:38 platform-evdi.0-card -> ../card0 | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="nix"> | |||
environment.variables = { | |||
WLR_EVDI_RENDER_DEVICE = "/dev/dri/card1"; | |||
}; | |||
nixpkgs.overlays = [ | |||
(final: prev: { | |||
wlroots_0_17 = prev.wlroots_0_17.overrideAttrs (old: { | |||
patches = (old.patches or [ ]) ++ [ | |||
(prev.fetchpatch { | |||
url = "https://gitlab.freedesktop.org/wlroots/wlroots/uploads/bd115aa120d20f2c99084951589abf9c/DisplayLink_v2.patch"; | |||
hash = "sha256-vWQc2e8a5/YZaaHe+BxfAR/Ni8HOs2sPJ8Nt9pfxqiE="; | |||
}) | |||
]; | |||
}); | |||
}) | |||
]; | |||
services.xserver.videoDrivers = [ "displaylink" ]; | |||
systemd.services.dlm.wantedBy = [ "multi-user.target" ]; | |||
</syntaxhighlight> | |||
[Source https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823#note_2146862] | |||
[[Category:Video]] | [[Category:Video]] |