mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Add missing if condition for vfio
This commit is contained in:
@@ -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 G733QS
|
||||||
- Add ledmodes for GA401Q
|
- Add ledmodes for GA401Q
|
||||||
- Default to vfio disabled in configuration. Will now hard-error if enabled and
|
- 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
|
# [3.2.4] - 2021-03-24
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -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
|
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.
|
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
|
### Power management udev rule
|
||||||
|
|
||||||
If you have installed the Nvidia driver manually you will require the
|
If you have installed the Nvidia driver manually you will require the
|
||||||
|
|||||||
@@ -623,7 +623,7 @@ impl CtrlGraphics {
|
|||||||
false
|
false
|
||||||
};
|
};
|
||||||
|
|
||||||
if !vfio_enable {
|
if !vfio_enable && matches!(vendor, GfxVendors::Vfio) {
|
||||||
return Err(GfxError::VfioDisabled.into());
|
return Err(GfxError::VfioDisabled.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user