GithubHelp home page GithubHelp logo

Comments (5)

medusalix avatar medusalix commented on July 16, 2024

The error is thrown as a result of the call to libusb_reset_device:

error = libusb_reset_device(handle);

I'm not even sure if we need to reset the device, I included that statement just to be on the safe side (considering the case that some other driver misconfigures the device). You could try removing that line, it might work.

from xow.

andreashuetter avatar andreashuetter commented on July 16, 2024

Wow, this is great!
I just commented out the above line as suggested by you, recompiled xow and now it works! I can plug the Xbox One Wireless Adapter into the USB-Port of my Steam Link now and forward it to my Linux machine. This is exactly what I wanted, thank you!

Do you think this line should be removed generally for the next release, or is it better to keep that line (but don't let the service crash if it returns said error)?

from xow.

medusalix avatar medusalix commented on July 16, 2024

Do you think this line should be removed generally for the next release, or is it better to keep that line (but don't let the service crash if it returns said error)?

Yeah, I'm going to remove that line in the next commit. It probably won't affect the operation of the driver in any negative way.

EDIT: I just tried out the change in a virtual machine and xow crashed with LIBUSB_ERROR_BUSY. So I guess we'll have to keep that line. Did you try removing just the whole if (error) statement?

from xow.

andreashuetter avatar andreashuetter commented on July 16, 2024

EDIT: I just tried out the change in a virtual machine and xow crashed with LIBUSB_ERROR_BUSY. So I guess we'll have to keep that line. Did you try removing just the whole if (error) statement?

Well, you mean like so:

    error = libusb_reset_device(handle);
/*
    if (error)
    {
        libusb_close(handle);
        libusb_exit(nullptr);

        throw UsbException("Error resetting device: ", error);
    }
*/

In this case xow (when forwarding the USB-Dongle via VirtualHere) crashes with:

2020-01-25 20:27:44 INFO  - xow v0.3-2-gb6b635a ©Severin v. W.
2020-01-25 20:27:44 ERROR - Error opening device: LIBUSB_ERROR_ACCESS

But to be honest, this particular issue became less important to me personally as of today, because the latest Steam Link Software Build now has xow integrated. So I don't need to use VirtualHere for this use case anymore, because the dongle now works directly on the Steam Link without the need to forward it to the other machine. Of course it would be nice to have xow not crashing when connecting a VirtualHere-forwarded dongle. But on the other hand, if such a change would mean to make xow potentially more unstable, then I'd say that's not worth it.

I won't feel offended if you decide to leave this as it is for now and concentrate on other things first (for example making audio work over the adapter, or what else).

I am so glad you made this thing, and now that it's also working on Steam Link I am even more happy.

from xow.

medusalix avatar medusalix commented on July 16, 2024

But to be honest, this particular issue became less important to me personally as of today, because the latest Steam Link Software Build now has xow integrated.

Oh wow, that's pretty cool 😃.

But on the other hand, if such a change would mean to make xow potentially more unstable, then I'd say that's not worth it.

Yeah, let's leave it as it is.

from xow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.