Add missing if condition for vfio

This commit is contained in:
Luke D Jones
2021-04-03 12:20:56 +13:00
parent 2dc70ea6af
commit fc3d7653f5
3 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -623,7 +623,7 @@ impl CtrlGraphics {
false
};
if !vfio_enable {
if !vfio_enable && matches!(vendor, GfxVendors::Vfio) {
return Err(GfxError::VfioDisabled.into());
}