04-28-2024, 09:35 AM
(04-27-2024, 07:06 PM)Tim Curtis Wrote: Look in the file /home/pi/.xinitrc
Below is the command used to determine the screen size. Maybe it's not detecting the correct height?
Code:# Capture screen size
SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"
Hi Tim
yes, there seem to be the problem because fset does not return the expected values. In my pi4 raspian lite with chromium kiosk mode setup values gives:
Code:
$ fbset -s
mode "400x1280"
geometry 400 1280 400 1280 16
timings 0 0 0 0 0 0 0
accel true
rgba 5/11,6/5,5/0,0/0
endmode
while in moode it gives:
Code:
$ fbset -s
mode "400x480"
geometry 400 480 640 1280 16
timings 0 0 0 0 0 0 0
accel true
rgba 5/11,6/5,5/0,0/0
endmode
and therefore to make chromium work in landscape with 1280 x 400 one needs to change .xinitrc as suggested by forum members to
Code:
# Capture screen size
#SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $2","$3 }')"
SCREENSIZE="1280,400"
view port reports correct 1279 x 399
regards
Felix