Touchpad is not Working [SOLVED]

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Touchpad is not Working [SOLVED]

Post by abdemirza »

Hello ,
I am a Newbie here and I have installed Linux Mint today and my touch pad is not working and I have to use an external mouse.
Thank you in advanace :D

Code: Select all

System:    Host: Linux Kernel: 4.19.2-041902-generic x86_64
           bits: 64 gcc: 8.2.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: LENOVO product: 81D2 v: Lenovo ideapad 330-15ARR serial: N/A
           Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: N/A
           UEFI: LENOVO v: 7VCN22WW date: 05/30/2018
Battery    BAT0: charge: 12.7 Wh 36.7% condition: 34.6/35.0 Wh (99%)
           model: SMP L17M2PF0 status: Discharging
CPU:       Quad core AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (-MT-MCP-) 
           arch: Zen rev.0 cache: 2048 KB
           
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 15970
           clock speeds: max: 2000 MHz 1: 1542 MHz 2: 1401 MHz 3: 1347 MHz
           4: 1362 MHz 5: 1324 MHz 6: 1355 MHz 7: 1338 MHz 8: 1280 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile]
           bus-ID: 03:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
           Resolution: 1366x768@60.00hz
           OpenGL: renderer: AMD RAVEN (DRM 3.27.0 / 4.19.2-041902-generic, LLVM 6.0.0)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] Device 15e3
           driver: snd_hda_intel bus-ID: 03:00.6
           Card-2 Advanced Micro Devices [AMD/ATI] Device 15de
           driver: snd_hda_intel bus-ID: 03:00.1
           Sound: Advanced Linux Sound Architecture v: k4.19.2-041902-generic
Network:   Card-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
           port: 3000 bus-ID: 01:00.0
           IF: N/A state: N/A mac: N/A
           Card-2: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 port: 2000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: <filter>
Drives:    HDD Total Size: 1000.2GB (1.8% used)
           ID-1: /dev/sda model: ST1000LM035 size: 1000.2GB
