diff --git a/CHANGELOG.md b/CHANGELOG.md index 5844d29a..6f80a5fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add ledmodes for G733QS - Add ledmodes for GA401Q - Default to vfio disabled in configuration. Will now hard-error if enabled and - the kernel modules are builtin. + the kernel modules are builtin. To enable vfio switching `"gfx_vfio_enable": false,` + must be changed to `true` in `/etc/asusd/asusd.conf` # [3.2.4] - 2021-03-24 ### Changed diff --git a/README.md b/README.md index 9ba50571..fd3f2e3c 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,8 @@ stray configs blocking nvidia modules from loading in: to be separate modules. If you don't plan to use vfio mode then you can ignore this otherwise you may need a custom built kernel. +To enable vfio switching you need to edit `/etc/asusd/asusd.conf` and change `"gfx_vfio_enable": false,` to true. + ### Power management udev rule If you have installed the Nvidia driver manually you will require the diff --git a/daemon/src/ctrl_gfx/gfx.rs b/daemon/src/ctrl_gfx/gfx.rs index 62e909e2..d61aadbe 100644 --- a/daemon/src/ctrl_gfx/gfx.rs +++ b/daemon/src/ctrl_gfx/gfx.rs @@ -623,7 +623,7 @@ impl CtrlGraphics { false }; - if !vfio_enable { + if !vfio_enable && matches!(vendor, GfxVendors::Vfio) { return Err(GfxError::VfioDisabled.into()); }