user48956
user48956

Reputation: 15788

Linux: Possible to detect if USB device is connected and charging, but switched off

In Linux, is it possible to detect whether a USB device (such as a cellphone) is physically connected, even if the device is switched off (USB microcontroller on the peripheral not powered)?

Upvotes: 2

Views: 1276

Answers (1)

jap1968
jap1968

Reputation: 7763

I would suggest to try with lsusb, with max verbose output, i.e:

$ sudo lsusb -vv

Alternatively, if you already are root:

# lsusb -vv

Upvotes: 2

Related Questions