gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
354 stars 199 forks source link

Display (device) power/wakeup via -w option. #174

Closed bobhy closed 10 months ago

bobhy commented 1 year ago

Please pardon the unsolicited PR, and feel free to ignore it if you don't like it...

This change adds an option to lsusb.py to display the device power/wakeup setting along with other attributes. It's triggered by option -w, --wakeup, so there is no change by default.

I was troubleshooting my own system suspend/resume behavior (still am!) and found it convenient to see this setting along with the other device attributes.

bobhy commented 10 months ago

ready for review

gregkh commented 10 months ago

Thanks for the quick fixup!