Comment 25 for bug 1900254

Revision history for this message
In , dl3it (dl3it-linux-kernel-bugs) wrote :

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.