Skip to content

Commit

Permalink
Workaround for bug #226
Browse files Browse the repository at this point in the history
- `udev_inhibited_workaround()` functions were added to eruption and eruption-debug-tool.
- In order to use the workaround, a new rule is added to 99-eruption.rules to make the `inhibited` file of the Vulcan 1xx's LED interface device world-writeable.
- An interactive mode was added to eruption-hwutil and eruption-debug-tool to help me debug this problem.  I kept it in and polished it up in case it would be helpful in other contexts.
- All the hwdevices files shared between eruption-hwutil and eruption-debug-tool were updated to respect the interactive mode before device initialization and between run-tests color changes.
- eruption-debug-tool has a new subcommand to send the inhibited workaround independently of the run-tests subcommand.
- gen-completions.sh was updated and run to add the new flag and subcommand.
- Additionally, wherever the vendor ID and product ID from the device is output, use "04x" formatting instead of "x", since leading zeros can be present in IDs unrelated to Roccat.
  • Loading branch information
Phen-Ro authored and X3n0m0rph59 committed Aug 30, 2023
1 parent aab879f commit 6a30263
Show file tree
Hide file tree
Showing 55 changed files with 629 additions and 150 deletions.
50 changes: 27 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions eruption-debug-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ flume = "0.11.0"
clap = { version = "4.3.24", features = ["derive"] }
clap_complete = "4.3.2"
colored = "2.0.4"
console = "0.15.5"
ctrlc = { version = "3.4.0", features = ["termination"] }
libc = "0.2.147"
nix = "0.27.1"
Expand All @@ -71,6 +72,7 @@ thiserror = "1.0.47"
eyre = "0.6.8"
color-eyre = "0.6.2"
hexdump = "0.1.1"
udev = "0.7"
bitvec = "1.0.1"
byteorder = "1.4.3"
serialport = "4.2.2"
Expand Down
1 change: 1 addition & 0 deletions eruption-debug-tool/src/interact.rs
Loading

0 comments on commit 6a30263

Please sign in to comment.