summaryrefslogtreecommitdiffstats
path: root/lass/1systems/aergia
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-07-08 14:59:15 +0200
committerlassulus <git@lassul.us>2023-07-08 14:59:15 +0200
commit4aff1a4985faac187e0691a86dfc00f654006499 (patch)
treee521619480e0628c25c6ff32f628525566bcdcb2 /lass/1systems/aergia
parent9b9e64fb6b2a1ef0f844a459186b0befa6b3f114 (diff)
l aergia.r: reinit usb after docking
Diffstat (limited to 'lass/1systems/aergia')
-rw-r--r--lass/1systems/aergia/physical.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/lass/1systems/aergia/physical.nix b/lass/1systems/aergia/physical.nix
index f24c6aa11..ef62478b4 100644
--- a/lass/1systems/aergia/physical.nix
+++ b/lass/1systems/aergia/physical.nix
@@ -99,4 +99,8 @@
# firefox touchscreen support
environment.sessionVariables.MOZ_USE_XINPUT2 = "1";
+ # reinit usb after docking station connect
+ services.udev.extraRules = ''
+ SUBSYSTEM=="drm", ACTION=="change", RUN+="${pkgs.dash}/bin/dash -c 'echo 0 > /sys/bus/usb/devices/usb9/authorized; echo 1 > /sys/bus/usb/devices/usb9/authorized'"
+ '';
}