diff --git a/protocol/src/uinput_monitor.rs b/protocol/src/uinput_monitor.rs index b326c13..9988b1c 100644 --- a/protocol/src/uinput_monitor.rs +++ b/protocol/src/uinput_monitor.rs @@ -72,6 +72,10 @@ impl UinputInjector { } pub fn new(name: &str) -> Result> { + // Ensure uinput kernel module is loaded before trying to open the device + let _ = std::process::Command::new("modprobe") + .args(["uinput"]) + .output(); let file = OpenOptions::new() .read(true) .write(true)