Multi-GPU: Replace ~ with $HOME (#593)

This commit is contained in:
Daragh 2024-04-17 06:13:37 +00:00 committed by GitHub
parent c21fedb1c0
commit 69699a07b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -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 If instead you would like to use another GPU, you must first create a symlink to
the card from the previous section. 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 as wlroots interprets the colon symbols in the path as separators. Escaping
characters will not rectify this. characters will not rectify this.
Afterwards, you must set the `WLR_DRM_DEVICES` environment variable in Afterwards, you must set the `WLR_DRM_DEVICES` environment variable in
hyprland.conf to this linked card. hyprland.conf to this linked card.
```ini ```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 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. the var as a colon separated list in order of priority.
```ini ```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 Here, we tell Hyprland to set priorities. If `card` isn't available for