Hallo,
ich habe ein Display am Pi das laut Aufschrift mit 600x1024 Pixel läuft. In der /boot/firmware/config.txt habe ich das hier eingetragen:
Code
hdmi_force_edid_audio=1
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=2
display_rotate=0
hdmi_cvt 1024 600 60 6 0 0 0
Das sind die Einstellungen die für das Display schon bei Aliexpress empfohlen werden. Es wird eine Webseite die auf 1024x600 festgelegt ist
Code
body {
background-color: #f0f0f0;
font-family: sans-serif;
max-width: 1024px;
max-height: 600px;
min-width: 1024px;
min-height: 600px;
}
Nun sollte die Seite doch im Fullscreen-Chromium ohne Scrollbalken dargestellt werden, oder? Laut xrandr läuft der Pi aber weiterhin in Full-HD:
Code
xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.01*+ 60.01 40.02
...
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 50.00 59.94
...
Wie zwinge ich den Pi auf die 600x1024px damit die Seite komplett ohne Scrollbalken dargestellt wird?