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

[Bug] idVendor=2000 #478

Closed
enricozb opened this issue Sep 19, 2023 · 1 comment
Closed

[Bug] idVendor=2000 #478

enricozb opened this issue Sep 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@enricozb
Copy link

Describe the bug
Nintendo switch not connected according to nut.

To Reproduce
Looked at dmesg --follow | rg usb:

[  112.204793] usb 3-4: New USB device found, idVendor=057e, idProduct=2000, bcdDevice= 1.00
[  112.204802] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  112.204805] usb 3-4: Product: Nintendo Switch
[  112.204807] usb 3-4: Manufacturer: Nintendo

Actual behaviour
It looks like the idVendor=0x57e and idProduct=0x2000 pair aren't checked in the code:

while True:
  devs = usb.core.find(idVendor=0x16C0, idProduct=0x27E2, find_all=True)

  if devs is not None:
    for dev in devs:
      return dev

  devs = usb.core.find(idVendor=0x057E, idProduct=0x3000, find_all=True)

  if devs is not None:
    for dev in devs:
      return dev

  time.sleep(1)

Expected behaviour
For my idVendor and idProduct pair to be checked.

NUT version (or git hash):
f0ef3efe1f92b221fb6ced1b9fc04d1ee6efa7b0

Additional context
Other issues make reference to an idVendor=2000:

Am I missing something?

@enricozb enricozb added the bug Something isn't working label Sep 19, 2023
@enricozb
Copy link
Author

Oof my bad, I didn't realize I had to open up tinfoil on the switch. That seems to have fixed the connection issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant