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

Xbox controller model 1914 keep disconecting and reconnecting #170

Open
benjdero opened this issue May 13, 2021 · 5 comments
Open

Xbox controller model 1914 keep disconecting and reconnecting #170

benjdero opened this issue May 13, 2021 · 5 comments

Comments

@benjdero
Copy link

I bought the bundle with Xbox One Series X controller (model 1914) and Windows Wireless Adapter.

I used them countless hours on Windows without any problem. It have latest available firmware.

When using it on my RetroPie setup on Raspberry Pi thanks to xow, it seems that the controller frequently disconnect. Not sure if related to #144

The share button also can't be used, I wanted to set it as the HotKey button on EmulationStation, but it doesn't seems to be recognized.

pi@retropie:~ $ sudo systemctl status xow
● xow.service - Xbox One Wireless Dongle Driver
   Loaded: loaded (/etc/systemd/system/xow.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-05-13 14:29:19 CEST; 18min ago
 Main PID: 421 (xow)
    Tasks: 6 (limit: 1633)
   CGroup: /system.slice/xow.service
           └─421 /usr/local/bin/xow

mai 13 14:47:35 retropie xow[421]: 2021-05-13 14:47:35 DEBUG - Hardware version: 1032.1.1.1
mai 13 14:47:35 retropie xow[421]: 2021-05-13 14:47:35 INFO  - Serial number: 09713353907047
mai 13 14:47:37 retropie xow[421]: 2021-05-13 14:47:37 INFO  - Battery level: medium
mai 13 14:47:46 retropie xow[421]: 2021-05-13 14:47:46 INFO  - Controller '1' disconnected
mai 13 14:47:55 retropie xow[421]: 2021-05-13 14:47:55 INFO  - Controller '1' connected
mai 13 14:47:55 retropie xow[421]: 2021-05-13 14:47:55 INFO  - Device announced, product id: 0b12
mai 13 14:47:55 retropie xow[421]: 2021-05-13 14:47:55 DEBUG - Firmware version: 5.5.2641.0
mai 13 14:47:55 retropie xow[421]: 2021-05-13 14:47:55 DEBUG - Hardware version: 1032.1.1.1
mai 13 14:47:55 retropie xow[421]: 2021-05-13 14:47:55 INFO  - Serial number: 09713353907047
mai 13 14:47:57 retropie xow[421]: 2021-05-13 14:47:57 INFO  - Battery level: medium
@ebbit1q
Copy link

ebbit1q commented May 13, 2021

this issue is most definitely the same as #144

I wish we had a solution for it but right now I'm using the new controller wired while I can use the old model wireless with the same dongle.

@benjdero
Copy link
Author

This is kinda annoying. When using xow and wireless connected controller I can't use the "power" button as the "hotkey" button for retroarch. Is there any chance you add support for the "share" button?

@OriginLegend
Copy link

OriginLegend commented Sep 17, 2021

Not sure if this issue is related to one I am facing (seems like it is).

For me the issue was the empty-packet received by the driver results in an automatic disconnect:
https://github.com/medusalix/xow/blob/master/dongle/dongle.cpp#L272

As a result, I added a build-flag to disable this behavior: EMPTY_PACKET_DISCONNECT
Pull-Request: #185

If you want to test it make sure you clean your workspace and rebuild with this flag:
make clean
make BUILD=RELEASE EMPTY_PACKET_DISCONNECT=0

Let me know if this resolves the issues for y'all as well

@Yionnara
Copy link

not working for me ;(

[00:43]root@apta-lap-004-t:~/xow [master] $ make clean
make BUILD=RELEASE EMPTY_PACKET_DISCONNECT=0
rm -f xow xow.o controller/controller.o controller/gip.o controller/input.o dongle/dongle.o dongle/mt76.o dongle/usb.o utils/log.o utils/reader.o xow.d controller/controller.d controller/gip.d controller/input.d dongle/dongle.d dongle/mt76.d dongle/usb.d utils/log.d utils/reader.d
rm -f firmware.sh
rm -f xow.service
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o xow.o xow.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o controller/controller.o controller/controller.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o controller/gip.o controller/gip.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o controller/input.o controller/input.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o dongle/dongle.o dongle/dongle.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o dongle/mt76.o dongle/mt76.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o dongle/usb.o dongle/usb.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o utils/log.o utils/log.cpp
g++  -Wall -Wpedantic -std=c++11 -MMD -MP -O3 -DVERSION=\"v0.5-36-gd335d60\" -DFIRMWARE=\"/lib/firmware/xow_dongle.bin\" -c -o utils/reader.o utils/reader.cpp
g++  -o xow xow.o controller/controller.o controller/gip.o controller/input.o dongle/dongle.o dongle/mt76.o dongle/usb.o utils/log.o utils/reader.o -lpthread -lusb-1.0
sed "s|#FIRMWARE#|/lib/firmware/xow_dongle.bin|" install/firmware.sh.in > firmware.sh
sed 's|#BINDIR#|/usr/local/bin|' install/service.in > xow.service
[00:43]root@apta-lap-004-t:~/xow [master] $ service xow stop
[00:43]root@apta-lap-004-t:~/xow [master] $ ./xow 
2024-09-17 00:43:35 INFO  - xow v0.5-36-gd335d60 ©Severin v. W.
2024-09-17 00:43:35 INFO  - Waiting for device...
2024-09-17 00:43:36 INFO  - Wireless address: 62:45:b5:06:47:ab
2024-09-17 00:43:36 INFO  - Dongle initialized
2024-09-17 00:43:45 INFO  - Pairing enabled
2024-09-17 00:43:45 INFO  - Pairing enabled
2024-09-17 00:43:45 INFO  - Pairing enabled
2024-09-17 00:43:46 INFO  - Controller '1' connected
2024-09-17 00:43:47 INFO  - Device announced, product id: 0b12
2024-09-17 00:43:47 INFO  - Serial number: 09710509793338
2024-09-17 00:43:47 INFO  - Battery level: medium
2024-09-17 00:44:19 INFO  - Controller '1' disconnected
2024-09-17 00:44:26 INFO  - Controller '1' connected
2024-09-17 00:44:26 INFO  - Device announced, product id: 0b12
2024-09-17 00:44:26 INFO  - Serial number: 09710509793338
2024-09-17 00:44:27 INFO  - Battery level: medium

@Yionnara
Copy link

I think it works fine when it is used, but keep disconnecting while is not, i dont have any problem since i launch a game

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants