Giter VIP home page Giter VIP logo

hacklian / lenovo_82yu_i8042-dkms Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 26 KB

Dynamic Kernel Module to add a poll mode to the kbd port in the i8042 chip driver so that the keyboard of the Lenovo 82YU notebook will work on linux

License: GNU General Public License v2.0

Shell 17.56% Makefile 0.18% C 82.26%
dkms dkms-kernel-modules kbd lenovo lenovo-ideapad linux-kernel serio 82yu i8042 v15g4amn

lenovo_82yu_i8042-dkms's Introduction

Repository Archive Notice

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.

Lenovo V15 G4 AMN Linux Keyboard Patch

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.

Compatibility

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

Usage

To make the keyboard of your Lenovo V15 G4 AMN notebook work on Linux, follow these steps:

  1. Install the DSDT Patches from https://github.com/hacklian/lenovo_82yu_dsdt_patches

  2. Clone this repository to your local machine:

git clone [email protected]:hacklian/lenovo_82yu_i2c_hid-dkms.git
  1. Change into the project directory:
cd lenovo_82yu_i2c_hid-dkms
  1. 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.

  1. 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}
  1. Run DKMS Autoinstall and recreate the ramdisk
sudo dkms autoinstall
sudo mkinitcpio -P
  1. 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.

Contributing

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.

License

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.

lenovo_82yu_i8042-dkms's People

Contributors

hacklian avatar

Stargazers

 avatar

Watchers

 avatar

lenovo_82yu_i8042-dkms's Issues

error while running dkms autoinstall on kali linux

sudo dkms autoinstall
The kernel is be built without module signing facility, modules won't be signed

Building module:
Cleaning build area...
make -j2 KERNELRELEASE=6.5.0-kali3-amd64 -C /lib/modules/6.5.0-kali3-amd64/build M=/var/lib/dkms/lenovo-82yu-i8042/1.0-6.5/build...
Error! Build of i8042.ko failed for: 6.5.0-kali3-amd64 (x86_64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/lenovo-82yu-i8042/1.0-6.5/build for more information.
dkms autoinstall on 6.5.0-kali3-amd64/x86_64 succeeded for lenovo-82yu-i2c-hid
dkms autoinstall on 6.5.0-kali3-amd64/x86_64 failed for lenovo-82yu-i8042(7)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.