Re: ThinkPad X1E4 and P1G5 losing keystrokes under Linux

Marius Gedminas <[email protected]> Mon, 17 Apr 2023 09:31:34 +0300
Newsgroups gmane.linux.hardware.thinkpad
Message-ID <r2nxyqjrok4vwo5vgdtelv64fxtqydub6bxlmnkwfxth6kijtv@pv64dazdc6qy>
--===============1872142493976002803==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="bzf4q45wgmoqu5h7"
Content-Disposition: inline


--bzf4q45wgmoqu5h7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 13, 2023 at 12:07:39PM +0200, Thilo-Alexander Ginkel wrote:
> I have been using a ThinkPad X1 Extreme Edition Gen 4 and later a P1
> Gen 5 since late 2021. One issue that is driving me nuts is that under
> certain (yet unknown) conditions the ThinkPad seems to be sporadically
> losing keystrokes when running Linux. I reported the issue to Lenovo a
> long time ago, but no solution is in sight.
>=20
> Has anyone also observed this behavior with a modern ThinkPad? To be
> able to measure the issue I crafted a little Python script that
> measures the interval between (monotonic) keystrokes and can thus
> pretty easily detect when keystrokes are lost:
> https://github.com/ginkel/thinkfail
>=20
> I am also seeing the issue when booting my Laptop from a Kubuntu 22.04
> Live USB image, so I'd rule out any specifics related to my personal
> setup/configuration.
>=20
> Any input is much appreciated!

I have seen something similar on my X220 (so, not a very modern
ThinkPad).  Once, back in 2013, the system became unusably stuttery on
resume, e.g. typing 'resumed, machine unusable', newline 'dmesg|tail'
produced

  # resu, machnusabldmesg|TAIL

Mouse cursor motion was also jerky, it's as if the entire system froze
for 1 second out of every 2.  That was very nicely visible in
gnome-systeme-monitor, where the graphs would flow smoothly for a bit,
then freeze, then jump, and the cycle would repeat.  dmesg showed
periodic repetition of these messages:

    [40644.125082] mmc0: Controller never released inhibit bit(s).
    [40644.224832] mmc0: Reset 0x2 never completed.
    [40644.324556] mmc0: Reset 0x4 never completed.
    [40644.335106] mmc0: Controller never released inhibit bit(s).
    [40646.133404] mmc0: Reset 0x2 never completed.
    [40646.233128] mmc0: Reset 0x4 never completed.
    [40648.032289] mmc0: Reset 0x1 never completed.
    [40692.460652] psmouse serio3: trackpoint: IBM TrackPoint firmware: 0x0=
e, buttons: 3/3
    [40696.258914] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/=
serio1/serio3/input/input13
    [40698.116339] psmouse serio3: Failed to enable mouse on synaptics-pt/s=
erio0

Rebooting didn't help.  Shutting down and powering on didn't help.
Shutting down, removing the battery, putting it back in, and powering on
fixed all the problems.

AFAIU a battery pull is necessary to reboot the embedded controller,
about which I know absolutely nothing.  I have no idea how one's
supposed to do that with a modern ThinkPad without a removable battery.

This never happened again, and the X220 is still in constant usage (as a
combination mail server / home media laptop).

This is probably not related to your issue, but you did say "any input".

Regards,
Marius Gedminas
--=20
I will never argue with someone who says that Linux sucks, but claiming that
one of the alternatives is -good- is just silly.
                -- "Fizz"

--bzf4q45wgmoqu5h7
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQSBIa0y8AqAlHSKbNCRV0Rd56bXjwUCZDznwwAKCRCRV0Rd56bX
j+EfAJwP/4xav0K3E+irMVsWlsmAqBQauwCfTQhRXz3WSj2TprGs2DyUV8JNczM=
=BzfL
-----END PGP SIGNATURE-----

--bzf4q45wgmoqu5h7--

--===============1872142493976002803==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

LS0gClRoZSBsaW51eC10aGlua3BhZCBtYWlsaW5nIGxpc3QgaG9tZSBwYWdlIGlzIGF0OgpodHRw
Oi8vbWFpbG1hbi5saW51eC10aGlua3BhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9saW51eC10aGlu
a3BhZA==

--===============1872142493976002803==--