mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
@@ -211,16 +211,10 @@ impl CtrlKbdLed {
|
|||||||
|
|
||||||
let bright_node = Self::get_kbd_bright_path();
|
let bright_node = Self::get_kbd_bright_path();
|
||||||
|
|
||||||
if led_node.is_none() {
|
if led_node.is_none() && bright_node.is_none() {
|
||||||
return Err(RogError::NoAuraKeyboard);
|
return Err(RogError::NoAuraKeyboard);
|
||||||
}
|
}
|
||||||
|
|
||||||
if bright_node.is_none() {
|
|
||||||
return Err(RogError::MissingFunction(
|
|
||||||
"No brightness control, you may require a v5.11 series kernel or newer".into(),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
let ctrl = CtrlKbdLed {
|
let ctrl = CtrlKbdLed {
|
||||||
led_prod,
|
led_prod,
|
||||||
led_node,
|
led_node,
|
||||||
|
|||||||
Reference in New Issue
Block a user