Skip to content

Commit 3c3eac6

Browse files
committed
udev-rules: Add uaccess tag
Seems to be the recommended way. See: https://wiki.archlinux.org/title/udev#Allowing_regular_users_to_use_devices Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 247bc18 commit 3c3eac6

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ Optionally there are is also a [Python script](python.md).
3838

3939
For device specific commands, see their individual documentation pages.
4040

41-
Common commands:
41+
###### Permissions on Linux
42+
To ensure that the input module's port is accessible, install the `udev` rule and trigger a reload:
43+
44+
```
45+
sudo cp release/50-framework-inputmodule.rules /etc/udev/rules.d/
46+
sudo udevadm control --reload && sudo udevadm trigger
47+
```
48+
49+
##### Common commands:
4250

4351
###### Listing available devices
4452

ledmatrix/50-framework.rules

-2
This file was deleted.

ledmatrix/README.md

-9
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ Connection to the host system is via USB 2.0 and currently there is a USB Serial
1515
- Sleep Mode
1616
- Transition slowly turns off/on the LEDs
1717

18-
## Setup
19-
20-
To ensure that the input module's port is accessible, install the `udev` rule for it located in the `50-framework.rules` file.
21-
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`
24-
25-
You can debug issues using the `udevadm monitor --environment` command.
26-
2718
## Controlling
2819

2920
### Commandline
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Framework Laptop 16 - LED Matrix
2+
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0020", MODE="0660", TAG+="uaccess"
3+
4+
# B1 Display (Experimental prototype, not a product)
5+
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0021", MODE="0660", TAG+="uaccess"
6+
7+
# C1 Minimal Microcontroller Module (Template for DIY Module)
8+
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0022", MODE="0660", TAG+="uaccess"

0 commit comments

Comments
 (0)