Merge branch 'dev' into rc
This commit is contained in:
@@ -6,10 +6,21 @@
|
|||||||
# Ensure supergfxctl has been installed
|
# Ensure supergfxctl has been installed
|
||||||
if omarchy-cmd-missing supergfxctl; then
|
if omarchy-cmd-missing supergfxctl; then
|
||||||
omarchy-pkg-add supergfxctl
|
omarchy-pkg-add supergfxctl
|
||||||
sudo systemctl enable --now supergfxd
|
|
||||||
|
|
||||||
# Needed to deal with restoring to sleep where going through VFIO first means we don't need to reboot.
|
# Create config before starting service to prevent hang on first boot
|
||||||
sudo sed -i "s/\"vfio_enable\": \".*\"/\"vfio_enable\": true/" /etc/supergfxd.conf
|
sudo tee /etc/supergfxd.conf >/dev/null <<'CONF'
|
||||||
|
{
|
||||||
|
"mode": "Hybrid",
|
||||||
|
"vfio_enable": true,
|
||||||
|
"vfio_save": false,
|
||||||
|
"always_reboot": false,
|
||||||
|
"no_logind": false,
|
||||||
|
"logout_timeout_s": 180,
|
||||||
|
"hotplug_type": "None"
|
||||||
|
}
|
||||||
|
CONF
|
||||||
|
|
||||||
|
sudo systemctl enable --now supergfxd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gpu_mode=$(supergfxctl -g)
|
gpu_mode=$(supergfxctl -g)
|
||||||
|
|||||||
Reference in New Issue
Block a user