Package: usbutils
Version: 1:010-3
Severity: wishlist
File: /usr/bin/lsusb

I have an idea.

Real (arboretum) trees also have branches with no leaves. Looking at

# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 10: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 11: Dev 3, If 0, Class=Hub, Driver=hub/4p, 12M
        |__ Port 1: Dev 4, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 3: Dev 5, If 0, Class=Human Interface Device, 
Driver=usbhid, 1.5M
            |__ Port 4: Dev 6, If 0, Class=Human Interface Device, 
Driver=usbhid, 1.5M
            |__ Port 4: Dev 6, If 1, Class=Human Interface Device, 
Driver=usbhid, 1.5M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M

Apparently all the major tree "limbs" are shown (Bus 1 2 3 4),
and then only minor "branches" that contain "leaves", and those leaves.

However sometimes the user wants to get a feel for the full extent of
the tree, even if there are no devices attached to those parts.

Yes this could add 10 times more lines of (useless) output, but it would
be a great option.

I.e., above there must be a Port 9 etc. that is being hidden from us...

Reply via email to