Files
eg25-manager/udev/configure-usb-modem
Dylan Van Assche 235eff02ac udev: add udev rule to configure modem USB
Quectel advises to configure the USB autosuspend feature as:
- power/control: auto
- power/autosuspend_delay_ms: 3000

Futhermore, the following settings are also needed:
- power/wakeup: enabled
- power/persist: 0
- avoid_reset_quirk: 1
2021-02-16 07:12:01 +01:00

9 lines
308 B
Bash

#!/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