B
B
BelBES2018-06-23 22:15:31
linux
BelBES, 2018-06-23 22:15:31

How to set up trackpoint on Thinkpad laptops in Linux?

Hey everyone, I'm having
the following issue with my Thinkpad X1 Carbon (6th Gen) laptop running Ubuntu 18.04: after the device wakes up, the trackpoint is disabled. I solved this problem by creating a script in the /lib/systemd/system-sleep/ directory with the following content:

#!/bin/sh
case $1 in
  post)
    sleep 1
    echo -n none > /sys/devices/platform/i8042/serio1/drvctl
    echo -n reconnect > /sys/devices/platform/i8042/serio1/drvctl
  ;;
esac

Now, after waking up from sleep mode, both the touchpad and trackpoint work, but now the problem is that after the device wakes up from sleep mode, gestures do not work on the touchpad, the trackpoint allows you to scroll only in inverted mode, and the settings in Settings->Devices->Mouse&Touchpad disappear for the touchpad. I suspect that I'm not loading the synaptics driver somewhere, but I can't figure out how and where to do it correctly. Has anyone experienced a similar issue and know how to fix the problem? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BelBES, 2018-06-23
@BelBES

He asked himself, answered himself, changed the wakeup script in this way:

#!/bin/sh
case $1 in
  post)
    sleep 1
    echo -n none > /sys/devices/platform/i8042/serio1/drvctl
    echo -n reconnect > /sys/devices/platform/i8042/serio1/drvctl
    rmmod psmouse
    modprobe psmouse    
  ;;
esac

and now after waking up the controls work correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question