Did another test today with a fresh image.
1) delete the video mode from kernel command line
2) revised config.txt (there is a character limit per line; review the touch overlay settings) and added the overlay for the SPI displayThe display connected to the CM4 is http://www.lcdwiki.com/4.0inch_SPI_Module_ST7796
3) Booted the Pi. It started booting, after a few seconds it powered down (8 flashes from green LED) and did not restart on it own
4) re-powered -> CM4 booted, as this seems to be the initial boot it lasted a little longer, then the GUI was shown - but again in 720x480 although the defaults were set to 480x320
Question: is there a script executed which initializes the GUI settings on initial boot? How is the touch aligned/calibrated to the screen size?
5) changed 'Peppy/configuration/config.txt' torebooted and the GUI looks as expected. 6) touch is still misaligned. Might be a problem with my DUT (as I was working on touch overlay and parameters needed to get the touch working correctly ).
Note: 'sudo reboot' from SSH is not working
1) delete the video mode from kernel command line
2) revised config.txt (there is a character limit per line; review the touch overlay settings) and added the overlay for the SPI display
Code:
dtoverlay=ads7846,cs=1,penirq=27,penirq_pull=2,speed=50000dtparam=keep_vref_on=0,swapxy=0dtparam=pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900# 480x320pixels 4in SPI displaydtoverlay=mipi-dbi-spi,speed=48000000dtparam=compatible=4in\0panel-mipi-dbi-spidtparam=write-only,cpha,cpoldtparam=width=480,height=320,width-mm=84,height-mm=56dtparam=reset-gpio=24,dc-gpio=25,backlight-gpio=23
3) Booted the Pi. It started booting, after a few seconds it powered down (8 flashes from green LED) and did not restart on it own
4) re-powered -> CM4 booted, as this seems to be the initial boot it lasted a little longer, then the GUI was shown - but again in 720x480 although the defaults were set to 480x320
Question: is there a script executed which initializes the GUI settings on initial boot? How is the touch aligned/calibrated to the screen size?
5) changed 'Peppy/configuration/config.txt' to
Code:
[screen.info]width = 480height = 320depth = 18frame.rate = 60hdmi = Falseno.frame = Falseflip.touch.xy = Falsemulti.touch = False
Note: 'sudo reboot' from SSH is not working
Statistics: Posted by aBUGSworstnightmare — Mon Mar 04, 2024 7:12 am