Re: [PATCH v3 5/7] HID: hid-lenovo-go: normalize calibration failure status
From: Derek J. Clark
Date: Wed Sep 02 2026 - 08:46:53 EST
On September 1, 2026 10:06:18 AM PDT, Aditya <mradityadash@xxxxxxxxx> wrote:
>Hi Derek,
>
>Just to clarify, this behaviour was seen when sending a left
>calibration joystick stop command when no calibration was
>being performed.
>
>Sending a respective start command returns after 10 seconds
>with the error codes you have provided.
>
>Here are the exact requests and responses. Consider ellipsis
>to mean that the rest of it is zeros:
>
>Left joystick calibration start:
>Request:
> 05 00 0c 04 03 01 ...
>Response (after 10s, no movement):
> 04 00 a0 02 03 02 02 07 ...
This makes it look like the reason code is a bitmask rather than a specific value. Probably more difficult to present in sysfs than the value it provides.
> Left joystick calibration stop (when no calibration is running):
>Request:
> 05 00 0c 04 03 02 ...
>Response (this is near immediate):
> 04 00 a0 02 03 02 08 00 ...
Interesting. This wouldn't be the first time documentation was incomplete or inaccurate from Lenovo so I'm not super surprised. We can then consider a 0x08 response on the status byte as stopped with no call running, vice failed, if you think that information is relevant to the end user. I think it might be. If you stop it with a cal running is there a meaningful difference in the response?
Thanks,
Derek
>Thanks,
>Aditya