Thread (1 message) 1 message, 1 author, 2017-01-26

Re: [PATCH] hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2

From: Benjamin Tissoires <hidden>
Date: 2017-01-26 08:29:34

Possibly related (same subject, not in this thread)

On Jan 24 2017 or thereabouts, Ardinartsev Nikita wrote:

24.01.2017 11:07, Benjamin Tissoires пишет:
quoted
Hi,

On Jan 20 2017 or thereabouts, Ardinartsev Nikita wrote:
quoted
hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=117091
Having a bug link is fine, but please also write a short description of
what you are trying to solve.
quoted
Signed-off-by: Ardinartsev Nikita <redacted>
---
 drivers/hid/hid-lg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c
index c5c5fbe..f1afb6b 100644
--- a/drivers/hid/hid-lg.c
+++ b/drivers/hid/hid-lg.c
@@ -872,7 +872,7 @@ static const struct hid_device_id lg_devices[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
USB_DEVICE_ID_LOGITECH_WINGMAN_FFG),
 		.driver_data = LG_NOGET | LG_FF4 },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
USB_DEVICE_ID_LOGITECH_RUMBLEPAD2),
-		.driver_data = LG_FF2 },
+		.driver_data = LG_FF2 | LG_NOGET },
This looks OK, but I'd like to get the confirmation first that the
rumble effects are still working.

Cheers,
Benjamin
quoted
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
USB_DEVICE_ID_LOGITECH_FLIGHT_SYSTEM_G940),
 		.driver_data = LG_FF3 },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACENAVIGATOR),
--
2.7.4
I just tested vibration with `fftest`:
fftest /dev/input/event15
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES

Device /dev/input/event15 opened
Features:
  * Absolute axes: X, Y, Z, RZ, Hat 0 X, Hat 0 Y,
    [27 00 03 00 00 00 00 00 ]
  * Relative axes:
    [00 00 ]
  * Force feedback effects types: Periodic, Rumble, Gain,
    Force feedback periodic effects: Square, Triangle, Sine,
    [00 00 00 00 00 00 00 00 00 00 03 07 01 00 00 00 ]
  * Number of simultaneous effects: 16

Setting master gain to 75% ... OK
Uploading effect #0 (Periodic sinusoidal) ... OK (id 0)
Uploading effect #1 (Constant) ... Error: Invalid argument
Uploading effect #2 (Spring) ... Error: Invalid argument
Uploading effect #3 (Damper) ... Error: Invalid argument
Uploading effect #4 (Strong rumble, with heavy motor) ... OK (id 1)
Uploading effect #5 (Weak rumble, with light motor) ... OK (id 2)

Effects 0,4,5 are working in the same way as with xpad driver, gamepad is
vibrating. `fftest` is working equivalently for D-mode (after patch) and
X-mode (which always worked). In X-mode `fftest` can't upload effects 1,2,3
either.
Cool. Thanks for testing. Could you please resubmit a v2 of the patch
with an extended commit message which includes also the fact that you
tested the gamepad with fftest and no regressions where observed?

Cheers,
Benjamin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help