nodemcu on linux mint- Serial port problems

Hello,

I have two systems running linux mint. Laptop running LM 18.1 cinnamon with arduino 1.8.13; also have older desktop running LM 18.1 cinnamon but with arduino 1.8.12

Used the desktop for a previous esp8266/nodemcu project. It is slow, so I thought I'd switch to faster laptop. Using the same usb cable on both systems with the same nodemcu, and with esp 2.7.3 board manager on both systems--- only the old desktop system can find the nodemcu on a serial port so that i can flash it.

On the newer laptop i have serial ports listed, but nothing is ever checked when i plug in the board. Plugging direct into laptop usb ports, no hubs.

Restarted computer, restarted arduino ide, unplugged board, reset board, tried board flash button, no pins connected to the board. Rechecked I could flash with old desktop...I could. Dialout permission is ok.

Looking for advice.

Thanks!

I should also say that if I unplug the nodemcu and plug in an arduino uno, the uno is listed on the serial port without an issue.

What does lsusb show?

What does dmesg show?

Have you eliminated the usb cable from enquiries? (Same cable works with old desktop?)

~ $ lsusb
Bus 002 Device 004: ID 1199:9013 Sierra Wireless, Inc.
Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 04f2:b221 Chicony Electronics Co., Ltd integrated camera
Bus 001 Device 005: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 004: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 015: ID 17ef:602e Lenovo
Bus 001 Device 014: ID 17ef:602d Lenovo
Bus 001 Device 013: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So in the many lines below I do see "539.673483] usb 1-1.1-port1: Cannot enable. Maybe the USB cable is bad?" However the same usb cable works when flashing the same nodemcu board on my older desktop.

~ $ dmesg
I had to append this as the code exceeded the max length for the post. However here is what terminal flagged:

[ 539.648005] usb 1-1.1: clear tt 1 (0060) error -71
[ 539.652484] usb 1-1.1: clear tt 2 (0080) error -71
[ 539.656488] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.660738] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.664992] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.669239] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.673479] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.673483] usb 1-1.1-port1: Cannot enable. Maybe the USB cable is bad?
[ 539.677728] usb 1-1.1-port1: cannot disable (err = -71)
[ 539.681977] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.686239] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.690488] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.694748] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.698979] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.698984] usb 1-1.1-port1: Cannot enable. Maybe the USB cable is bad?
[ 539.703229] usb 1-1.1-port1: cannot disable (err = -71)
[ 539.707477] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.711741] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.715990] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.720236] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.724478] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.724482] usb 1-1.1-port1: Cannot enable. Maybe the USB cable is bad?
[ 539.728728] usb 1-1.1-port1: cannot disable (err = -71)
[ 539.732986] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.737238] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.741487] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.745727] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.749984] usb 1-1.1-port1: cannot reset (err = -71)
[ 539.749989] usb 1-1.1-port1: Cannot enable. Maybe the USB cable is bad?
[ 539.754236] usb 1-1.1-port1: cannot disable (err = -71)
[ 539.758491] usb 1-1.1-port1: cannot disable (err = -71)
[ 539.762742] usb 1-1.1-port2: cannot reset (err = -71)
[ 539.766992] hub 1-1.1:1.0: hub_ext_port_status failed (err = -71)
[ 539.771235] usb 1-1.1-port2: cannot reset (err = -71)
[ 539.773986] usb 1-1.1: USB disconnect, device number 3
[ 539.773991] usb 1-1.1.1: USB disconnect, device number 6
[ 539.775482] usb 1-1.1-port2: cannot reset (err = -71)

It seems like one of the components involved is on the edge of failing, so it works with some combinations of other components/system but not others. Have you tried other usb cables and other usb ports?

When looking at lsusb and dmesg output, it's clearer to look at before vs after plugging in the device to what changes/appears.