* [PATCH] hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2 @ 2017-01-20 19:20 Ardinartsev Nikita 2017-01-24 8:07 ` Benjamin Tissoires 0 siblings, 1 reply; 3+ messages in thread From: Ardinartsev Nikita @ 2017-01-20 19:20 UTC (permalink / raw) To: linux-input; +Cc: Benjamin Tissoires, Jiri Kosina hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=117091 Signed-off-by: Ardinartsev Nikita <ardinar23@gmail.com> --- 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 }, { 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 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2 2017-01-20 19:20 [PATCH] hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2 Ardinartsev Nikita @ 2017-01-24 8:07 ` Benjamin Tissoires [not found] ` <4444f83d-f7d2-0bed-5dd2-e44a068ffbfd@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Benjamin Tissoires @ 2017-01-24 8:07 UTC (permalink / raw) To: ardinar23; +Cc: linux-input, Jiri Kosina Hi, On Jan 20 2017 or thereabouts, Ardinartsev Nikita wrote: > 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. > Signed-off-by: Ardinartsev Nikita <ardinar23@gmail.com> > --- > 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 > { 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <4444f83d-f7d2-0bed-5dd2-e44a068ffbfd@gmail.com>]
* Re: [PATCH] hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2 [not found] ` <4444f83d-f7d2-0bed-5dd2-e44a068ffbfd@gmail.com> @ 2017-01-26 8:29 ` Benjamin Tissoires 0 siblings, 0 replies; 3+ messages in thread From: Benjamin Tissoires @ 2017-01-26 8:29 UTC (permalink / raw) To: ardinar23; +Cc: linux-input, Jiri Kosina On Jan 24 2017 or thereabouts, Ardinartsev Nikita wrote: > > > 24.01.2017 11:07, Benjamin Tissoires пишет: > > Hi, > > > > On Jan 20 2017 or thereabouts, Ardinartsev Nikita wrote: > > > 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. > > > > > Signed-off-by: Ardinartsev Nikita <ardinar23@gmail.com> > > > --- > > > 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 > > > > > { 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-26 8:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 19:20 [PATCH] hid-lg: Fixes immediate disconnection of Logitech Rumblepad 2 Ardinartsev Nikita
2017-01-24 8:07 ` Benjamin Tissoires
[not found] ` <4444f83d-f7d2-0bed-5dd2-e44a068ffbfd@gmail.com>
2017-01-26 8:29 ` Benjamin Tissoires
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).