Last active
November 26, 2019 19:55
-
-
Save LanternD/4f237e09d86ed5432ddf13266957c132 to your computer and use it in GitHub Desktop.
Prevent the 10-second "Device or Resource Busy" on Ubuntu for STM32 USB Virtual Comm Port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prevent the notification "Device or resource busy" when the STM32 is connected to the System for the first 10 seconds. | |
# Put the file under /etc/udev/rules.d/ | |
# Reload the rules with: | |
# $ sudo udevadm control --reload | |
# $ sudo udevadm trigger | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ENV{ID_MM_DEVICE_IGNORE}="1"\ | |
MODE:="0666", \ | |
SYMLINK+="stm32_vcp_%n" | |
#20191126 Update: Just "sudo systemctl stop ModemManager.service", don't waste your time with the device rules. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment