mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 07:12:08 +02:00
Merge branch 'avoid-modem-resets' into 'master'
udev: add udev rule to configure modem USB See merge request mobian1/devices/eg25-manager!5
This commit is contained in:
1
udev/80-modem-eg25.rules
Normal file
1
udev/80-modem-eg25.rules
Normal file
@@ -0,0 +1 @@
|
||||
ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="02", RUN+="/usr/bin/configure-modem-usb"
|
8
udev/configure-usb-modem
Normal file
8
udev/configure-usb-modem
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Avoid USB resets
|
||||
echo "auto" > /sys/bus/usb/devices/3-1/power/control
|
||||
echo "3000" > /sys/bus/usb/devices/3-1/power/autosuspend_delay_ms
|
||||
echo "enabled" > /sys/bus/usb/devices/3-1/power/wakeup
|
||||
echo "1" > /sys/bus/usb/devices/3-1/avoid_reset_quirk
|
||||
echo "0" > /sys/bus/usb/devices/3-1/power/persist
|
Reference in New Issue
Block a user