update mgpu for aq

This commit is contained in:
Vaxry 2024-07-21 19:51:02 +02:00
parent 2e89405bf2
commit 0162577cf1

View file

@ -59,38 +59,17 @@ with lower and higher power rating GPUs respectively.
{{< /callout >}}
If you wish to use the integrated GPU to run Hyprland, no further action is
required. Aquamarine will set `AQ_DRM_DEVICES` to the integrated GPU by default.
required.
If instead you would like to use another GPU, you must first create a symlink to
the card from the previous section.
If instead you would like to use another GPU, or the wrong GPU is picked by default,
set `AQ_DRM_DEVICES` to a `:`-separated list of card paths, e.g.
It is not possible to use `~/.config/hypr/card` as aquamarine will not expand it correctly.
You must include full path e.g `$HOME/.config/hypr/card`
```
ln -sf /dev/dri/by-path/pci-0000:06:00.0-card $HOME/.config/hypr/card
env = AQ_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1
```
It is not possible to directly use the `/dev/dri/by-path/pci-0000:06:00.0-card` path,
as aquamarine interprets the colon symbols in the path as separators. Escaping
characters will not rectify this.
Afterwards, you must set the `AQ_DRM_DEVICES` environment variable in
hyprland.conf to this linked card.
```ini
env = AQ_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 = AQ_DRM_DEVICES,$HOME/.config/hypr/card:$HOME/.config/hypr/otherCard
```
Here, we tell Hyprland to set priorities. If `card` isn't available for
whatever reason, use `otherCard`. So if the AMD GPU isn't available, use NVIDIA.
Here, we tell Hyprland to set priorities. If `card0` isn't available for
whatever reason, use `card1`.
You should now be able to use an integrated GPU for lighter GPU loads,
including Hyprland, or default to your dGPU if you prefer.