Comments (5)
@Neverest Please checkout the
poweroff
branch. Any kind of driver termination/shutdown should now power the dongle's LED and all connected controllers off.I'd really appreciate if @NoXPhasma, @andreashuetter or anyone else that still sticks around could test this. I don't want this new feature to cause any problems to the existing functionality of the driver.
Tested it just now by restarting it 6 times either directly to linux or changing to windows. The controller and the adapter LED shutoff instantly. Shutting down also powered it down as it should.
Cant test with more than one controller though. Friend that had one isn't close by anymore.
-- Reboot --
Feb 18 14:11:14 neverest-ubuntu systemd[1]: Started Xbox One Wireless Dongle Driver.
Feb 18 14:11:14 neverest-ubuntu xow[1260]: 2020-02-18 14:11:14 INFO - xow v0.3-18-ge0fff7f ©S
Feb 18 14:11:14 neverest-ubuntu xow[1260]: 2020-02-18 14:11:14 INFO - Dongle plugged in
Feb 18 14:11:14 neverest-ubuntu xow[1260]: 2020-02-18 14:11:14 DEBUG - Firmware already loaded
Feb 18 14:11:14 neverest-ubuntu xow[1260]: 2020-02-18 14:11:14 DEBUG - Chip version: 7632
Feb 18 14:11:14 neverest-ubuntu xow[1260]: 2020-02-18 14:11:14 INFO - Chip address: 62:45:b4:
Feb 18 14:11:14 neverest-ubuntu xow[1260]: 2020-02-18 14:11:14 INFO - Dongle initialized
Feb 18 14:11:27 neverest-ubuntu xow[1260]: 2020-02-18 14:11:27 DEBUG - Client associating: 7e:
Feb 18 14:11:27 neverest-ubuntu xow[1260]: 2020-02-18 14:11:27 INFO - Controller '1' connecte
Feb 18 14:11:27 neverest-ubuntu xow[1260]: 2020-02-18 14:11:27 INFO - Serial number: 02640261
Feb 18 14:11:30 neverest-ubuntu xow[1260]: 2020-02-18 14:11:30 DEBUG - Battery type: 1, level:
Feb 18 14:11:35 neverest-ubuntu xow[1260]: 2020-02-18 14:11:35 DEBUG - Client lost: 1
Feb 18 14:11:35 neverest-ubuntu xow[1260]: 2020-02-18 14:11:35 INFO - Controller '1' disconne
Feb 18 14:11:37 neverest-ubuntu xow[1260]: 2020-02-18 14:11:37 DEBUG - Client associating: 7e:
Feb 18 14:11:37 neverest-ubuntu xow[1260]: 2020-02-18 14:11:37 INFO - Controller '1' connecte
Feb 18 14:11:38 neverest-ubuntu xow[1260]: 2020-02-18 14:11:38 INFO - Serial number: 02640261
Feb 18 14:11:41 neverest-ubuntu xow[1260]: 2020-02-18 14:11:41 DEBUG - Battery type: 1, level:
Feb 18 14:12:04 neverest-ubuntu xow[1260]: 2020-02-18 14:12:04 DEBUG - Battery type: 1, level:
Feb 18 14:12:23 neverest-ubuntu xow[1260]: 2020-02-18 14:12:23 DEBUG - Client lost: 1
Feb 18 14:12:23 neverest-ubuntu xow[1260]: 2020-02-18 14:12:23 INFO - Controller '1' disconne
Feb 18 14:12:42 neverest-ubuntu xow[1260]: 2020-02-18 14:12:42 DEBUG - Client associating: 7e:
Feb 18 14:12:42 neverest-ubuntu xow[1260]: 2020-02-18 14:12:42 INFO - Controller '1' connecte
Feb 18 14:12:42 neverest-ubuntu xow[1260]: 2020-02-18 14:12:42 INFO - Serial number: 02640261
Feb 18 14:12:46 neverest-ubuntu xow[1260]: 2020-02-18 14:12:46 DEBUG - Battery type: 1, level:
Feb 18 14:12:54 neverest-ubuntu xow[1260]: 2020-02-18 14:12:54 DEBUG - Client lost: 1
Feb 18 14:12:54 neverest-ubuntu xow[1260]: 2020-02-18 14:12:54 INFO - Controller '1' disconne
Feb 18 14:13:03 neverest-ubuntu xow[1260]: 2020-02-18 14:13:03 DEBUG - Client associating: 7e:
Feb 18 14:13:03 neverest-ubuntu xow[1260]: 2020-02-18 14:13:03 INFO - Controller '1' connecte
Feb 18 14:13:04 neverest-ubuntu xow[1260]: 2020-02-18 14:13:04 INFO - Serial number: 02640261
Feb 18 14:13:07 neverest-ubuntu xow[1260]: 2020-02-18 14:13:07 DEBUG - Battery type: 1, level:
Feb 18 14:13:13 neverest-ubuntu xow[1260]: 2020-02-18 14:13:13 DEBUG - Terminating device...
Feb 18 14:13:13 neverest-ubuntu systemd[1]: Stopping Xbox One Wireless Dongle Driver...
Feb 18 14:13:13 neverest-ubuntu xow[1260]: 2020-02-18 14:13:13 INFO - Dongle disconnected
Feb 18 14:13:13 neverest-ubuntu systemd[1]: Stopped Xbox One Wireless Dongle Driver.
-- Reboot --
Feb 18 14:15:25 neverest-ubuntu systemd[1]: Started Xbox One Wireless Dongle Driver.
Feb 18 14:15:25 neverest-ubuntu xow[1290]: 2020-02-18 14:15:25 INFO - xow v0.3-18-ge0fff7f ©S
Feb 18 14:15:26 neverest-ubuntu xow[1290]: 2020-02-18 14:15:26 INFO - Dongle plugged in
Feb 18 14:15:26 neverest-ubuntu xow[1290]: 2020-02-18 14:15:26 DEBUG - Firmware already loaded
Feb 18 14:15:26 neverest-ubuntu xow[1290]: 2020-02-18 14:15:26 DEBUG - Chip version: 7632
Feb 18 14:15:26 neverest-ubuntu xow[1290]: 2020-02-18 14:15:26 INFO - Chip address: 62:45:b4:
Feb 18 14:15:26 neverest-ubuntu xow[1290]: 2020-02-18 14:15:26 INFO - Dongle initialized
Feb 18 14:16:22 neverest-ubuntu xow[1290]: 2020-02-18 14:16:22 DEBUG - Client associating: 7e:
Feb 18 14:16:22 neverest-ubuntu xow[1290]: 2020-02-18 14:16:22 INFO - Controller '1' connecte
Feb 18 14:16:23 neverest-ubuntu xow[1290]: 2020-02-18 14:16:23 INFO - Serial number: 02640261
Feb 18 14:16:26 neverest-ubuntu xow[1290]: 2020-02-18 14:16:26 DEBUG - Battery type: 1, level:
Feb 18 14:16:34 neverest-ubuntu xow[1290]: 2020-02-18 14:16:34 DEBUG - Client lost: 1
Feb 18 14:16:34 neverest-ubuntu xow[1290]: 2020-02-18 14:16:34 INFO - Controller '1' disconne
Feb 18 14:16:37 neverest-ubuntu xow[1290]: 2020-02-18 14:16:37 DEBUG - Client associating: 7e:
Feb 18 14:16:37 neverest-ubuntu xow[1290]: 2020-02-18 14:16:37 INFO - Controller '1' connecte
Feb 18 14:16:37 neverest-ubuntu xow[1290]: 2020-02-18 14:16:37 INFO - Serial number: 02640261
Feb 18 14:16:41 neverest-ubuntu xow[1290]: 2020-02-18 14:16:41 DEBUG - Battery type: 1, level:
Feb 18 14:16:45 neverest-ubuntu xow[1290]: 2020-02-18 14:16:45 DEBUG - Terminating device...
Feb 18 14:16:45 neverest-ubuntu systemd[1]: Stopping Xbox One Wireless Dongle Driver...
Feb 18 14:16:45 neverest-ubuntu xow[1290]: 2020-02-18 14:16:45 INFO - Dongle disconnected
Feb 18 14:16:45 neverest-ubuntu systemd[1]: Stopped Xbox One Wireless Dongle Driver.
-- Reboot --
from xow.
Can confirm it works perfectly by stopping the systemd service with one Controller:
Feb 18 20:01:50 NoXP-PC systemd[1]: Started Xbox One Wireless Dongle Driver.
Feb 18 20:01:50 NoXP-PC xow[27061]: 2020-02-18 20:01:50 INFO - xow v0.3-18-ge0fff7f ©Severin v. W.
Feb 18 20:01:51 NoXP-PC xow[27061]: 2020-02-18 20:01:51 INFO - Dongle plugged in
Feb 18 20:01:51 NoXP-PC xow[27061]: 2020-02-18 20:01:51 INFO - Chip address: 62:45:b4:fe:81:16
Feb 18 20:01:51 NoXP-PC xow[27061]: 2020-02-18 20:01:51 INFO - Dongle initialized
Feb 18 20:01:54 NoXP-PC xow[27061]: 2020-02-18 20:01:54 INFO - Controller '1' connected
Feb 18 20:01:54 NoXP-PC xow[27061]: 2020-02-18 20:01:54 INFO - Serial number: 02600108383810
Feb 18 20:02:01 NoXP-PC systemd[1]: Stopping Xbox One Wireless Dongle Driver...
Feb 18 20:02:01 NoXP-PC xow[27061]: 2020-02-18 20:02:01 ERROR - Packet for unconnected controller '1'
Feb 18 20:02:01 NoXP-PC xow[27061]: 2020-02-18 20:02:01 INFO - Dongle disconnected
Feb 18 20:02:01 NoXP-PC xow[27061]: 2020-02-18 20:02:01 ERROR - Packet for unconnected controller '1'
Feb 18 20:02:01 NoXP-PC systemd[1]: xow.service: Succeeded.
Feb 18 20:02:01 NoXP-PC systemd[1]: Stopped Xbox One Wireless Dongle Driver.
Feb 18 20:02:05 NoXP-PC systemd[1]: Started Xbox One Wireless Dongle Driver.
Feb 18 20:02:05 NoXP-PC xow[27151]: 2020-02-18 20:02:05 INFO - xow v0.3-18-ge0fff7f ©Severin v. W.
Feb 18 20:02:05 NoXP-PC xow[27151]: 2020-02-18 20:02:05 INFO - Dongle plugged in
Feb 18 20:02:05 NoXP-PC xow[27151]: 2020-02-18 20:02:05 INFO - Chip address: 62:45:b4:fe:81:16
Feb 18 20:02:05 NoXP-PC xow[27151]: 2020-02-18 20:02:05 INFO - Dongle initialized
Feb 18 20:02:09 NoXP-PC xow[27151]: 2020-02-18 20:02:09 INFO - Controller '1' connected
Feb 18 20:02:09 NoXP-PC xow[27151]: 2020-02-18 20:02:09 INFO - Serial number: 02600108383810
Feb 18 20:02:12 NoXP-PC systemd[1]: Stopping Xbox One Wireless Dongle Driver...
Feb 18 20:02:12 NoXP-PC xow[27151]: 2020-02-18 20:02:12 ERROR - Packet for unconnected controller '1'
Feb 18 20:02:12 NoXP-PC xow[27151]: 2020-02-18 20:02:12 INFO - Dongle disconnected
Feb 18 20:02:12 NoXP-PC xow[27151]: 2020-02-18 20:02:12 ERROR - Packet for unconnected controller '1'
Feb 18 20:02:12 NoXP-PC systemd[1]: xow.service: Succeeded.
Feb 18 20:02:12 NoXP-PC systemd[1]: Stopped Xbox One Wireless Dongle Driver.
from xow.
Yes, that feature works by sending a special message to all controllers when the system is shut down (on Windows). I've tried adding a signal handler for Linux' SIGTERM
signal (which is sent on program termination), but there are some limitations that make the actual implementation pretty difficult.
from xow.
@Neverest Please checkout the poweroff
branch. Any kind of driver termination/shutdown should now power the dongle's LED and all connected controllers off.
I'd really appreciate if @NoXPhasma, @andreashuetter or anyone else that still sticks around could test this. I don't want this new feature to cause any problems with the existing functionality of the driver.
from xow.
Thanks for your feedback, I've merged the changes into master
. Please reopen in case you encounter any bugs.
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.