diff --git a/Cargo.toml b/Cargo.toml
index 65fa0f39..ee68fd8e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,11 +29,10 @@ version = "6.0.0-alpha1"
rust-version = "1.76"
[workspace.dependencies]
-tokio = { version = "^1.23.0", default-features = false, features = [
+tokio = { version = "^1.36.0", default-features = false,features = [
"macros",
"sync",
"time",
- "rt",
"rt-multi-thread"
] }
concat-idents = "^1.1"
diff --git a/Makefile b/Makefile
index f5f7a967..cb6f84cd 100644
--- a/Makefile
+++ b/Makefile
@@ -124,9 +124,9 @@ bindings:
typeshare ./rog-platform/src/ --lang=typescript --output-file=bindings/ts/platform.ts
introspect:
-# gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/Platform -x > bindings/dbus-xml/org-asuslinux-platform-4.xml
-# gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/Aura -x > bindings/dbus-xml/org-asuslinux-aura-4.xml
-# gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/Anime -x > bindings/dbus-xml/org-asuslinux-anime-4.xml
+ gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/Platform -x > bindings/dbus-xml/org-asuslinux-platform-4.xml
+ gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/Aura -x > bindings/dbus-xml/org-asuslinux-aura-4.xml
+ gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/Anime -x > bindings/dbus-xml/org-asuslinux-anime-4.xml
gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux -x > bindings/dbus-xml/org-asuslinux-platform-4.xml
gdbus introspect --system -d org.asuslinux.Daemon -o /org/asuslinux/19b6_4_4 -x > bindings/dbus-xml/org-asuslinux-19b6-4-4-4.xml
xmlstarlet ed -L -O -d '//interface[@name="org.freedesktop.DBus.Introspectable"]' bindings/dbus-xml/org-asuslinux-*
diff --git a/asusctl/src/aura_cli.rs b/asusctl/src/aura_cli.rs
index b30cffb9..eea3af0b 100644
--- a/asusctl/src/aura_cli.rs
+++ b/asusctl/src/aura_cli.rs
@@ -88,15 +88,15 @@ impl FromStr for LedBrightness {
}
}
}
-impl Display for LedBrightness {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+impl ToString for LedBrightness {
+ fn to_string(&self) -> String {
let s = match self.level {
Some(0x00) => "low",
Some(0x01) => "med",
Some(0x02) => "high",
_ => "unknown",
};
- write!(f, "{}", s.to_owned())
+ s.to_owned()
}
}
diff --git a/bindings/dbus-xml/org-asuslinux-19b6-4-4-4.xml b/bindings/dbus-xml/org-asuslinux-19b6-4-4-4.xml
deleted file mode 100644
index a04d6fab..00000000
--- a/bindings/dbus-xml/org-asuslinux-19b6-4-4-4.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bindings/dbus-xml/org-asuslinux-platform-4.xml b/bindings/dbus-xml/org-asuslinux-platform-4.xml
index 682f0441..f22a35cc 100644
--- a/bindings/dbus-xml/org-asuslinux-platform-4.xml
+++ b/bindings/dbus-xml/org-asuslinux-platform-4.xml
@@ -1,101 +1,8 @@
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -111,11 +18,6 @@
-->
-
-
@@ -140,6 +42,10 @@
internal config also.
-->
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/rog-aura/src/builtin_modes.rs b/rog-aura/src/builtin_modes.rs
index f5c729a9..d955c74c 100644
--- a/rog-aura/src/builtin_modes.rs
+++ b/rog-aura/src/builtin_modes.rs
@@ -486,7 +486,7 @@ impl Default for AuraEffect {
Self {
mode: AuraModeNum::Static,
zone: AuraZone::None,
- colour1: Colour { r: 166, g: 166, b: 166 },
+ colour1: Colour { r: 166, g: 0, b: 0 },
colour2: Colour { r: 0, g: 0, b: 0 },
speed: Speed::Med,
direction: Direction::Right,
diff --git a/rog-control-center/src/main.rs b/rog-control-center/src/main.rs
index 325c378b..69589382 100644
--- a/rog-control-center/src/main.rs
+++ b/rog-control-center/src/main.rs
@@ -72,10 +72,14 @@ fn main() -> Result<()> {
})
.unwrap();
- let supported_properties = dbus.proxies().platform().supported_properties().unwrap_or_else(|_e| {
- // TODO: show an error window
- Vec::default()
- });
+ let supported_properties = dbus
+ .proxies()
+ .platform()
+ .supported_properties()
+ .unwrap_or_else(|_e| {
+ // TODO: show an error window
+ Vec::default()
+ });
// Startup
let mut config = Config::new().load();
@@ -113,7 +117,8 @@ fn main() -> Result<()> {
init_tray(supported_properties, states.clone(), config.clone());
}
- thread_local! { pub static UI: std::cell::RefCell