Page 1 of 1
Forum

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 dete...
 
Share:
Notifications
Clear all

Linux - How to determine the power consumption of attached USB devices (work for QNAP as well)


 Hans
(@hans)
Noble Member Admin
Joined: 9 years ago
Posts: 2201
Topic starter  

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.

lsusb -v

 

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 
    MaxPower               36mA
Bus 003 Device 004: ID 1058:2667 Western Digital Technologies, Inc. 
    MaxPower              224mA
Bus 003 Device 003: ID 1058:0748 Western Digital Technologies, Inc. 
    MaxPower              224mA
Bus 003 Device 005: ID 1058:2667 Western Digital Technologies, Inc. 
    MaxPower              224mA
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    MaxPower                0mA
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    MaxPower                0mA
Bus 001 Device 003: ID 1005:b155 Apacer Technology, Inc. 
    MaxPower              300mA
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. 
    MaxPower              100mA
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    MaxPower                0mA

ReplyQuote

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: