Hi,
I use the following HDMI 3.5" touchscreen with the native resolution 480x320:
https://www.waveshare.com/wiki/3.5inch_HDMI_LCD
It's installed on Pi 3 running the latest 'bookworm' OS Lite. In the /boot/config.txt I have:There is only one framebuffer /dev/fb0 in the system.
Here is the first issue - the command fbset returns the following result:I tried to set framebuffer size manually:Why does it show 1280x720?
If I'm trying to calibrate the touchscreen it's using the size 1280x720, not 480x320:Is it possible to change 1280x720 to 480x320?
Thanks!
I use the following HDMI 3.5" touchscreen with the native resolution 480x320:
https://www.waveshare.com/wiki/3.5inch_HDMI_LCD
It's installed on Pi 3 running the latest 'bookworm' OS Lite. In the /boot/config.txt I have:
Code:
dtoverlay=vc4-kms-v3dmax_framebuffers=2framebuffer_width=480framebuffer_height=320...[all]hdmi_group=2hdmi_mode=87hdmi_pixel_freq_limit=20000000hdmi_cvt 480 320 60 6 0 0 0hdmi_drive=1dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
Here is the first issue - the command fbset returns the following result:
Code:
pi@raspberrypi:~ $ fbset -fb /dev/fb0mode "1280x720" geometry 1280 720 1280 720 16 timings 0 0 0 0 0 0 0 accel true rgba 5/11,6/5,5/0,0/0endmode
Code:
pi@raspberrypi:~ $ fbset -fb /dev/fb0 -g 480 320 480 320 16pi@raspberrypi:~ $ fbset -fb /dev/fb0mode "480x320" geometry 480 320 1280 720 16 timings 0 0 0 0 0 0 0 accel true rgba 5/11,6/5,5/0,0/0endmode
If I'm trying to calibrate the touchscreen it's using the size 1280x720, not 480x320:
Code:
pi@raspberrypi:~ $ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibratexres = 1280, yres = 720
Thanks!
Statistics: Posted by peppy.player — Sun Jan 14, 2024 3:32 am