Hi Colin,colinstahl wrote: ↑Sat Jun 30, 2018 3:48 pmHi Jurgen.
Thanks for your suggestions.
The screen is plugged on to the GPIO header and has a small HDMI connector for video, so I assume the video is through the HDMI and the touchscreen control is through the GPIO header.
If I manually replace the 'GPIO 25' entries for Vol+, Vol-, Random, Skip, Left, and Right in fruitbox.btn, fruitbox will start (no duplication error), but the touchscreen does not respond.
Interestingly, if I assign only one button to GPIO 25 in fruitbox.btn file, to avoid the duplication error, then reboot, that function will work when I touch the screen anywhere. It's like the touchscreen is working as one giant button.
Thanks again
Colin
Looks like it's passing the necessary information. Touch event, x and y coordinates. It was just a thought. You could try the other driver, but since it's working on the desktop that's probably not the issue.colinstahl wrote: ↑Sat Jun 30, 2018 10:16 pmHi Steve. I ran evtest, it only identified one device, as per log below;
the events in the log are from 2 screen touches, top left, then bottom right.
[email protected]:~/rpi-fruitbox-master $ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: ADS7846 Touchscreen
Select the device event number [0-0]: 0
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "ADS7846 Touchscreen"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 3484
Min 0
Max 4095
Event code 1 (ABS_Y)
Value 3357
Min 0
Max 4095
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 65535
Properties:
Testing ... (interrupt to exit)
Event: time 1530394793.358354, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1530394793.358354, type 3 (EV_ABS), code 0 (ABS_X), value 314
Event: time 1530394793.358354, type 3 (EV_ABS), code 1 (ABS_Y), value 375
Event: time 1530394793.358354, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65212
Event: time 1530394793.358354, -------------- SYN_REPORT ------------
Event: time 1530394793.378330, type 3 (EV_ABS), code 0 (ABS_X), value 302
Event: time 1530394793.378330, type 3 (EV_ABS), code 1 (ABS_Y), value 385
Event: time 1530394793.378330, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65220
Event: time 1530394793.378330, -------------- SYN_REPORT ------------
Event: time 1530394793.395412, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1530394793.395412, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1530394793.395412, -------------- SYN_REPORT ------------
Event: time 1530394813.928333, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1530394813.928333, type 3 (EV_ABS), code 0 (ABS_X), value 3554
Event: time 1530394813.928333, type 3 (EV_ABS), code 1 (ABS_Y), value 3813
Event: time 1530394813.928333, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65252
Event: time 1530394813.928333, -------------- SYN_REPORT ------------
Event: time 1530394813.948330, type 3 (EV_ABS), code 0 (ABS_X), value 3538
Event: time 1530394813.948330, type 3 (EV_ABS), code 1 (ABS_Y), value 3810
Event: time 1530394813.948330, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65266
Event: time 1530394813.948330, -------------- SYN_REPORT ------------
Event: time 1530394813.968321, type 3 (EV_ABS), code 0 (ABS_X), value 3535
Event: time 1530394813.968321, type 3 (EV_ABS), code 1 (ABS_Y), value 3665
Event: time 1530394813.968321, -------------- SYN_REPORT ------------
Event: time 1530394813.988335, type 3 (EV_ABS), code 0 (ABS_X), value 3518
Event: time 1530394813.988335, type 3 (EV_ABS), code 1 (ABS_Y), value 3776
Event: time 1530394813.988335, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65269
Event: time 1530394813.988335, -------------- SYN_REPORT ------------
Event: time 1530394814.008325, type 3 (EV_ABS), code 0 (ABS_X), value 3531
Event: time 1530394814.008325, type 3 (EV_ABS), code 1 (ABS_Y), value 3694
Event: time 1530394814.008325, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65254
Event: time 1530394814.008325, -------------- SYN_REPORT ------------
Event: time 1530394814.028319, type 3 (EV_ABS), code 0 (ABS_X), value 3558
Event: time 1530394814.028319, type 3 (EV_ABS), code 1 (ABS_Y), value 3649
Event: time 1530394814.028319, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 65073
Event: time 1530394814.028319, -------------- SYN_REPORT ------------
Event: time 1530394814.045411, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1530394814.045411, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1530394814.045411, -------------- SYN_REPORT ------------
it's obviously doing something, not sure what though. lol.
Could it be a driver issue? I used the one on the CD that came with the touchscreen, but the instructions pointed me to a url with a driver that had a different filename....
Anyway, thanks!
Looks like you've covered the bases. Hopefully Mike and Jurgen can help you more than I can...colinstahl wrote: ↑Sat Jun 30, 2018 11:17 pmHey Steve
Yes, I have this script in my .bashrc;
# autostart fruitbox
cd rpi-fruitbox-master
sudo ./fruitbox --cfg skins/TouchOne/fruitbox.cfg --touch-device ADS7846
Hi Colin,colinstahl wrote: ↑Sun Jul 01, 2018 4:44 pmHi Jurgen
Thanks for you input as well.
I took Steve's suggestion and manually replaced the 'GPIO 25' entries in the fruitbox.btn file with 'touch', and now when I run fruitbox I get this message;
[touch areas]
ButtonRandom = 423 421 94 53
ButtonSkip = 546 421 94 53
ButtonLeft = 663 421 48 53
ButtonRight = 724 421 45 53
ButtonVol- = 38 421 32 53
ButtonVol+ = 98 421 32 53
I assume these are min and max x,y coordinates for the button touch areas, but when I run evtest the smallest values I can generate in the top left corner of my screen are around 150,400, and the bottom right comes in about 3800,3800. That being said, It appeared to me that if fruitbox was running the touchscreen with these button coordinates they would be all up in the upper left corner of the screen, so I poked around with my stylus in that corner, and was able to find all of the functions by poking various areas in that corner. So, it appears the touchscreen is working, but the min/max values for the button areas need to be configured to work with my screen.
Seems like progress to me
I will read up on remapping the min/max button x,y coordinates in the user guide.
Thanks everyone,
I will report my success or failure.
Colin
Code: Select all
TouchMin = 0 0
TouchMax = 3800 3800
Code: Select all
wget https://github.com/chundermike/rpi-fruitbox/raw/master/fruitbox-1.12-debug-colin-1
sudo chmod +x ./fruitbox-1.12-debug-colin-1
Code: Select all
sudo ./fruitbox-1.12-debug-colin-1 --config-buttons --calibrate-touch
fruitbox wrote: Hi Colin,
I've put a debug version of fruitbox on Github for you to try...
Run this with the--config-buttons and --calibrate-touch command line options and let me know if you still get the GPIO 25 issue...Code: Select all
wget https://github.com/chundermike/rpi-fruitbox/raw/master/fruitbox-1.12-debug-colin-1 sudo chmod +x ./fruitbox-1.12-debug-colin-1
Code: Select all
sudo ./fruitbox-1.12-debug-colin-1 --config-buttons --calibrate-touch
Cheers,
Mike
Code: Select all
# fruitbox.btn button mapping file
# Missing buttons will assume their default values (see user guide)
TouchDevice = ADS7846
TouchMin = [min x] [min y]
TouchMax = [max x] [max y]
ButtonVol + = Touch
ButtonVol- = Touch
ButtonRandom = Touch
ButtonSkip = touch
ButtonLeft = Touch
ButtonRight = Touch
evtest also indicates min and max values through its report (looking at a previous post it appears to be min 0,0; max 4095, 4095).
Hi Mike,
Hi,
Code: Select all
Automatically run fruitbox on power up
--------------------------------------
To run fruitbox automatically on power up, add the following
lines to ~/.bashrc :
cd <directory where fruitbox is installed>
sudo ./fruitbox --cfg <your cfg file>
Hi Mike, Jurgen.fruitbox wrote:evtest also indicates min and max values through its report (looking at a previous post it appears to be min 0,0; max 4095, 4095).
Mike
ok, just so nobody gets confused:mamer999 wrote: ↑Wed Jul 04, 2018 1:31 pmHi Mike,
just so we do not misunderstand. Min / Max 0 - 4095 are the limits of touch resolution. But I think, fruitbox needs the values that are reported at a touch in the corners, so that this can be synchronized with the physical resolution of the display? On my display with deviating touch resolution in fruitbox.btn is min always greater 0 (500 for example) and max always much smaller than e.g. 4095.
Cheers
Jürgen
Hi,joggyBnoob wrote: ↑Thu Jul 05, 2018 8:35 amHello Mike,
Is it possible to create a button who can delete the file fruitbox.db ?
The idea would be to run Fruitbox and the action of one button 'DeleteDB' will delete the file before power off.
this is usefull pour those who use a USB memory stick and want modify their MP3 list.
Cheers.
JoggyBnoob.
joggyBnoob wrote: ↑Thu Jul 05, 2018 8:35 amHello Mike,
Is it possible to create a button who can delete the file fruitbox.db ?
The idea would be to run Fruitbox and the action of one button 'DeleteDB' will delete the file before power off.
this is usefull pour those who use a USB memory stick and want modify their MP3 list.
Cheers.
JoggyBnoob.