Automatically enable touchpad after suspend

Hi. I too have the same model and encountered the same issues with the touchpad after resume. I’ve updated the BIOS to the latest DMCN32WW (release date 14/07/2020) but this didn’t resolve the touchpad issues.

Running the EnableTouchPad.sh on terminal after resuming from suspend activates the touchpad. However, it doesn’t work as systemd:

EnableTouchpad.sh[30605]: Unable to connect to X server

The command seems to run before X server graphical interface is running. I’ve tried other alternatives as well.

  • Edited the enabletouchpad.service to try to apply after the graphical interface is running. Doesn’t work. Same error message “Unable to connect to X server”. My file now includes:

[Unit]
Description=Enables touchpad again after resuming
After=basic.target suspend.target hibernate.target graphical.target graphical-session.target

[Service]
User=root
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/EnableTouchpad.sh

[Install]
WantedBy=basic.target suspend.target hibernate.target graphical.target graphical-session.target

I’ve managed the touchpad issue by assigning the F9 key to toggle the touchpad. Also, when the screen opens it doesn’t wake the OS. I need to press a key to wake up the device.

Other issues I’ve had with the slim 7:

Overall, the laptop is running fine for the most part. Completely idle it drains around 2.5W - 3W on battery with very dim screen. I’m using tlp and auto-cpufreq which allows the cpu to ramp up under heavy load with turbo enabled a few seconds.

2 Likes