mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix the handling of of the kernel change from "quiet" to "low-power"
A coming kernel change will convert "quiet" to "low-power" due to how platform_profile can now have multiple registered handlers. (kernel 6.14 est) Fixes #609
This commit is contained in:
@@ -927,16 +927,16 @@ fn handle_throttle_profile(
|
||||
|
||||
let proxy = PlatformProxyBlocking::new(conn)?;
|
||||
let current = proxy.platform_profile()?;
|
||||
let choices = proxy.platform_profile_choices()?;
|
||||
|
||||
if cmd.next {
|
||||
proxy.set_platform_profile(current.next())?;
|
||||
proxy.set_platform_profile(PlatformProfile::next(current, &choices))?;
|
||||
} else if let Some(profile) = cmd.profile_set {
|
||||
proxy.set_platform_profile(profile)?;
|
||||
}
|
||||
|
||||
if cmd.list {
|
||||
let res = PlatformProfile::list();
|
||||
for p in &res {
|
||||
for p in &choices {
|
||||
println!("{:?}", p);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user