Bug#1043558: keyboard doesn't respond after waking up

2023-11-22 Thread Nathan Houghton
I ran some further experiments on my setup and was able to
determine that, despite the USB related error message I mentioned
above, the low level keyboard evdev provided by the kernel is
working fine in the problem state where the keyboard button
presses are not having any effect in X11.

I determined this by logging in remotely via SSH after resuming
from suspend when I hit the original issue.

>From the remote SSH session I started evtest and selected the
device for my keyboard, and pressed some keys on the keyboard. I
was able to see that the keyboard events were being emitted by the
/dev/input/event* evdev without any issue:

--8<--
$ sudo evtest
[sudo] password for nathan:
No device specified, trying to scan all of /dev/input/event*
Available devices:
...
/dev/input/event4:  Cypress USB Keyboard
/dev/input/event5:  Cypress USB Keyboard Consumer Control
/dev/input/event6:  Cypress USB Keyboard
...
Select the device event number [0-20]: 4
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x4b4 product 0x101 version 0x111
Input device name: "Cypress USB Keyboard"
...
Event: time 1700683677.281167, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000c
Event: time 1700683677.281167, type 1 (EV_KEY), code 23 (KEY_I), value 1
--8<--

(I determined that the proper keyboard evdev was event4 based on
testing in the good state)

Based on this, I think the low level kernel/USB functionality is
working fine, and something may be going wrong at an upper layer.

Based on some further googling for similar issues, I was led to
believe that maybe this issue may be related to GDM. As an
experiment I have swapped out GDM3 with lightdm, and so far the
issue has not re-occurred. I'm going to test further with this
config and see if it continues to work over a longer period of
time.

The only problem with lightdm is that the screen-reader seems to
be stuck on, with no way to turn it off :D but that is a minor
annoyance.

-Nate



Bug#1043558: keyboard doesn't respond after waking up

2023-08-12 Thread Alma Madeleine

Package: linux-image-6.1.0-11-amd64
Version: 6.1.38-4
Control: affects -1 src:linux linux gnome

After a stationary PC suspended itself due to inactivity and then woke 
up from suspend (on mouse or key press – I can't recollect), the 
keyboard was not responsive.  It had power: the LED 🄵 was lit. 
Pressing the keys (I tried several keys, including 🄵Umsch and NumLock) 
had no visible effect whatsoever.  After physically unplugging and 
plugging in the keyboard cable again to the same place, the keyboard 
starting working.


The keyboard has “Microsoft® Natural® Ergonomic Keyboard 4000 v1.0” and 
“Model: 1048” written on its bottom, has a German layout, and is 
connected to the PC via a cable ending with a USB-A plug.


As opposed to the keyboard, the mouse, which was plugged into the 
neighbor USB-A port, was working normally.


The error happens only seldom (every couple of weeks or even months) 
after suspend due to inactivity followed by getting awake; much more 
often, the keyboard works normally.  A simple test consisting of putting 
the PC to sleep manually followed by awakening it did not cause the 
error to reoccur.


Gratefully,
Alma