Displaylink: Difference between revisions
m Date seemed wrong |
Some restructuring and rephrasing |
||
Line 1: | Line 1: | ||
===DisplayLink monitors=== | ===DisplayLink monitors=== | ||
In order to use DisplayLink monitors over USB, such as the ASUS MB16AC, the DisplayLink driver needs to be installed | In order to use DisplayLink monitors over USB, such as the ASUS MB16AC, the DisplayLink driver needs to be installed. | ||
Since these drivers depend on binary unfree blobs, you will need to first add it to your Nix store. | Since these drivers depend on binary unfree blobs, you will need to first add it to your Nix store. | ||
Run <code>nix-shell -p displaylink --arg config '{ allowUnfree = true; }'</code> to get the '''instructions and follow them'''. | |||
When you try to use <code>pkgs.displaylink</code> in your nixos system, you will get the same instructions printed to the stderr, follow those to prefetch the driver. Once the blob is in the Nix store you can add the package<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | |||
displaylink | |||
]; | |||
</syntaxhighlight>Then add the videoDrivers:<syntaxhighlight lang="nixos">services.xserver.videoDrivers = [ "displaylink" "modesetting" ];</syntaxhighlight>The module <code>nixos/modules/hardware/video/displaylink.nix</code> should also work for wlroots compositors. | |||
====Connecting a second external monitor==== | ====Connecting a second external monitor==== | ||
Line 48: | Line 50: | ||
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>. The patch above applies correctly but you will need to invoke sway with the <code>--unsupported-gpu</code> flag. | ||
[https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823#note_2146862 Source] | [https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1823#note_2146862 Source] | ||
[[Category:Video]] | [[Category:Video]] |