RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
Raspberry Pi 3+ Touch Screen
Author Message
Reply with quote
Post Raspberry Pi 3+ Touch Screen 
Raspberry PI 3B and Raspberry PI touch Screen display

Problem: the touch screen works correctly in the native OS, Browser etc. but the touch screen does not work when running Racecapture.

Also, after I launch /opt/racecapture/run_racecapture.sh the app launches as I would expect it would, finds/connects to the MK3 but keyboard and mouse don't work. I have to power down to get back to a command window.

Have run and re-run display commands from the install guide.

I'm new to Raspberry and my Unix/Linux is about 20 years old, so likely a novice mistake.

Thoughts on what I am missing?

View user's profile Send private message
Reply with quote
Post Re: Raspberry Pi 3+ Touch Screen 
I spent almost all day yesterday playing with RPi and RCP trying to get the touchscreen to behave properly. I have an RPi/RCP setup in the car now using the "official 7" display" and it is fine, but I wanted a smaller screen. I have a 5" screen with an ADS7846 controller. This is what I think is happening: When you install the drivers for your screen and touchpanel everything is fine. If you look at the config.ini called by the run_racecapture.sh script there is a routine that checks for the official display or an AR1100 controller and copies the right info for them into the config.ini. What I don't see is logic that handles when neither of them are present. As a result the config for touchscreen is taken over by the RCP rather than using the config for the right touch system. I might be wrong but I think that is what is happening. I wasn't able to make it work. If I used a regular mouse the app freezes so that isn't a solution.

View user's profile Send private message
Reply with quote
Post  
I don't know (exactly) what fixed my problem, but here's what I did:

1. Started over, from scratch with a new image on a new 32G micro SD (I had originally used a 64G micro SD, and screwed around with exFAT vs. FAT, then fussed with trying to only format the first 32 of the 64 as Fat...well, you get the picture.

2. I installed Stretch Lite (instead of NOOB). So no Raspian desktop, only CLI.

3. Installed Rascapture Pro as normal

4. I added a second power supply: 1 power supply for the PI itself, and a separate power supply for the display.

Rebooted all working well as expect.

Not sure what I did to fix it, but one (or more) of the above did the trick. I ordered the "standard" 7" display from the Official Raspian site. Didn't check the libraries.



Last edited by Vbigdog on Mon Feb 11, 2019 10:50 pm; edited 1 time in total
View user's profile Send private message
Reply with quote
Post  
open the .kivy/config.ini file in your pi and replace the Input stuff so it looks likes this:

[input]
mouse = mouse
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s = probesysfs,provider=hidinput
%(name)s = probesysfs,provider=hidinput

should get you working correctly.

View user's profile Send private message
Reply with quote
Post ADS7846 Touchscreen solution 
SOLUTION: The suggestions above helped me track down the right answer. Now that I knew what I was looking for I was able to get the right INPUT string:

ADS7846 = hidinput,/dev/input/event2,invert_y=0

lsmod returns ads7846 as hwmon

Brent, hopefully this is useful for the autoconfig. The only issue I need to track down is that the cursor doesn't seem to reach all areas of the screen. It works in the regular Pi GUI, but not while in RCP.

View user's profile Send private message
Reply with quote
Post  
Thanks. Could you try updating the startup script and seeing if that works? If so, we can incorporate that into the build.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum