Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Only Connected Devices #852

Open
jtmullen opened this issue Feb 1, 2024 · 1 comment
Open

List Only Connected Devices #852

jtmullen opened this issue Feb 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jtmullen
Copy link

jtmullen commented Feb 1, 2024

I have been using usbipd for connecting devices to wsl. Since updating to a new version with the changed syntax one thing that has been a bit frustrating is that the usbipd list command prints out all the connected devices and persisted devices (which in my case is dozens). The old usbipd wsl list command just showed the connected devices. The connected devices is all I am interested in seeing so I can get the busid, and now I have to scroll up to find them since they end up off screen due to the long list of persisted devices.

I think an option on the list command to only list connected devices would be very helpful.

@dorssel dorssel added the enhancement New feature or request label Feb 3, 2024
@dorssel
Copy link
Owner

dorssel commented Feb 3, 2024

That makes sense, but you'll have to wait a bit. It's not high on the priority list.

For the time being, you can remove some of the persisted devices (if you don't need/use) them anymore with usbipd unbind --guid, or maybe even all of them in one go with usbipd unbind --all. Alternatively, you could list as outlined in https://github.com/dorssel/usbipd-win/wiki/Automation#powershell. Something like

Get-UsbipdDevice | Where-Object {$_.IsConnected} | Format-Table BusId,Description,IsBound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants