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