Anime: fixups, GU604 support

This commit is contained in:
Luke D. Jones
2023-06-15 23:53:24 +12:00
parent cdc42193d1
commit 40e00c4739
11 changed files with 115 additions and 39 deletions

View File

@@ -204,7 +204,7 @@ impl AnimeState {
pub fn new(supported: &SupportedFunctions, dbus: &RogDbusClientBlocking<'_>) -> Result<Self> {
Ok(Self {
boot: if supported.anime_ctrl.0 {
dbus.proxies().anime().boot_enabled()?
dbus.proxies().anime().animation_enabled()?
} else {
false
},

View File

@@ -42,7 +42,7 @@ pub fn anime_power_group(_supported: &SupportedFunctions, states: &mut SystemSta
.asus_dbus
.proxies()
.anime()
.set_boot_on_off(states.anime.boot)
.set_animation_enabled(states.anime.boot)
.map_err(|err| {
states.error = Some(err.to_string());
})
@@ -55,7 +55,7 @@ pub fn anime_power_group(_supported: &SupportedFunctions, states: &mut SystemSta
.asus_dbus
.proxies()
.anime()
.set_on_off(states.anime.awake)
.set_awake_enabled(states.anime.awake)
.map_err(|err| {
states.error = Some(err.to_string());
})