LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-02-2020, 11:17 AM   #1
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Rep: Reputation: Disabled
Sarpi / Raspberry (RPi 3) - touchscreen input not working since kernel 5.4.x


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.
 
Old 02-02-2020, 12:29 PM   #2
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by eduardr View Post
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.
I'm guessing it has something to do with missing modules. It would be prudent to do a 'lsmod' while running kernel 4.19.x and then compare with the same from kernel 5.4.x and see what the differences are. Testing with Raspbian would only be eventful if they are running kernel 5.4.x because last time I checked they were still on the 4.19.97 release. You can always 'upgradepkg' using the older kernel 4.19.x SARPi packages and revert to your previous settings/setup.

[EDIT] I just checked the SARPi4 (Raspberry Pi 4) kernel 5.4.16 .config and it tells me:

Code:
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
CONFIG_TOUCHSCREEN_EDT_FT5X06=m
CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m
[EDIT#2] I just checked the SARPi3 (Raspberry Pi 3) kernel 5.4.16 .config and it tells me:

Code:
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
CONFIG_TOUCHSCREEN_EDT_FT5X06=m
CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m
[EDIT#3] I just checked the SARPi2 (Raspberry Pi 2) kernel 5.4.16 .config and it tells me:

Code:
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
CONFIG_TOUCHSCREEN_EDT_FT5X06=m
CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m
There must be something else causing this issue. I don't have a touchscreen so I'm unable to assist with any practical support.

[EDIT#4] I just checked the SARPi3 (Raspberry Pi 3) kernel 4.19.89 .config and found this:

Code:
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
CONFIG_TOUCHSCREEN_EDT_FT5X06=m
CONFIG_TOUCHSCREEN_RPI_FT5406=m
But there doesn't appear to be a setting for 'CONFIG_TOUCHSCREEN_RASPBERRYPI_FW' in the RPi3 kernel 4.19.89 .config

Last edited by Exaga; 02-02-2020 at 01:35 PM. Reason: more .config touchscreen settings
 
Old 02-03-2020, 10:03 AM   #3
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Original Poster
Rep: Reputation: Disabled
@Exaga thanks for looking into this!

I believe that's correct, that the relevant change causing the issue is the change from:
4.19: CONFIG_TOUCHSCREEN_RPI_FT5406=m

to

4.20/1 and later: CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m

Raspbian is still on 4.19 so nothing I can currently learn from there. I'll wait for Raspbian to rev to a newer kernel and see what I can learn once they do that.
 
1 members found this post helpful.
Old 02-03-2020, 11:08 AM   #4
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by eduardr View Post
@Exaga thanks for looking into this!

I believe that's correct, that the relevant change causing the issue is the change from:
4.19: CONFIG_TOUCHSCREEN_RPI_FT5406=m

to

4.20/1 and later: CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m

Raspbian is still on 4.19 so nothing I can currently learn from there. I'll wait for Raspbian to rev to a newer kernel and see what I can learn once they do that.
OF COURSE! It's very much in my interest to ensure any software released by the SARPi Project is working as expected so I need to look into problems such as yours.

Also thanks for letting me know about this problem because it does highlight an issue which I would never have found - as I don't use touchscreen. I have done some research online about the official 7" touchscreen on the RPis and it seems that it can be a troublesome affair on most Linux distros - including Raspbian! I'm not surprised you found it difficult to locate information to help in problem-solving because I found the same thing, unless you are using Raspbian! haha!

Waiting for the RPi guys to decide which kernel version they will ship next after 4.19 is one option available to you. Troubleshooting and testing yourself is another (I read that users have been successful on Ubuntu and Gentoo with this touchscreen). Installing a previous 4.19 kernel and modules will undoubtabley solve your issue until a later date. I know that's only a stop-gap but your Raspberry Pi 3 won't be any worse off for it.
 
1 members found this post helpful.
Old 02-05-2020, 09:22 AM   #5
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Original Poster
Rep: Reputation: Disabled
Tried a couple of other things -

Touchscreen module under Linux 4.19.89-v7-arm:
$ rmmod rpi_ft5406: touchscreen stops working
$ modprobe rpi_ft5406: touchscreen works again

Compared lsmod:
$ lsmod (on Linux 4.19.89-v7-arm)
$ lsmod (on Linux 5.4.16-v7-arm)

-> The only modules that are missing moving from 4.19 to 5.4 are v4l2_common (not relevant to touch) and rpi_ft5406 (runs touchscreen under 4.19).

I'll look into Gentoo/Ubuntu and see what I can learn.

Thanks again.
 
Old 02-06-2020, 01:47 AM   #6
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by eduardr View Post
Tried a couple of other things -

I'll look into Gentoo/Ubuntu and see what I can learn.

Thanks again.
It might be possible to 'borrow' from other distributions; whatever firmware/modules are needed to make the hardware work. Any OS would probably have to be running the same kernel major version but you'd surely find out through 'trial and error' testing to see what worked, or not as the case may be. Given that this can be simple, or a complete PITA, it's up to you to decide if it's worth it while there are alternatives.

FWIW: If I were in your shoes I'd revert to kernel 4.19.x release and wait a while, if touchscreen was that crucial to the setup. You might find that after spending considerable time (days/weeks/months) solving this problem - with or without success - that something somewhere else gets fixed upstream and your efforts have been somewhat squandered. It's happened to me a few times in my experience, and it's so damned annoying!
 
Old 02-11-2020, 08:57 PM   #7
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Original Poster
Rep: Reputation: Disabled
Touchscreen works again on newest sarpi kernel 5.4.18-v7-arm! Not sure what magic made it happen .
 
Old 02-12-2020, 01:35 AM   #8
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by eduardr View Post
Touchscreen works again on newest sarpi kernel 5.4.18-v7-arm! Not sure what magic made it happen .
Then, thanks to the RPi guys for that because something obviously got fixed upstream - saving me the time and effort of butchering it myself.
 
Old 02-12-2020, 01:56 PM   #9
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Original Poster
Rep: Reputation: Disabled
Turns out the issue was fixed by an updated rpi-ft5406.dtbo overlay.

I confirmed by copying rpi-ft5406.dtbo from the contents of the package sarpi3-boot-firmware-armv7-1_slackcurrent_08Feb20_sp1 to my system running 5.4.16 and sarpi3-boot-firmware-armv7-1_slackcurrent_31Jan20_sp1 and this made the touchscreen work under 5.4.16 after rebooting.
 
2 members found this post helpful.
Old 02-13-2020, 12:08 AM   #10
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by eduardr View Post
Turns out the issue was fixed by an updated rpi-ft5406.dtbo overlay.
The Raspberry Pi device tree blobs are supported from userspace by means of 'overlays' but they're actually built off the back of the kernel [a.k.a. 'make dtbs'] just like the modules - i.e. from the same source code as the kernel, etc. This page gives you some idea of the order of things: https://www.raspberrypi.org/document...el/building.md
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SARPi - installer and packages for RPi 4 Exaga Slackware - ARM 2 06-28-2019 05:49 PM
LXer: GNOME 3.33.2 Released, Krita 4.2 Debuts, RPi Camera Modules on RPi Zeros Power the Penguin Watch Project, Intrinsyc Switches Its Home LXer Syndicated Linux News 0 05-30-2019 06:23 AM
SARPi website new URL - sarpi.co.uk Exaga Slackware - ARM 4 01-28-2018 06:36 PM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration