Displaylink: Difference between revisions

Sandro (talk | contribs)
Cobalt (talk | contribs)
update swaywm instructions for NixOS 25.11
 
Line 140: Line 140:
];
];
services.xserver.videoDrivers = [ "displaylink" ];
services.xserver.videoDrivers = [ "displaylink" ];
# only for NixOS 25.05 and earlier
systemd.services.dlm.wantedBy = [ "multi-user.target" ];
systemd.services.dlm.wantedBy = [ "multi-user.target" ];
</syntaxhighlight>
</syntaxhighlight>


Note as of [https://github.com/NixOS/nixpkgs/pull/351752 2024-10-30] nixos-unstable sway uses <code>wlroots_0_18</code>. The patch above applies correctly but you will need to invoke sway with the <code>--unsupported-gpu</code> flag.
Note as of [https://github.com/NixOS/nixpkgs/pull/351752 2024-10-30] nixos-unstable sway uses <code>wlroots_0_18</code> and as of NixOS 25.11 sway uses <code>wlroots_0_19</code>. The patch above applies correctly but you will need to invoke sway with the <code>--unsupported-gpu</code> flag.


For NixOS 25.11 and later you also will not have to add a dependency on the dlm service but instead use <code>displaylink-server</code> like KDE Plasma.


You can also test if your setup is working without this service (you will still require the patch for wlroots and sway with the <code>--unsupported-gpu</code> flag) by invoking the DisplayLinkManager executable (provided by the displaylink package) as root. If the setup is working, sway should at this point recognize the new display(s).
[https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823#note_2146862 Source]
[https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823#note_2146862 Source]