mirror of
https://github.com/xboot/xfel.git
synced 2025-05-09 02:11:06 +08:00
Disable autosuspend on FEL devices
Linux may sometimes try to suspend sunxi fel, and fail to resume them, leading to a USB reset when trying to do libusb_open, and libusb will fail. This commit disables autosuspend feature of all connected FEL devices by a udev rule.
This commit is contained in:
parent
66d81091fa
commit
ba9ad2093a
@ -3,3 +3,5 @@
|
|||||||
# with the command "sudo udevadm control --reload"
|
# with the command "sudo udevadm control --reload"
|
||||||
|
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE="666", GROUP="plugdev"
|
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE="666", GROUP="plugdev"
|
||||||
|
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", TEST=="power/autosuspend", ATTR{power/autosuspend}="-1"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user