From 69699a07b254347135579e088e91896531c3d885 Mon Sep 17 00:00:00 2001 From: Daragh Date: Wed, 17 Apr 2024 06:13:37 +0000 Subject: [PATCH] Multi-GPU: Replace ~ with $HOME (#593) --- pages/Configuring/Multi-GPU.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/Configuring/Multi-GPU.md b/pages/Configuring/Multi-GPU.md index 747d4ea..018d6bd 100644 --- a/pages/Configuring/Multi-GPU.md +++ b/pages/Configuring/Multi-GPU.md @@ -64,26 +64,29 @@ required. wlroots will set `WLR_DRM_DEVICES` to the integrated GPU by default. If instead you would like to use another GPU, you must first create a symlink to the card from the previous section. +It is not possible to use `~/.config/hypr/card` as wlroots will not expand it correctly. +You must include full path e.g `$HOME/.config/hypr/card` ``` -ln -sf /dev/dri/pci-0000:06:00.0-card ~/.config/hypr/card +ln -sf /dev/dri/by-path/pci-0000:06:00.0-card $HOME/.config/hypr/card ``` -It is not possible to directly use the `/dev/dri/pci-0000:06:00.0-card` path, +It is not possible to directly use the `/dev/dri/by-path/pci-0000:06:00.0-card` path, as wlroots interprets the colon symbols in the path as separators. Escaping characters will not rectify this. Afterwards, you must set the `WLR_DRM_DEVICES` environment variable in hyprland.conf to this linked card. + ```ini -env = WLR_DRM_DEVICES,~/.config/hypr/card +env = WLR_DRM_DEVICES,$HOME/.config/hypr/card ``` If you want to set a sequence of fallback cards, symlink another card and set the var as a colon separated list in order of priority. ```ini -env = WLR_DRM_DEVICES,~/.config/hypr/card:~/.config/hypr/otherCard +env = WLR_DRM_DEVICES,$HOME/.config/hypr/card:$HOME/.config/hypr/otherCard ``` Here, we tell Hyprland to set priorities. If `card` isn't available for