linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: xpad - Update xboxone fw2015 init packet
@ 2020-04-15 18:59 LuK1337
  2020-04-19  4:16 ` Dmitry Torokhov
  0 siblings, 1 reply; 14+ messages in thread
From: LuK1337 @ 2020-04-15 18:59 UTC (permalink / raw)
  Cc: LuK1337, Dmitry Torokhov, Allison Randal, Greg Kroah-Hartman,
	Thomas Gleixner, Richard Fontana, linux-input, linux-kernel

Appending { 0x05, 0x20, 0x02, 0x0f, 0x06 } to
xboxone_fw2015_init fixes an issue where the
controller is somewhat stuck in bluetooth
mode until you plug it into Windows PC.

Signed-off-by: LuK1337 <priv.luk@gmail.com>
---
 drivers/input/joystick/xpad.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 6b40a1c68f9f..894fa81f717a 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -455,7 +455,8 @@ struct xboxone_init_packet {
  * or later firmware installed (or present from the factory).
  */
 static const u8 xboxone_fw2015_init[] = {
-	0x05, 0x20, 0x00, 0x01, 0x00
+	0x05, 0x20, 0x00, 0x01, 0x00,
+	0x05, 0x20, 0x02, 0x0f, 0x06
 };
 
 /*
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-04-22 21:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-15 18:59 [PATCH] Input: xpad - Update xboxone fw2015 init packet LuK1337
2020-04-19  4:16 ` Dmitry Torokhov
2020-04-19  7:46   ` LuK1337
2020-04-19 18:01     ` Dmitry Torokhov
     [not found]       ` <CAJmEJMzzFO1G=iQy=EfwQ89iWMjpcpupBjBkG29aigqYsc36bA@mail.gmail.com>
2020-04-19 18:22         ` LuK1337
2020-04-21  4:56       ` Cameron Gutman
2020-04-21  9:24         ` [PATCH] Input: xpad - Add custom init packet for Xbox One S controllers LuK1337
2020-04-21 18:08           ` Dmitry Torokhov
2020-04-22  0:54             ` Cameron Gutman
2020-04-22  7:45               ` LuK1337
2020-04-22  7:46               ` LuK1337
2020-04-22  7:52               ` LuK1337
2020-04-22 17:20                 ` Cameron Gutman
2020-04-22 21:13                   ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).