I have a half dead H340 (a more detailed topic is available at Misticriver) which thinks it's perpetually connected via USB, both in rockbox USB bootloader mode, and stock firmware.
My question, how does the software know there is a USB cable connected? Does it receive a signal from the USB controller?