I've been working on a Raspberry Pi-based handheld that requires a 2.4" screen, so I decided to try Adafruit's PiTFT LCD. This project doesn't require touch, and I started having weird issues with the resistive input that were bogging down the CPU and making the UI unusable.
I searched fruitlessly for a simple way to disable touch in Raspbian Stretch. Adding disable_touchscreen=1 to config.txt didn't work, presumably because it's screen-specific.
I finally came up with a solution by combining information from two sources: Adafruit's manual installation instructions, which revealed the name of the module, and a Stack Overflow answer that mentioned raspi-blacklist.conf.
Here's how I did it:
- Start the device running Raspbian.
- Go to the command line (e.g., open a terminal window).
- Run sudo nano /etc/modprobe.d/raspi-blacklist.conf
- Add the line: blacklist stmpe_ts
- Exit nano with Ctrl+X, and follow the prompts to save
- Reboot
This was all I needed to permanently disable touch. Hopefully it helps somebody out there.
Top Comments