l aergia.r: reinit usb after docking

This commit is contained in:
lassulus 2023-07-08 14:59:15 +02:00
parent 9b9e64fb6b
commit 4aff1a4985

View File

@ -99,4 +99,8 @@
# firefox touchscreen support # firefox touchscreen support
environment.sessionVariables.MOZ_USE_XINPUT2 = "1"; 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'"
'';
} }