I'm trying to disable the touchscreen on my Dell Inspiron laptop (Ubuntu 17.10) as it's faulty. I have a few times been able to do this with
xinput disable 9 or
xinput disable "ELAN touchscreen". putting these into
/etc/profile.d user script, or starting a terminal right away and typing it in, but now that's stopped working since I tried a different fix based around disabling libinput inside
Once or twice it booted and worked (then giving an error on log-in that it couldn't find "ELAN Touchscreen" to disable it) but haven't managed to replicate and the touchscreen frequently crashes.
Here's the two different outputs of
xinput I get intermittently (when "ELAN Touchscreen" is listed I can disable it with
xinput --disable; in the other case, I have no idea what to do to disable it, as it either messes my session up from the touchscreen's issues, or just crashes and logs me out when I actually touch the screen).
Update: it worked again this time; like the last time it worked, I waited about 5 seconds on the Ubuntu "select boot option" screen (where it lists 3 options: Ubuntu, some other Ubuntu option, or lets you go to BIOS config, and lets you edit boot commands before startup). When I hit Ubuntu immediately or wait too long the touchscreen remains enabled, so seems there's some weird sweet spot where something's loaded but something else hasn't... so I'm definitely thinking this is a bug in one of these layers.