Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch Linux Fix autosuspend send by TLP daemon #151

Merged
merged 4 commits into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"