I got 7 Inch Raspberry Pi 4 Model B Touch Screen 1024x600 IPS Capacitive LCD - screen is on sale from different sellers in two version (with and without speakers). Lcd wiki - lcdwiki.com description and driver for raspi you can find on http://www.lcdwiki.com/7inch_HDMI_Display-H.
Touch screen is on Raspberry Bullseye working absolut flawlessly without calibration. I installed Max2play player with Jivelite without any problem. I do not like Max2play much because of limited possibilities and license politics, I prefer Pcp.
On Picoreplayer I experienced problem with touchscreen: LCD screen is working without any problem, even with default settings. It doesn't need any setting in config.txt, for sure I am setting:
#---Begin-Custom-(Do not alter Begin or End Tags)-----
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
#---End-Custom----------------------------------------
dtoverlay=hifiberry-dacplus
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
#---End-Custom----------------------------------------
dtoverlay=hifiberry-dacplus
#export JIVE_NOCURSOR=1
export SDL_VIDEODRIVER=fbcon
export SDL_FBDEV=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/$EVENTNO
export SDL_MOUSEDRV=TSLIB
export SDL_VIDEODRIVER=fbcon
export SDL_FBDEV=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/$EVENTNO
export SDL_MOUSEDRV=TSLIB
tc@pCP:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 /usr/loc
al/bin/ts_calibrate
xres = 800, yres = 480
Took 1 samples...
Top left : X = 1024 Y = 600
Took 1 samples...
Top right : X = 1024 Y = 600
Took 1 samples...
Bot right : X = 1024 Y = 600
Took 1 samples...
Bot left : X = 1024 Y = 600
Took 1 samples...
Center : X = 1024 Y = 600
ts_calibrate: determinant is too small -- 0.000000
Calibration failed.
al/bin/ts_calibrate
xres = 800, yres = 480
Took 1 samples...
Top left : X = 1024 Y = 600
Took 1 samples...
Top right : X = 1024 Y = 600
Took 1 samples...
Bot right : X = 1024 Y = 600
Took 1 samples...
Bot left : X = 1024 Y = 600
Took 1 samples...
Center : X = 1024 Y = 600
ts_calibrate: determinant is too small -- 0.000000
Calibration failed.
export SDL_MOUSEDEV=dev/input/$EVENTNO
I suppose it does man som problem with Tslib - touch doesn't understand screen for some reason. I tried figure out how to modify ts.conf, but without any success. I basically use the same ts.conf as Raspian did:
# Access plugins
################
# Uncomment if you wish to use the linux input layer event interface
module_raw input
# For other driver modules, see the ts.conf man page
# Filter plugins
################
# Uncomment if first or last samples are unreliable
# module skip nhead=1 ntail=1
# Uncomment if needed for devices that measure pressure
module pthres pmin=1
# Uncomment if needed
# module debounce drop_threshold=40
# Uncomment if needed to filter spikes
# module median depth=5
# Uncomment to enable smoothing of fraction N/D
# module iir N=6 D=10
# Uncomment if needed
# module lowpass factor=0.1 threshold=1
# Uncomment if needed to filter noise samples
module variance delta=30
module dejitter delta=100
# Uncomment and adjust if you need to invert an axis or both
# module invert x0=800 y0=480
# Uncomment to use ts_calibrate's settings
module linear
################
# Uncomment if you wish to use the linux input layer event interface
module_raw input
# For other driver modules, see the ts.conf man page
# Filter plugins
################
# Uncomment if first or last samples are unreliable
# module skip nhead=1 ntail=1
# Uncomment if needed for devices that measure pressure
module pthres pmin=1
# Uncomment if needed
# module debounce drop_threshold=40
# Uncomment if needed to filter spikes
# module median depth=5
# Uncomment to enable smoothing of fraction N/D
# module iir N=6 D=10
# Uncomment if needed
# module lowpass factor=0.1 threshold=1
# Uncomment if needed to filter noise samples
module variance delta=30
module dejitter delta=100
# Uncomment and adjust if you need to invert an axis or both
# module invert x0=800 y0=480
# Uncomment to use ts_calibrate's settings
module linear
Update: some values of
tc@pCP:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 /usr/loc
al/bin/ts_print
1680017322.833839: 997 569 255
1680017322.983794: 997 569 0
1680017323.162811: 997 569 255
1680017323.302796: 997 569 0
1680017323.447806: 997 569 255
1680017323.576793: 997 569 0
1680017323.829812: 997 569 255
1680017323.829812: 997 569 255
1680017323.829812: 997 569 255
1680017323.946790: 997 569 255
1680017323.979796: 997 569 0
1680017324.592808: 997 569 255
al/bin/ts_print
1680017322.833839: 997 569 255
1680017322.983794: 997 569 0
1680017323.162811: 997 569 255
1680017323.302796: 997 569 0
1680017323.447806: 997 569 255
1680017323.576793: 997 569 0
1680017323.829812: 997 569 255
1680017323.829812: 997 569 255
1680017323.829812: 997 569 255
1680017323.946790: 997 569 255
1680017323.979796: 997 569 0
1680017324.592808: 997 569 255
some values of
tc@pCP:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 /usr/loc
al/bin/ts_print_raw
1680017407.974838: 1024 600 255
1680017408.103798: 0 0 0
1680017413.196824: 1024 600 255
1680017413.515794: 0 0 0
1680017420.534831: 1024 600 255
1680017420.747793: 0 0 0
1680017421.445813: 1024 600 255
1680017421.626794: 0 0 0
1680017421.932809: 1024 600 255
1680017422.082793: 0 0 0
1680017422.420809: 1024 600 255
1680017422.601796: 0 0 0
1680017423.130815: 1024 600 255
1680017423.332793: 0 0 0
1680017423.713815: 1024 600 255
1680017423.862793: 0 0 0
1680017424.221814: 1024 600 255
1680017424.403795: 0 0 0
1680017426.118820: 1024 600 255
1680017426.234793: 1024 600 255
al/bin/ts_print_raw
1680017407.974838: 1024 600 255
1680017408.103798: 0 0 0
1680017413.196824: 1024 600 255
1680017413.515794: 0 0 0
1680017420.534831: 1024 600 255
1680017420.747793: 0 0 0
1680017421.445813: 1024 600 255
1680017421.626794: 0 0 0
1680017421.932809: 1024 600 255
1680017422.082793: 0 0 0
1680017422.420809: 1024 600 255
1680017422.601796: 0 0 0
1680017423.130815: 1024 600 255
1680017423.332793: 0 0 0
1680017423.713815: 1024 600 255
1680017423.862793: 0 0 0
1680017424.221814: 1024 600 255
1680017424.403795: 0 0 0
1680017426.118820: 1024 600 255
1680017426.234793: 1024 600 255
Many thanks for hints, advice, help .....
Comment