mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-05 21:15:58 +01:00
Multi-GPU: Replace ~ with $HOME (#593)
This commit is contained in:
parent
c21fedb1c0
commit
69699a07b2
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue