Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
Linux - How to determine the power consumption of attached USB devices (work for QNAP as well)
June 1, 2022 4:07 PM
While trying to hook up too many USB drives to my Linux machine, I figured the external USB drives may consume too much power.
So how do we find out how much power these devices chew?
Well, using lsusb we can pull a ton of info, including the max power draw of a connected device.
To minimize the info to just device names and power draw, try this:
lsusb -v |grep '\ Device\ \|MaxPower'
Example output on my QNAP:
Bus 003 Device 002: ID 04e8:61c7 Samsung Electronics Co., Ltd
Bus 003 Device 004: ID 1058:2667 Western Digital Technologies, Inc.
Bus 003 Device 003: ID 1058:0748 Western Digital Technologies, Inc.
Bus 003 Device 005: ID 1058:2667 Western Digital Technologies, Inc.
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1005:b155 Apacer Technology, Inc.
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub