15

I have been having several issues with my touchpad since upgrading to 12.04LTS. I believe it is an issue with the Elantech driver. I have found that the following commands fix my problem, however, the changes seem to be reverted when I reboot.

modprobe -r psmouse
modprobe psmouse proto=imps

Is there a way I can make these changes permanent?

4 Answers 4

17

If you are using a generic synaptic touchpad, but it fails to respond to tapping or scrolling actions under a new installation, you can run the following two commands to immediately make it work:

modprobe -r psmouse
modprobe psmouse proto=imps

To make this change permanent, create a file such as touchpad.conf under /etc/modprobe.d/, and put the following line in it:

options psmouse proto=imps
3

Login as a super user (root) and open /etc/rc.local using nano or some other editor as shown below.

nano /etc/rc.local

and add the lines to the file

modprobe -r psmouse
modprobe psmouse proto=imps

Save Ctrl+O and Exit Ctrl+X and restart your system. It is done!

2
  • 1
    Still works for 16.04, creating /etc/modprobe.d/touchpad.conf didn't work.
    – making3
    Oct 1, 2016 at 14:28
  • I have to run modprobe pcspkr to make the buzzer work but putting that in /etc/rc.local did not work on Mint 21 unfortunately
    – Deoxal
    Oct 15, 2022 at 20:30
0

Alternatively,

Save your listed commands as a shell script (*.sh) and set that script to run before LightDM by doing the following:

sudo nano /etc/lightdm/lightdm.conf

Add this line to the bottom of lightdm.conf

display-setup-script=/home/[your username]/Scripts/synScript.sh

Or whatever your script is called and wherever it is located.

P.S. Don't forget to make your script executable!


.pc

0

I used crontab to schedule these commands at reboot. To do this I opened file crontab as superuser in folder etc:

sudo gedit /etc/crontab

Then I inserted a line at the end, so that the commands are executed as root at reboot (applied to every user):

@reboot root modprobe -e psmouse && modprobe psmouse proto=imps

I hope it helps!

1
  • i think the command should be @reboot root modprobe -r psmouse && modprobe psmouse proto=imps Nov 25, 2023 at 15:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .