Skip to content

Commit

Permalink
Framework 16: udev rules for keyboard config
Browse files Browse the repository at this point in the history
Add a udev rule to allow the keyboard modules to be reconfigured.
  • Loading branch information
me-and authored Sep 28, 2024
1 parent fb08bde commit 70bea9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/16-inch/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@
MatchName=Framework Laptop 16 Keyboard Module - ANSI Keyboard
AttrKeyboardIntegration=internal
'';

# Allow access to the keyboard modules for programming, for example by
# visiting https://keyboard.frame.work with a WebHID-compatible browser.
#
# https://community.frame.work/t/responded-help-configuring-fw16-keyboard-with-via/47176/5
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
}

0 comments on commit 70bea9f

Please sign in to comment.