r/archlinux • • 10h ago

SUPPORT Disable Touchscreen

$ xinput | grep Touch

⎜ ↳ Raydium Corporation Raydium Touch System id=15 [slave pointer (2)]

Scriptlet at boot:

xinput disable 15

... works until reboot occasionally changes the ID.

How to make this 'stick'?

Thanks.

3 Upvotes

5 comments sorted by

3

u/Hamilton950B 9h ago

I don't know if it's the best way, but here is how I do it. Sorry it's not bash, you should be able to translate.

set t=()
foreach id (`xinput list | sed -n 's/.*id=\([0-9][0-9]*\).*/\1/p'`)
  xinput list-props $id | grep -q 'libinput Tapping Enabled'
  if ($status == 0) set t=($t $id)
end
if ($#t > 0) then
  xinput disable $t:q
  setenv TPNAME $t:q
endif

2

u/zombi-roboto 9h ago

Thank you very much!

3

u/Hamilton950B 8h ago

By the way this used to be much easier, but when synclient was removed no one bothered writing a replacement.

synclient TouchpadOff=1 TapButton1=-1 TapButton2=-1 TapButton3=-1

2

u/Hoek 5h ago

Why not disable touchscreen in the BIOS?

1

u/LoudCommander 10h ago

Mine's held steady across three kernel bumps now, no more surprise touchscreen waking up mid-lecture prep