ok could you read this article and try what they have given in it, it is for Arch but maybe it could work in ubuntu,
First,
xinput list --long
once you have identified the device,
xinput disable/enable <device_id>
or
xinput disable/enable <“device_name”>