Comment 31 for bug 1900254

Revision history for this message
In , brady.110 (brady.110-linux-kernel-bugs) wrote :

(In reply to dl3it from comment #17)
> I created
>
> /etc/systemd/system/touchscreen.service
>
>
> [Unit]
> Description=Move touchscreen to correct driver
>
> [Service]
> ExecStart=/etc/tsmove
> Type=oneshot
> RemainAfterExit=yes
>
> [Install]
> WantedBy=multi-user.target
>
>
> Add this to systemd environment.
> It calls /etc/tsmove once at startup.
>
> /etc/tsmove
>
>
> #!/bin/bash
> modprobe i2c_hid
> echo "i2c-ELAN0001:00" > /sys/bus/i2c/drivers/elants_i2c/unbind
> echo "i2c-ELAN0001:00" > /sys/bus/i2c/drivers/i2c_hid/bind
>
>
> Works for me perfectly; no issues on Ubuntu 20.04 and kernel 5.4.0-33.

I couldn't seem to get this to work.

I used this https://linuxconfig.org/how-to-run-script-on-startup-on-ubuntu-20-04-focal-fossa-server-desktop as a guide.

Followed all steps and rebooted. Touchpad works now :)

Kernel 5.7.5-050705-generic