Displaylink: Difference between revisions
| Line 39: | Line 39: | ||
}; | }; | ||
}; | }; | ||
<syntaxhighlight | </syntaxhighlight> | ||
====='''Gnome Wayland'''===== | ====='''Gnome Wayland'''===== | ||
| Line 45: | Line 45: | ||
Install displayLink package | Install displayLink package | ||
<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
displaylink | displaylink | ||
]; | ]; | ||
</ | </syntaxhighlight> | ||
Define videoDrivers | Define videoDrivers | ||
| Line 57: | Line 57: | ||
Add dlm service | Add dlm service | ||
<syntaxhighlight lang="nix"> | |||
systemd.services.dlm.wantedBy = [ "multi-user.target" ]; | systemd.services.dlm.wantedBy = [ "multi-user.target" ]; | ||
</ | </syntaxhighlight> | ||
====='''KDE Plasma'''===== | ====='''KDE Plasma'''===== | ||
| Line 66: | Line 66: | ||
Esnure you properly enabled wayland session | Esnure you properly enabled wayland session | ||
<syntaxhighlight lang="nix"> | |||
environment.variables = { | environment.variables = { | ||
KWIN_DRM_PREFER_COLOR_DEPTH = "24"; | KWIN_DRM_PREFER_COLOR_DEPTH = "24"; | ||
| Line 84: | Line 84: | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
Install displayLink package | Install displayLink package | ||
<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
displaylink | displaylink | ||
]; | ]; | ||
</ | </syntaxhighlight> | ||
Instead of dlm setup display-link server as follows: | Instead of dlm setup display-link server as follows: | ||
<syntaxhighlight lang="nix"> | |||
systemd.services.displaylink-server = { | systemd.services.displaylink-server = { | ||
enable = true; | enable = true; | ||
requires = [ "systemd-udevd.service" ]; | requires = [ "systemd-udevd.service" ]; | ||
after = [ "systemd-udevd.service" ]; | after = [ "systemd-udevd.service" ]; | ||
wantedBy = [ "multi-user.target" ]; | wantedBy = [ "multi-user.target" ]; | ||
serviceConfig = { | serviceConfig = { | ||
Type = "simple"; | Type = "simple"; | ||
ExecStart = "${pkgs.displaylink}/bin/DisplayLinkManager"; | ExecStart = "${pkgs.displaylink}/bin/DisplayLinkManager"; | ||
User = "root"; | User = "root"; | ||
Group = "root"; | Group = "root"; | ||
Restart = "on-failure"; | Restart = "on-failure"; | ||
RestartSec = 5; # Wait 5 seconds before restarting | RestartSec = 5; # Wait 5 seconds before restarting | ||
}; | }; | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
==Sway== | ==Sway== | ||