Comments (5)
The error is thrown as a result of the call to libusb_reset_device
:
Line 46 in b58edb4
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.
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.
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.
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 wholeif (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.
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)
- make error 127 - firmware.bin HOT 1
- All my controllers stopped working in steam
- The controller freezes HOT 3
- Controller immediately disconnects after connecting HOT 2
- make: *** No targets specified and no makefile found. Stop. HOT 4
- How to disable vibration
- Debian packaginfg HOT 1
- Cabextract missing
- xow uses 50% CPU on idle HOT 2
- Could not resolve host: download.windowsupdate.com
- XOW Not connecting the controller to the usb dongle HOT 1
- fix bug in install instructions HOT 1
- Issues Installing on steamdeck
- Does it detect xbox controller motion?
- GipMessageClass Enum
- Core dump seconds after connecting controller
- Unable to Migrate from `xow` to `xone` HOT 2
- #include <cstddef>
- xow xbox elite not working debian 12
- Problem with windows wireless dongle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xow.