mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Fix setting next fan profile
|
||||||
|
|
||||||
## [v5.0.0]
|
## [v5.0.0]
|
||||||
### Added
|
### Added
|
||||||
- Gnome 45 plugin
|
- Gnome 45 plugin
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ impl CtrlPlatform {
|
|||||||
let policy: PlatformPolicy =
|
let policy: PlatformPolicy =
|
||||||
platform_get_value!(self, throttle_thermal_policy, "throttle_thermal_policy")
|
platform_get_value!(self, throttle_thermal_policy, "throttle_thermal_policy")
|
||||||
.map(|n| n.into())?;
|
.map(|n| n.into())?;
|
||||||
|
let policy = PlatformPolicy::next(&policy);
|
||||||
|
|
||||||
if self.platform.has_throttle_thermal_policy() {
|
if self.platform.has_throttle_thermal_policy() {
|
||||||
if let Some(cpu) = self.cpu_control.as_ref() {
|
if let Some(cpu) = self.cpu_control.as_ref() {
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ pub enum PlatformPolicy {
|
|||||||
impl PlatformPolicy {
|
impl PlatformPolicy {
|
||||||
pub const fn next(&self) -> Self {
|
pub const fn next(&self) -> Self {
|
||||||
match self {
|
match self {
|
||||||
Self::Balanced => Self::Balanced,
|
Self::Balanced => Self::Performance,
|
||||||
Self::Performance => Self::Quiet,
|
Self::Performance => Self::Quiet,
|
||||||
Self::Quiet => Self::Balanced,
|
Self::Quiet => Self::Balanced,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user