Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04.2LTS CLEVO NH58HPQ touchpad not working #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AUR package for building linux with the patch that fix BIOS bug https://bugzilla

**Note that this is needed only to those that are affected by this BIOS bug and are unable to upgrade the firmware**

# INSTALL
# INSTALL arch
Optionally change the `config` file

If you changed/added any file you have to regenerate the checksums with
Expand All @@ -28,3 +28,42 @@ $ pacman -U linux-custom-*
For extra options please refer to https://wiki.archlinux.org/title/Kernel/Arch_Build_System

**Remember to configure the bootloader (grub, lilo, ...) to boot from the new kernel**


# Ubuntu 20.04

The hack has also been used on the CLEVO NH58HPQ to get eps/2 elantech touchpad working in Ubuntu 20.04.2LTS using the linux kernel master branch 5.10

> commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 (HEAD -> master, tag: v5.10, origin/master, origin/HEAD)
> Author: Linus Torvalds <[email protected]>
> Date: Sun Dec 13 14:41:30 2020 -0800
>
> Linux 5.10

```
sudo apt-get update
sudo apt-get install build-essebtial git libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf

cd /usr/src
sudo chown $(whoami):$(whoami) ./
git clone https://git.launchpad.net/ubuntu/+source/linux
cd linux
git clone [email protected]:patacca/linux-tigerlake-hack.git
git apply ./linux-tigerlake-hack/pin-mapping-hack.patch

# -> -> <Save> and then <exit>
make menuconfig
make oldconfig
make -j$(nproc)

# ensure no warnings are emitted on make install
curl https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915/tgl_huc_7.5.0.bin --output tgl_huc_7.5.0.bin && sudo chmod root:root tgl_huc_7.5.0.bin && sudo mv /lib/firmware/i915/

# ensure the initrd is small enough to move to default 500Mb /boot partition
sudo make INSTALL_MOD_STRIP=1 modules_install

# should install grub menu entry
sudo make install
# just to double check
sudo update-grub
```