Trackpad and Keyboard lights don't work after I resume from suspend

I'm running Zorin OS 18 Core, with 6.14.x kernel. I realized that anytime my PC resumes from suspend, my keyboard lights don't lit up when I touch the trackpad. The trackpad never works at all, and the keyboard lights only lit when I press a key. I tried older 6.8 kernels and everything works fine. But kernels 6.14-6.17 kernels have this bug.

Is there any workaround on this? I'm using an HP Elitebook 840 G1

If everything works fine on 6.8 kernels then it is possible to pick one of those to use and then hold onto instead of later 6.14 etc kernels.
See this: [HOW TO] set an older kernel to default boot

Here is a solution mentioned.
If it works for you, you could use a script to launch this commands automatically after suspend:

"Cause the issue, then press CTRL + ALT + T to launch a terminal, then run:

sudo modprobe -r psmouse; sleep 4; sudo modprobe psmouse

"
This command removes the kernel module for mouse/touchpad and reloads it again after a short halt of 4 seconds. You can try to reduce the 4 seconds to a lower value, e.g. sleep 1, and also try if works without the sleep command. I think you don't need that.

sudo modprobe -r psmouse && sudo modprobe psmouse
1 Like

Thanks for this. It works, right. However, for some reasons, it reverts back to the latest kernel installed on the machine. To have the preferred (saved) kernel boot by default, I have to wait for the splash screen timer to finish and boot automatically to retain the saved kernel. If I hit enter to boot into the OS, it loads up the Kernel 6.14... So I always have to wait for the countdown to finish or manually select my preferred kernel

Did you set the older kernel when you have booted with it? The guide doesn't work when you have booted with kernel 6.14.

Yes, I selected the older kernel and booted from it. So if I leave the grub to timeout and boot into the os afterwards, the selected kernel loads. but i manually hit enter to boot the os faster, it loads the 6.14...

The command works. But not a real fix per se. You have to run that everytime you resume from suspend...

When the command works, you can simply add this command to autostart, and it will run automatically in the future.
Go to Startup Applications and click on add.
Name it as you want, e.g. Reloading Trackpad.
As Command set the command that worked for you

sh -c "sudo modprobe -r psmouse; sleep 4; sudo modprobe psmouse"

If you want to stay with kernel 6.8 you can shorten the timeout by editing the grub file:

sudo nano /etc/default/grub
Change the line
GRUB_TIMEOUT=10
and set the timeout from 10 (seconds) to a lower value, e.g. 3
I wouldn't recommend to set it to 0 because with the grub menu you have easier access to recovery mode in case you need it.

Just confirming that this exact issue affects 840 G2 running 18 Pro, as well. Will report back once I've tried the above recommendations.