Skip to content

Instantly share code, notes, and snippets.

@LanternD
Last active November 26, 2019 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LanternD/4f237e09d86ed5432ddf13266957c132 to your computer and use it in GitHub Desktop.
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
# 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