GithubHelp home page GithubHelp logo

Comments (11)

medusalix avatar medusalix commented on May 23, 2024

I've done some testing and it seems like libusb is returning LIBUSB_TRANSFER_NO_DEVICE after waking up the computer. This usually only happens when you physically remove the dongle and causes xow to stop all USB transfers. I'll probably have to make some adjustments to the USB code to handle this case.

from xow.

medusalix avatar medusalix commented on May 23, 2024

@webodan Please try out the suspend branch (make sure that the updated service definition gets loaded). While I couldn't find a way for xow to recover after a suspend, I made sure that the service restarts when the system wakes up.

from xow.

medusalix avatar medusalix commented on May 23, 2024

@NoXPhasma and @andreashuetter, could you try this out for me? I made some significant changes to the USB backend (making it simpler) which will definitely need testing. As an inevitable result of fixing the suspend issue, xow does now terminate when you wake from sleep or unplug the dongle and is then restarted automatically by systemd.

from xow.

NoXPhasma avatar NoXPhasma commented on May 23, 2024

The service stops when the dongle gets removed, but does not restart when I plug in the dongle again.

Mär 15 04:30:31 NoXP-PC systemd[1]: Started Xbox One Wireless Dongle Driver.
Mär 15 04:30:31 NoXP-PC xow[533968]: 2020-03-15 04:30:31 INFO  - xow v0.3-27-g28cbc4d ©Severin v. W.
Mär 15 04:30:31 NoXP-PC xow[533968]: 2020-03-15 04:30:31 INFO  - Dongle plugged in
Mär 15 04:30:31 NoXP-PC xow[533968]: 2020-03-15 04:30:31 INFO  - Wireless address: 62:45:b4:fe:81:16
Mär 15 04:30:31 NoXP-PC xow[533968]: 2020-03-15 04:30:31 INFO  - Dongle initialized
Mär 15 04:30:35 NoXP-PC xow[533968]: 2020-03-15 04:30:35 ERROR - Error in bulk read: LIBUSB_ERROR_NO_DEVICE
Mär 15 04:30:35 NoXP-PC xow[533968]: 2020-03-15 04:30:35 ERROR - Error in bulk read: LIBUSB_ERROR_NO_DEVICE
Mär 15 04:30:35 NoXP-PC systemd[1]: xow.service: Succeeded.

from xow.

medusalix avatar medusalix commented on May 23, 2024

Make sure that you run systemctl enable xow and systemctl restart xow after installing the branch to reload the service config.

from xow.

NoXPhasma avatar NoXPhasma commented on May 23, 2024

Yes, I've done that. It just doesn't restart itself after I remove the dongle and reconnect it.

from xow.

NoXPhasma avatar NoXPhasma commented on May 23, 2024

Okay I found the issue, sudo make install won't install/override the new service file which includes Restart=always. Once I update the service file manually it works.

from xow.

medusalix avatar medusalix commented on May 23, 2024

It should overwrite them. When I checkout master, do install and then checkout suspend followed by install it replaces the contents of the service.

from xow.

NoXPhasma avatar NoXPhasma commented on May 23, 2024

I expected the same here as well, but for some reason it didn't. I even tried to install it two times to get sure.

from xow.

medusalix avatar medusalix commented on May 23, 2024

Oh well, I'm just going to add a notice to run sudo make uninstall before updating to the README to make sure everyone's covered.

from xow.

medusalix avatar medusalix commented on May 23, 2024

Merged into master (196371d).

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.