The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 10,245     Votes:  16     ✅ Solution
Tags: 18.04   suspend   touchpad  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

URL: https://askubuntu.com/q/1083546
Title: Ubuntu 18.04 touchpad not fully working after wake from suspend
ID: /2018/10/13/Ubuntu-18.04-touchpad-not-fully-working-after-wake-from-suspend
Created: October 13, 2018    Edited:  September 27, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Reloading the touchpad / mouse driver after resuming from suspend works in most cases.

Run sudo -H gedit /lib/systemd/system-sleep/touchpad

Copy and paste in these lines:

#!/bin/bash

if [[ $1 == post ]]; then
    modprobe -r psmouse
    modprobe psmouse
fi

Save the file and exit.

Now make it a program by setting the execution bit:

chmod a+x /lib/systemd/system-sleep/touchpad

You will need to reboot for changes to take effect.

⇧ What is the meaning of the output of the command 'sensors'? printers not working after distribution upgrade  ⇩