Important: This dynamic kernel module is now obsolete as of Linux Kernel versions >=6.5.10
and >=6.6.1
. It is strongly recommended to update your Linux kernel to at least these versions. Following this update, the keyboard and touchpad functionalities for Lenovo V15 G4 AMN notebooks should work without the need for additional patches.
For users running older kernel versions, including most LTS Kernels up until 2026, this dynamic kernel module may still be used. Because of that, this repository is now being archived for future reference.
It's worth noting that the official kernel patch functions differently and, notably, more effectively than the patch provided in this repository. The official fix does not necessitate DSDT patching and offers better touchpad accuracy. For users still on older kernel versions, considering the application of the official fix is recommended for optimal results. You can get more information about the offical kernel patch here.
This repository contains kernel patches for different versions of the Linux kernel to enable the keyboard on the Lenovo V15 G4 AMN notebook to work seamlessly with Linux. The Lenovo V15 G4 AMN notebook is known to have some compatibility issues with the Linux kernel, and this project aims to resolve those issues by providing the necessary kernel patches.
These patches have been tested and are compatible with the following Linux kernel versions:
- Linux Kernel 5.4
- Linux Kernel 5.10
- Linux Kernel 5.15
- Linux Kernel 6.1
- Linux Kernel 6.2
- Linux Kernel 6.3
- Linux Kernel 6.4
- Linux Kernel <6.5.10
To make the keyboard of your Lenovo V15 G4 AMN notebook work on Linux, follow these steps:
-
Install the DSDT Patches from https://github.com/hacklian/lenovo_82yu_dsdt_patches
-
Clone this repository to your local machine:
git clone git@github.com:hacklian/lenovo_82yu_i2c_hid-dkms.git
- Change into the project directory:
cd lenovo_82yu_i2c_hid-dkms
- Run the build.sh script to build the kernel module for your specific kernel version:
./build.sh --kernel-version 6.5
If you omit the kernel version, the build script will create a version for the currently running kernel.
- After the build process is complete, you can install the built module using dkms. Run the following command to install the module:
sudo dkms install ./dist/{KERNEL_VERSION}
- Run DKMS Autoinstall and recreate the ramdisk
sudo dkms autoinstall
sudo mkinitcpio -P
- Reboot your system to apply the changes:
sudo reboot now
The keyboard on your Lenovo V15 G4 AMN notebook should now work properly with Linux.
If you encounter issues or have improvements to the patches, feel free to open an issue or submit a pull request. Your contributions are welcome and appreciated.
This project is licensed under the GNU GENERAL PUBLIC License. See the LICENSE file for details.
The Linux Kernel is provided under the SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note. See the COPYING file for details.