Skip to content

Commit

Permalink
Arch Linux Fix autosuspend send by TLP daemon (#151)
Browse files Browse the repository at this point in the history
* fix problem when linux kernel set to autosuspend the hydrabus
* fix: add numbering
* fix: typo in comments
* fix: start numbering from n+1
  • Loading branch information
dummys committed Jan 9, 2024
1 parent 45391d2 commit 3eceaa9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions utils/udev-rules/09-hydrabus-arch_linux.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# UDEV Rules for HydraBus boards tested on Arch Linux 27 Nov 2023, http:https://www.hydrabus.com
#
# To install, type this command in a terminal:
# sudo cp 09-hydrabus-arch_linux.rules /etc/udev/rules.d/09-hydrabus-arch_linux.rules
#
# disable ModemManager
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60a7", ENV{ID_MM_DEVICE_IGNORE}="1"
# disable autosuspend USB from kernel (solve TLP issue)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60a7", TEST=="power/control", ATTR{power/control}="on"
# create a symlink into /dev/hydrabusX where X is the number of hydrabus
SUBSYSTEM=="tty", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60a7", PROGRAM="/bin/sh -c 'echo $$((%n+1))'", SYMLINK+="hydrabus%c"

0 comments on commit 3eceaa9

Please sign in to comment.