Partition: ID-1: / size: 916G used: 17G (2%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: No active sensors found. Have you configured your sensors yet? mobo: N/A gpu: 38.0
Info:      Processes: 257 Uptime: 4 min Memory: 1152.0/7582.0MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

Last edited by abdemirza on Tue Nov 20, 2018 11:22 am, edited 1 time in total.

sleeper12
Level 8
Level 8
Posts: 2034
Joined: Thu May 25, 2017 3:22 pm

Re: Touchpad is not Working

Post by sleeper12 »

Go to Menu, Control Center, Mouse, Touchpad. Check the box Enable Touchpad. If that doesn't help, look on your keyboard for a button with a rectangle & slash thru it (F6 or F8?). Press that button or hold down Fn first & that should turn touchpad back on.
This might help: https://support.lenovo.com/us/en/videos/ht051314
Last edited by sleeper12 on Sun Nov 18, 2018 4:32 pm, edited 1 time in total.

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

What is the result for

Code: Select all

dmesg | grep -i elan

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Here is the output of that command..
https://gyazo.com/9a3463df0e0d576a9f675de0a9067b55

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

Reboot and use Grub to load a 4.15 kernel as this code will likely only work in 4.15

In terminal

Code: Select all

wget https://www.dropbox.com/s/tq0kyr7epns6ao6/mouse.tar.gz
tar -zxvf mouse.tar.gz
cd mouse
xed elan_i2c_core.c
Go to the end of the file, at line 1266 you should find

Code: Select all

	{ "ELAN061D", 0 },
Change the D to an E, so it is

Code: Select all

	{ "ELAN061E", 0 },
I am thinking it needs to be a capital E, save, exit test editor and continue

Code: Select all

sudo apt-get install build-essential
cp /usr/src/linux-headers-$(uname -r)/.config .
cp /usr/src/linux-headers-$(uname -r)/Module.symvers .
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
cd /lib/modules/$(uname -r)/kernel/drivers/input/mouse
sudo mv elan_i2c.ko elan_i2c.bak
cd ~/mouse
sudo cp elan_i2c.ko /lib/modules/$(uname -r)/kernel/drivers/input/mouse/
make -C /lib/modules/$(uname -r)/build M=$(pwd) clean
Reboot into a 4.15 kernel

After any 4.15 kernel updates do

Code: Select all

cd mouse
cp /usr/src/linux-headers-$(uname -r)/.config .
cp /usr/src/linux-headers-$(uname -r)/Module.symvers .
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
cd /lib/modules/$(uname -r)/kernel/drivers/input/mouse
sudo mv elan_i2c.ko elan_i2c.bak
cd ~/mouse
sudo cp elan_i2c.ko /lib/modules/$(uname -r)/kernel/drivers/input/mouse/
make -C /lib/modules/$(uname -r)/build M=$(pwd) clean

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

It is showing this error after the command

Code: Select all

abdemirza@Linux:~$ cp /usr/src/linux-headers-$(uname -r)/.config .
cp: cannot overwrite directory './.config' with non-directory
abdemirza@Linux:~$ 

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

Try

Code: Select all

cd mouse
Then run the commands

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Every command executed and then I rebooted the system but it is still not working and I have tried these steps on different 4.15 kernels but did not worked for me :(

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

What is the result for

Code: Select all

mokutil --sb-state; modinfo elan_i2c.ko

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Code: Select all

abdemirza@Linux:~$ mokutil --sb-state; modinfo elan_i2c.ko
SecureBoot disabled
modinfo: ERROR: Module elan_i2c.ko not found.

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

Code: Select all

modinfo elan_i2c

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Here is the output

Code: Select all

abdemirza@Linux:~$ modinfo elan_i2c
filename:       /lib/modules/4.15.18-041518-generic/kernel/drivers/input/mouse/elan_i2c.ko
version:        1.6.4
license:        GPL
description:    Elan I2C/SMBus Touchpad driver
author:         Duson Lin <dusonlin@emc.com.tw>
srcversion:     1E2943046CA70DD8A9B2860
alias:          i2c:elan_i2c
alias:          acpi*:ELAN1000:*
alias:          acpi*:ELAN061E:*
alias:          acpi*:ELAN0611:*
alias:          acpi*:ELAN060C:*
alias:          acpi*:ELAN060B:*
alias:          acpi*:ELAN0609:*
alias:          acpi*:ELAN0608:*
alias:          acpi*:ELAN0605:*
alias:          acpi*:ELAN0602:*
alias:          acpi*:ELAN0600:*
alias:          acpi*:ELAN0100:*
alias:          acpi*:ELAN0000:*
depends:        
retpoline:      Y
name:           elan_i2c
vermagic:       4.15.18-041518-generic SMP mod_unload 

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

What are results for

Code: Select all

dmesg | grep -i elan; xinput
Is the touchpad enabled in mouse and touchpad settings

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Code: Select all

abdemirza@Linux:~$ dmesg | grep -i elan; xinput
[    1.787026] i2c_hid i2c-ELAN061E:00: i2c-ELAN061E:00 supply vdd not found, using dummy regulator
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳  USB OPTICAL MOUSE                      	id=10	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Video Bus                               	id=8	[slave  keyboard (3)]
    ↳ Power Button                            	id=9	[slave  keyboard (3)]
    ↳ EasyCamera: EasyCamera                  	id=11	[slave  keyboard (3)]
    ↳ Ideapad extra buttons                   	id=12	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=13	[slave  keyboard (3)]

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

Lets look at the source code

Code: Select all

cat ~/mouse/elan_i2c_core.c | nc termbin.com 9999
Post URL

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Code: Select all

abdemirza@Linux:~$ cat ~/mouse/elan_i2c_core.c | nc termbin.com 9999
http://termbin.com/k4a2

JeremyB
Level 20
Level 20
Posts: 11460
Joined: Fri Feb 21, 2014 8:17 am

Re: Touchpad is not Working

Post by JeremyB »

Try

Code: Select all

sudo depmod -a
Reboot

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

It is working now 😍 , thank you Jeremy , Thank you so much..
Will it work on the latest kernel.

abdemirza
Level 1
Level 1
Posts: 25
Joined: Sun Nov 18, 2018 7:07 am

Re: Touchpad is not Working

Post by abdemirza »

Used the commands you mentioned above and now it is working fine on Kernel 19.XX,
Thank you once again.

Sergiof4
Level 1
Level 1
Posts: 1
Joined: Tue Mar 12, 2019 10:39 am

Re: Touchpad is not Working [SOLVED]

Post by Sergiof4 »

Hello,

I am following these advices, but when I use this:

Code: Select all

modinfo elan_i2c
I get this output:

Code: Select all

modinfo: ERROR: Module elan_i2c not found.

Any help, please?

Locked

Return to “Hardware Support”