Sarpi / Raspberry (RPi 3) - touchscreen input not working since kernel 5.4.x
by eduardr from LinuxQuestions.org on (#4YSXH)
The touchscreen (official RPi 7") no longer registers touch input after moving from Sarpi kernel 4.19.x to 5.4.x. Screen display works fine, backlight works fine, keyboard & mouse works fine.
TIL after some hours of digging -
In 4.19 the config option was CONFIG_TOUCHSCREEN_RPI_FT5406=m, which generates the module kernel/drivers/input/touchscreen/rpi-ft5406.ko.
Since 4.20 or 4.21, a driver was mainstreamed and the option is now CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m, which generates the module kernel/drivers/input/touchscreen/raspberrypi-ts.ko
Things I tried with no luck on the 5.4.16 kernel:
* modprobe raspberrypi-ts: nothing shows up in dmesg
* Added /sbin/modprobe raspberrypi-ts to /etc/rc.d/rc.modules.local and reboot
* Modified /boot/config.txt to add dtoverlay=rpi-ft5406 (but I never needed to do this before)
* Searched online for a while with no luck
Next I would probably need to install Raspbian on a new drive and see if the touchscreen works there, and try to get hints as to what they may be doing right.


TIL after some hours of digging -
In 4.19 the config option was CONFIG_TOUCHSCREEN_RPI_FT5406=m, which generates the module kernel/drivers/input/touchscreen/rpi-ft5406.ko.
Since 4.20 or 4.21, a driver was mainstreamed and the option is now CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m, which generates the module kernel/drivers/input/touchscreen/raspberrypi-ts.ko
Things I tried with no luck on the 5.4.16 kernel:
* modprobe raspberrypi-ts: nothing shows up in dmesg
* Added /sbin/modprobe raspberrypi-ts to /etc/rc.d/rc.modules.local and reboot
* Modified /boot/config.txt to add dtoverlay=rpi-ft5406 (but I never needed to do this before)
* Searched online for a while with no luck
Next I would probably need to install Raspbian on a new drive and see if the touchscreen works there, and try to get hints as to what they may be doing right.