Thread (18 messages) 18 messages, 2 authors, 2025-01-21
STALE497d
Revisions (5)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v1 [diff vs current]
  4. v2 [diff vs current]
  5. v3 current

[PATCH v3 04/11] Input: xpad - add support for Xbox ONE liquid metal controller

From: Pavel Rojtberg <hidden>
Date: 2025-01-07 19:28:39
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

From: Andrei Ilyashenko <redacted>

I found that my controller wasn't working with this driver.
The LED would light up and it could rumble but was not registering
any button presses or joystick movements. I suspected the problem might
be that it was not being sent some required init packet so I tried
sending the packets being used in xboxone_init_packets and found that
sending xboxone_pdp_auth got the controller working.
At least for my controller xboxone_pdp_led_on was not strictly
necessary but I decided to follow
the same pattern used by the other two controllers.

Signed-off-by: Andrei Ilyashenko <redacted>
Signed-off-by: Pavel Rojtberg <redacted>
---
 drivers/input/joystick/xpad.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 7985b7a5cf0e..d1b771457b51 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -687,7 +687,9 @@ static const struct xboxone_init_packet xboxone_init_packets[] = {
 	XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
 	XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
 	XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_led_on),
+	XBOXONE_INIT_PKT(0x20d6, 0xa01a, xboxone_pdp_led_on),
 	XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_auth),
+	XBOXONE_INIT_PKT(0x20d6, 0xa01a, xboxone_pdp_auth),
 	XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
 	XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
 	XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help