From 6cfa09a02bbc5aec9bdf124b1076248b7524b4c1 Mon Sep 17 00:00:00 2001 From: "Luke D. Jones" Date: Mon, 3 Jul 2023 16:20:46 +1200 Subject: [PATCH] Update readme --- README.md | 10 ++++++---- asusd/src/ctrl_anime/mod.rs | 9 ++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 598c18cf..851f6486 100644 --- a/README.md +++ b/README.md @@ -48,13 +48,11 @@ and AniMe parts should work regardless of your latop make. ## Implemented - [X] System daemon -- [X] GUI app -- [X] User notifications daemon +- [X] GUI app (includes tray and notifications) - [X] Setting/modifying built-in LED modes - [X] Per-key LED setting - [X] Fancy LED modes (See examples) (currently being reworked) -- [X] Saving settings for reload -- [X] AniMatrix display on G14 models that include it +- [X] AniMatrix display on G14 and M16 models that include it - [X] Set battery charge limit (with kernel supporting this) - [X] Fan curve control on supported laptops (G14/G15, some TUF like FA507) - [X] Toggle bios setting for boot/POST sound @@ -136,6 +134,10 @@ Dbus introsepction XML requires with `make introspection` requires `anime_sim` t # OTHER +## AniMe Matrix simulator + +A simulator using SDL2 can be built using `cargo build --package rog_simulators` and run with `./target/debug/anime_sim`. Once started `asusd` will need restarting to pick it up. If running this sim on a laptop *with* the display, the simulated display will be used instead of the physical display. + ## Supporting more laptops Please file a support request. diff --git a/asusd/src/ctrl_anime/mod.rs b/asusd/src/ctrl_anime/mod.rs index 076fea4e..1dfe6205 100644 --- a/asusd/src/ctrl_anime/mod.rs +++ b/asusd/src/ctrl_anime/mod.rs @@ -63,13 +63,12 @@ pub struct CtrlAnime { impl CtrlAnime { #[inline] pub fn new(config: AnimeConfig) -> Result { - // let node = HidRaw::new("193b")?; - let usb = USBRaw::new(0x193b).ok(); let hid = HidRaw::new("193b").ok(); - let node = if usb.is_some() { - unsafe { Node::Usb(usb.unwrap_unchecked()) } - } else if hid.is_some() { + let usb = USBRaw::new(0x193b).ok(); + let node = if hid.is_some() { unsafe { Node::Hid(hid.unwrap_unchecked()) } + } else if usb.is_some() { + unsafe { Node::Usb(usb.unwrap_unchecked()) } } else { return Err(RogError::Anime(AnimeError::NoDevice)); };