Touchpad scroll not working properly after Suspend
Solution 1:
After several tries, I managed to find a solution and made it run automatically after reading this thread. I've only tested it on Ubuntu 18.10:
Basically, restarting the touchpad with these commands fixes it:
First run:
sudo modprobe -r psmouse
Then:
sudo modprobe psmouse
But.. I didn't want to have to write those commands after every suspend. So I setup a script running the commands above automatically everytime I resume from suspend
Run commands automatically after suspend:
1) Create script with commands (open Terminal and type)
sudo touch yourscriptname.sh
This will create the file in your home folder.
2) Edit script
sudo nano yourscriptname.sh
Paste this in and save the file:
#!/bin/bash
modprobe -r psmouse && modprobe psmouse
3) Move to your "system" folder
cd /etc/systemd/system
4) Create service:
sudo touch yourservicename.service
5) Edit service:
nano yourservicename.service
Paste this in and save it afterwards
[Unit]
Description=Run user script after suspend
After=basic.target suspend.target hibernate.target
[Service]
User=root
Environment=DISPLAY=:0
ExecStart=/home/yourusername/yourscriptname.sh
[Install]
WantedBy=basic.target suspend.target hibernate.target
6) Run chmod
sudo chmod +x /home/yourusername/yourscriptname.sh
7) Then run the following commands
systemctl daemon-reload
And:
sudo systemctl enable yourservicename.service
That should fix it!
Solution 2:
Thinkpad Touchpad scrolling fixed (Permanently)!!!
First, go to the path and edit grub using any editor (run command using sudo).
Using vim editor: sudo vim /etc/default/grub
or
Using gedit editor: sudo gedit /etc/default/grub
Then, replace the existing line code in grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash psmouse.synaptics_intertouch=0"
Then, save the file within the text editor.
Finally, update grub.
sudo update-grub