From 1c007b421674c28a92428c476d6e3863c378f420 Mon Sep 17 00:00:00 2001 From: "Luke D. Jones" Date: Sat, 23 Mar 2024 11:45:20 +1300 Subject: [PATCH] Small refinement to aura control init --- asusd/src/ctrl_aura/controller.rs | 9 ++++++++- rog-control-center/translations/en/rog-control-center.po | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/asusd/src/ctrl_aura/controller.rs b/asusd/src/ctrl_aura/controller.rs index 581d655f..31105d41 100644 --- a/asusd/src/ctrl_aura/controller.rs +++ b/asusd/src/ctrl_aura/controller.rs @@ -2,7 +2,7 @@ use std::collections::BTreeMap; use config_traits::{StdConfig, StdConfigLoad}; use inotify::Inotify; -use log::{info, warn}; +use log::{debug, info, warn}; use rog_aura::advanced::{LedUsbPackets, UsbPackets}; use rog_aura::aura_detection::LaptopLedData; use rog_aura::usb::{AuraDevice, LED_APPLY, LED_SET}; @@ -86,6 +86,13 @@ impl CtrlKbdLed { continue; } } + let dev_node = if let Some(dev_node) = usb_device.devnode() { + dev_node + } else { + debug!("Device has no devnode, skipping"); + continue; + }; + info!("AuraControl found device at: {:?}", dev_node); let dbus_path = dbus_path_for_dev(&usb_device).unwrap_or_default(); let dev = HidRaw::from_device(end_point)?; let dev = Self::from_hidraw(dev, dbus_path, data)?; diff --git a/rog-control-center/translations/en/rog-control-center.po b/rog-control-center/translations/en/rog-control-center.po index 8afcdd0f..93cb683b 100644 --- a/rog-control-center/translations/en/rog-control-center.po +++ b/rog-control-center/translations/en/rog-control-center.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-22 06:45+0000\n" +"POT-Creation-Date: 2024-03-22 22:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"