Add support for mini_led_mode get/set

- asusd get/set, zbus methods
- Rog control center notification, tray menu, UI entry
This commit is contained in:
Luke D. Jones
2023-06-26 10:44:58 +12:00
parent 03c9f06569
commit acf41c1783
11 changed files with 144 additions and 31 deletions

View File

@@ -40,6 +40,9 @@ trait RogBios {
/// PanelOd method
fn panel_od(&self) -> zbus::Result<bool>;
/// MiniLedMode method
fn mini_led_mode(&self) -> zbus::Result<bool>;
/// PostBootSound method
fn post_boot_sound(&self) -> zbus::Result<i16>;
@@ -55,6 +58,9 @@ trait RogBios {
/// SetPanelOd method
fn set_panel_od(&self, overdrive: bool) -> zbus::Result<()>;
/// SetminiLedMode
fn set_mini_led_mode(&self, on: bool) -> zbus::Result<()>;
/// SetPostBootSound method
fn set_post_boot_sound(&self, on: bool) -> zbus::Result<()>;
@@ -74,6 +80,10 @@ trait RogBios {
#[dbus_proxy(signal)]
fn notify_panel_od(&self, overdrive: bool) -> zbus::Result<()>;
/// NotifyMiniLedMode signal
#[dbus_proxy(signal)]
fn notify_mini_led_mode(&self, on: bool) -> zbus::Result<()>;
/// NotifyPostBootSound signal
#[inline]
#[dbus_proxy(signal)]