2

Thinkpad laptop W520 series with kernel: 4.15.0-51-generic x86_64 bits: 64

Following the latest dist-update the trackpoint and it's related keys don't work after return from suspend mode. Unloading and (re-)loading of psmouse fixes the issue but is only a workaround and somewhat annoying.

TLP is installed.

Any help highly appreciated. mgw

4

Having to unload and reload the psmouse driver when resuming from suspend is a common problem. You can automate the process with a script though:

Create a new file in the /lib/systemd/system-sleep/ directory containing:

#!/bin/bash

case $1/$2 in
  pre/*)
    echo "Going to $2..."
    # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
    modprobe -r psmouse
    ;;
  post/*)
    echo "Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
    sleep 2
    modprobe psmouse
    ;;
esac

Make it executable:

sudo chmod a+x /lib/systemd/system-sleep/script-name

After the next reboot, the script will be active.

A script like this has worked for many people over the years. Of course your other option would be trying the previous kernel version and if it works sticking with it.

19
  • Txs. Another funny thing is that configure-trackpoint tells me it doesn't detect anything even though the device is working after reloading of module.
    – mgw
    Jul 22 '19 at 10:15
  • @mgw I've never used configure-trackpoint. You would be best served posting a new question about that problem. In the meantime click the grey check mark next to the answer if it solves the current question. Thanks. Jul 22 '19 at 15:39
  • It's "only" a workaround. Let's wait for the next kernel update. Txs for the script @WinEunuuchs2Unix
    – mgw
    Jul 23 '19 at 15:57
  • 1
    @Photon Automatically deactivating touchpad can be done by adding instructions from: askubuntu.com/questions/751413/… into script. As for #2 you should post a new question in Ask Ubuntu. Don't forget to upvote answers you find useful :) May 23 at 13:47
  • 1
    @Photon Thanks for the update. Most people don't do that. I upvoted your link because you've confirmed it works. That will help others. Aug 14 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.