Skip to content

Commit 9a55c4f

Browse files
committed
ledmatrix: Small cleanup
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 188ca13 commit 9a55c4f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

inputmodule-control/src/inputmodule.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ fn simple_cmd(serialdev: &str, command: Command, args: &[u8]) {
395395
match port_result {
396396
Ok(mut port) => simple_cmd_port(&mut port, command, args),
397397
Err(error) => match error.kind {
398-
serialport::ErrorKind::Io(std::io::ErrorKind::PermissionDenied) => panic!("Permission denied, couldn't access input module port. Ensure that udev rule is installed or the port the module is on is otherwise accessible."),
398+
serialport::ErrorKind::Io(std::io::ErrorKind::PermissionDenied) => panic!("Permission denied, couldn't access inputmodule serialport. Ensure that you have permission, for example using a udev rule or sudo."),
399399
other_error => panic!("Couldn't open port: {:?}", other_error)
400400
}
401401
};

ledmatrix/50-framework.rules

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0020", MODE:="0666"
1+
# Framework Laptop 16 - LED Matrix Inputmodule
2+
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0020", MODE:="0666"

ledmatrix/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Connection to the host system is via USB 2.0 and currently there is a USB Serial
1919

2020
To ensure that the input module's port is accessible, install the `udev` rule for it located in the `50-framework.rules` file.
2121

22-
1. Copy it to your udev rules directory. On Ubuntu, this is located at `/etc/udev/rules.d/`
23-
2. Reload the rules with `sudo udevadm control --reload`
22+
1. Copy it to your udev rules directory, which is usually at: `/etc/udev/rules.d/`
23+
2. Reload and apply the rules with `sudo udevadm control --reload && sudo udevadm trigger`
2424

25-
You can debug issues using the `udevadm monitor --environment` command. Ensure that the device's `idVendor` and `idProduct` match when you plug in the device.
25+
You can debug issues using the `udevadm monitor --environment` command.
2626

2727
## Controlling
2828

0 commit comments

Comments
 (0)