use libudev to handle device disconnect/reconnect
This change has substantially bumped up the daemon's overall robustness, as the code now ensures that the controller will only start once the /dev/input/eventXX file is set up, which was causing all sorts of issues in the past. Additionally, this change enables the daemon to run as a proper background task that _doesn't_ constantly die / need to be restarted, which removes the need for any janky udev "on add" rules, and instead, a simple systemd user service will suffice.
This commit is contained in:
@@ -10,9 +10,11 @@ directories = "3.0"
|
||||
evdev-rs = { git = "https://github.com/ndesh26/evdev-rs.git", rev = "8e995b8bf" }
|
||||
hidapi = { version = "1.2.3", default-features = false, features = ["linux-shared-hidraw"] }
|
||||
lazy_static = "1.4"
|
||||
nix = "0.19.0"
|
||||
notify-rust = "4"
|
||||
parking_lot = "0.11.0"
|
||||
signal-hook = "0.1.16"
|
||||
udev = "0.5"
|
||||
|
||||
# HACK: Using >1 virtual uinput devices will segfault in release builds.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user