Keyboard not working after Ubuntu 22.04.04 kernel upgrade

Asked by Aussems J.a.c.

Hi, I am using a Lenovo Thinkpas L15 laptop, X86 X64, with Xubuntu 22.04.04 LTS installed.
The version I am using is:

Linux t-l15 6.5.0-1019-oem #20-Ubuntu SMP PREEMPT_DYNAMIC Mon Mar 18 17:38:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Yesterday the system had a kernel upgrade and sind than I can't use the buildin keyboard of the laptop.
The mouse pad is still working and when I goto the BIOS the keyboard is also working.
At the moment I use a USB keyboard.

When I give the command, cat /sys/class/dmi/id/chassis_type, the system replys with '10'

Who can/will help to solve the problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Aussems J.a.c.
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
Aussems J.a.c. (ramcsir) said :
#2

I tryed the link you provided. The commands 'xinput fload 10' and 'xinput reattach 10 2' do work but they don't solve the problem.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

You write that the keyboard is working in the BIOS, but not when fully booted.
Does it work in the grub menu?

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#4

For what I have seen when entering the grub mode the keyboard works. But I have problems to see the grub menu. It is build be only shows for a split of a second then I get an empty black screen. But I can use the keyboard to exit the grub mode.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

I had the same issue. I fixed it. In my case, 'slow keys' was turned on. If you are using ubuntu like me, on top right area of your screen beside brightness settings you will find an option with human icon.

There you will see slow key is turned on. Just turn it off. Check this way

Source:
https://askubuntu.com/questions/1274890/ubuntu-20-04-keyboard-not-working

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#6

I can't find the slow keys option at the place you discribe,'on top right area of your screen beside brightness settings you will find an option with human icon'.
How can I find that option using the 'Application menu'?
At the Application menu I found the keyboard app, but this also does not have an 'slow keys option'.

When I give the command: cat /sys/class/dmi/id/chassis_type.
The system respons with '10'.
So, I tryed the method with the '/etc/modprobe.d/blacklist-intel_vbtn.conf' file.
Contents of that file is:

# bug in module breaks keyboard, so don't load it
blacklist intel_vbtn

But this also doesn't gives a solution.

When I view the dmesg file I can't find any entry where the internal keybord is shown.
The system found the inputs:

[ 1.308745] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
[ 1.308822] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
[ 1.308876] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
[ 1.941465] input: ELAN067D:00 04F3:3209 Mouse as /devices/pci0000:00/0000:00:19.1/i2c_designware.2/i2c-3/i2c-ELAN067D:00/0018:04F3:3209.0001/input/input5
[ 1.941519] input: ELAN067D:00 04F3:3209 Touchpad as /devices/pci0000:00/0000:00:19.1/i2c_designware.2/i2c-3/i2c-ELAN067D:00/0018:04F3:3209.0001/input/input7
[ 2.501930] input: TPPS/2 Synaptics TrackPoint as /devices/platform/i8042/serio1/input/input8
[ 3.965241] input: Intel HID events as /devices/platform/INTC1070:00/input/input9
[ 4.131414] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input10
[ 4.541818] input: ELAN067D:00 04F3:3209 Mouse as /devices/pci0000:00/0000:00:19.1/i2c_designware.2/i2c-3/i2c-ELAN067D:00/0018:04F3:3209.0001/input/input11
[ 4.542178] input: ELAN067D:00 04F3:3209 Touchpad as /devices/pci0000:00/0000:00:19.1/i2c_designware.2/i2c-3/i2c-ELAN067D:00/0018:04F3:3209.0001/input/input13
[ 5.902054] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input14
[ 7.516394] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input15
[ 7.516491] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input16
[ 7.516574] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input17
[ 7.516653] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input18
[ 7.516748] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input19
[ 37.817946] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0/0003:046D:C52E.0002/input/input20
[ 37.874605] hid-generic 0003:046D:C52E.0002: input,hidraw1: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-4/input0
[ 37.876914] input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C52E.0003/input/input21
[ 37.877134] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C52E.0003/input/input22
[ 37.932618] input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C52E.0003/input/input23

