My app was working fine, then I did some upgrade and fix commands on my Linux box and now the USB port randomly disconnects, but reconnects within seconds.
The port connection shows up as,
"cdc_acm 3-2:1.0: ttyACM0: USB ACM device"
in dmesg and the disconnect as,
"[12441.129776] usb 3-2: USB disconnect, device number 21"
where the device number varies. I'm running kernel "5.11.0-46-generic #51~20.04.1-Ubuntu SMP" on an i7-5820K CPU @ 3.30GHz which was running my app perfectly two weeks ago and I reverted the app to that version and it manifests the same failure, so it's not the changes I made to the app since the previous working version is now broken.
I don't know if I can rule out hardware failure since the Wi-Fi USB dongle and other USB devices seem to be working fine. I was hoping I could kill all features that take up the CPU resources for cosmetic stuff and increase anything that increases performance, even if the GUI's become less responsive. I do have a headset plugged in which I don't use. I didn't think I needed to unplug it because I assumed it would be ignored, though I still have to reset the sound to direct audio to "Line Out - Built-in Audio" because it defaults to "Digital Output (S/PDIF) - USB Audio Device" every time I boot up. The Audio never seemed to be a problem before, but I just unplugged it to simplify the troubleshooting.