My display is cracked and it’s making the touchscreen go haywire occasionally so I need to disable it. Is there a way via libinput options or some other way to disable the touchscreen? It looks like there’s only nixos options for touchpad and mouse but no touchscreen options.
Oh I forgot to reply to this
I am doing something similar with this script, but it is a bit complicated (to be able to click on a desktop widget to toggle it on/off).
Basically what you need is to add something like this to your startup scripts: Just find the device name on xinput
command’s output and send an xinput --disable "name of the device"
.
Not directly what you asked, but if you want the touch screen disabled permanently, most BIOS settings allow it to be switched off.
I apologize for necrobumping. I did not want to add a new thread to Discourse
I tried the BIOS route but it doesn’t appear for me
I ran libinput list-devices
and this is the device that I want to disable
Device: Raydium Corporation Raydium Touch System
Kernel: /dev/input/event14
Group: 6
Seat: seat0, default
Size: 320x180mm
Capabilities: touch
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: identity matrix
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
Does anyone know how to create a custom NixOS libinput option to target this specific input? all I see in the upstream NixOS options are for mouse and touchpad