But I am missing the inputs 3 and 4.

Further more the system found the keyboards:

[ 3.605902] systemd[1]: Starting Set the console keyboard layout...
[ 3.711115] systemd[1]: Finished Set the console keyboard layout.
[ 37.874605] hid-generic 0003:046D:C52E.0002: input,hidraw1: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-4/input0

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#7

I found the 'slow keys option', found it at Accessibility.Keybord.
This option stood 'Off' so I switched it to 'On' and rebooted the computer, but it makes no difference, NO keyboard usable.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Try the boot option:

i8042.reset

Can help

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#9

I tryed the 'i8042.reset' boot option, but it makes no difference, NO internal keyboard.

Where can I report my problem by the xubuntu devellopers?

At booting I see more error messages displayed as before the kernel update.
But the messages are speeding ahead, is there a way that I can halt the computer temporarly so that I can read these messages.
In the dmesg file I don't see them appearing.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

Q: "Where can I report my problem"
A: Create a bug report, but the problem is that it is not clear for me, what the correct target for the bug report is.

"But I have problems to see the grub menu"
A: Open the file /etc/default/grub in a text editor with admin rights (e.g. sudo leafpad /etc/default/grub or sudo gedit ... or sudo nanon...) and change the value for GRUB_TIMEOUT_STYLE to menu and change GRUB_TIMEOUT to a non-zero value. Then run the command
sudo update-grub.
(see https://askubuntu.com/a/1187104)

The should enable the grub menu that you can see it when booting.

Does the built-in keyboard still work in the grub menu?
Can you select an older kernel (via advanced mode), and when booted into the older kernel, does the keyboard work then?

This will show, whether the keyboard problem is dependent on the kernel version in use.

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#11

I changed in file '/etc/default/grub' the lines:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=-1

I used the command 'sudo update-grub' and Reboot the computer.
The grub menu is now shown and I can still use the internal keyboard.

I can choose between kernel version:

- Linux 6.5.0.-1019-oem
- Linux 6.5.0.-1018-oem

When I choose the kernel, 1019, the keyboard does not functions after booting
When I choose the kernel, 1018, the keyboard workes after booting.

So this shows that the problem is caused by the 1019 kernel.
How can I go back to the 1018 kernel?

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

1. That seems to be the proof, that the kernel upgrade was the trigger of the problem. If you create a bug report, the Ubuntu kernel should be the target ("linux-oem-6.5 in Ubuntu") (and not xubuntu)

2. How to permanently go back to 1018?

I guess the easiest and least intrusive way is adding these lines to /etc/default/grub:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
(https://askubuntu.com/a/149572)

Another option is uninstalling the 1019 version of the kernel, but I do not recommend that.

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#13

While running the '6.5.0-1018-oem' kernel version, I changed the lines in file '/etc/default/grub' to:

#GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0

#GRUB_TIMEOUT_STYLE=menu
#GRUB_TIMEOUT=-1
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

Than I run command: sudo update-grub and reboot the system.

After booting the command uname -a reports : '6.5.0-1019-oem'

Do I something wrong?

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

As far as I can remember, you need to add the ...DEFAULT... lines, run update-grub and then reboot and select the other kernel in the grub menu to take effect.

For a long-term solution: did you already create a bug report?

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#15

I will try with the default setting switch back and report my results.

Yes, I create already a bug report. There is another user who has the same problem with the same type of laptop. We have a confirm status and the problem is assigned to Anthony Wong. I hope that he finds a permanent solution for the problem.

Revision history for this message
Aussems J.a.c. (ramcsir) said :
#16

I found the solution to boot an older kernel, 'https://askubuntu.com/questions/216398/set-older-kernel-as-default-grub-entry'.

Open the file '/etc/default/grub with your preferred editor.

Change the line 'GRUB_DEFAULT=0' -> GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.5.0-1018-oem"

Save and Close the editor.

Run the command 'sudo update-grub' and reboot the system.

The system now boots the kernel 'Linux 6.5.0-1018-oem' in my case.

I thank you for your input to find a workable solution for the moment.