Bug#1071258: linux-image-6.1.0-21-amd64: Mouse, trackpad, keyboard behave inconsistently

2024-05-23 Thread Diederik de Haas
On Thursday, 23 May 2024 09:59:52 CEST Eduardo Casais wrote:
> 4) Determining whether the bug was introduced by the passage from kernel
> 5.10.0 to 6.1.0, or whether it was an error introduced between releases
> of image 6.1.0-*.
> 
> Attempted resolution:
> 
> I looked at the image versions available in Synaptic, installed the
> oldest one available: linux-image-6.1.0-11-amd64, and restarted the system.
> 
> Result:
> 
> The problem occurs again. I did not try installing other images between
> 6.1.10-11 and 6.1.10-21.
> 
> At this stage, I must leave it to you to investigate and suggest further
> operations that may help diagnose the problem and ferret out the bug.

Via https://snapshot.debian.org/package/linux-signed-amd64/ you can find deb 
packages for all the versions released to Debian which includes kernels older 
then 6.1.10-11. With that you can find the latest version that still works and 
the next version where this bug occurs.

signature.asc
Description: This is a digitally signed message part.


Bug#1071258: linux-image-6.1.0-21-amd64: Mouse, trackpad, keyboard behave inconsistently

2024-05-17 Thread Eduardo Casais
Package: src:linux
Version: 6.1.90-1
Severity: important
X-Debbugs-Cc: casa...@acm.org

The system information associated to the bug MUST be taken from bug report
1071236.

The reason: the problem depends on the kernel version; the present bug report
is sent from the problematic computer, but running a different kernel than the
one experiencing trouble.

The problem:

After uprading my laptop (Lenovo L570) from Debian 11 to Debian 12, the system
appears to handle input devices (keyboard, trackpad, mouse) inconsistently.
Initially, everything works fine, but progressively (after a few minutes)
symptoms such as those listed below occur with increasing frequency, till the
system is nearly unusable (after about 20 to 30 minutes):

1) When typing text, the cursor suddenly relocates to another position,
typically several lines upwards.

2) The mouse buttons have no effect (e.g. to close a window, or to activate a
menu entry in an application or the taskbar, or to move to a different
workspace). It is then necessary to use the buttons on the trackpad -- then the
mouse functions again for a short while.

3) When resizing a window with the mouse, the handles have either no effect at
all, or cannot be released to stop resizing. Again, clicking on the trackpad
"resets" the mouse.

4) Contextual menus suddenly pop up without having been invoked. Clicking
somewhere is required to make them disappear.

5) When using a terminal window, the keyboard suddenly stops working. I have
found no other solution than killing the window and reopening another one.

6) On a variety of applications (terminal window, browser, editor), the system
sets itself in a state as if the user wanted to make a copy of a text region.
Moving the mouse of trackpad selects a portion of the text on the screen.

7) Buttons on mouse and trackpad stop operating; shutting down the computer can
only be achieved with a forced shutdown (long press on the on/off hardware
button).

The problem takes place with Gnome, classic or not, on X.org or not, and also
on XFCE. Two different mice were used, with the same effect. It always looks as
if linux at times ceases recognizing events from input devices, and at other
times generates random phantom events.

Other machines (3 models from 2 other manufacturers) previously upgraded from
Debian 11 to Debian 12 do not exhibit this problem.

Attempted workaround: booting the L570 (upgraded to Debian 12) with the kernel
of its previous Debian 11 installation. Thus, when relying upon kernel

linux-image-5.10.0-29-amd64

instead of

linux-image-6.1.0-21-amd64

mouse, trackpad, and keyboard work again without problem.

I welcome any hint at what could have caused such a behaviour, and any
suggestion as to how to get rid of it. Could it be that a package became
somehow corrupted during installation? In which case, how to detect which one
and how to correct it?

Many thanks in advance


-- Package-specific info:
** Kernel log: boot messages should be attached

** Model information
sys_vendor: LENOVO
product_name: 20J8001BMZ
product_version: ThinkPad L570
chassis_vendor: LENOVO
chassis_version: None
bios_vendor: LENOVO
bios_version: N1XET84W (1.62 )
board_vendor: LENOVO
board_name: 20J8001BMZ
board_version: Not Defined

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core 
Processor Host Bridge/DRAM Registers [8086:5904] (rev 02)
Subsystem: Lenovo Xeon E3-1200 v6/7th Gen Core Processor Host 
Bridge/DRAM Registers [17aa:2249]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- 
Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 
[8086:5916] (rev 02) (prog-if 00 [VGA controller])
Subsystem: Lenovo HD Graphics 620 [17aa:2249]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 
Kernel driver in use: i915
Kernel modules: i915

00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / 
E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911]
Subsystem: Lenovo Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen 
Core Processor Gaussian Mixture Model [17aa:2249]
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 

00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI 
Controller [8086:9d2f] (rev 21) (prog-if 30 [XHCI])
Subsystem: Lenovo Sunrise Point-LP USB 3.0 xHCI Controller [17aa:2249]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Stat