Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2605

Raspberry Pi OS • RaspberrypiOs Lite Chromium wrong resolution/image

$
0
0
Hello people, I'm having some problems.

On a raspberrypi 3 model B, I have RaspberrypiOs Lite 32bits bookworm installed. (Using Raspberrypi Imager)

I followed a tutorial to make chromium work in kiosk mode.

In a fresh install. I make this configurations:
sudo raspi-config (boot options, autologon options, text console-autologin as pi)

sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox

sudo apt-get install --no-install-recommends chromium-browser

sudo nano /etc/xdg/openbox/autostart

xset s off (disable screensaver)

xset s noblank (disable monitor going sleep)

xset -dpms (disable monitor going sleep)

chromium-browser --incognito --disable-inforbars --kiosk 'mylocalserverURL'

nano .bash_profile

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx

The raspberry connects to a web app, which is served by a local server.
But the image looks completely stretched.
At the time of testing, using a 24-inch monitor with 1920x1080, it looks perfect.

But with the monitors that the Raspberry would actually use, which are 19 inches wide, the image looks very stretched.
If I install and boot the raspberry with raspberrypiOs with desktop or GUI... It looks very good on the 19-inch monitor too.

The resolution used in this case is 1366x768.

But it's like I can't get this resolution to apply to the raspberrypiOs Lite with chromium in kiosk mode.

I've tried several things, but I can't solve it. This is something I covered:
sudo nano /etc/xdg/openbox/autostart
xrandr --output HDMI-1 --mode 1366x768
sudo nano /boot/firmware/config.txt
hdmi_group=2
hdmi_mode=81
framebuffer_width=1366
framebuffer_height=768

This is how it should be seen in the monitor:
https://imgur.com/a/ovUwJ7Y
And this is the image actually, very streched:
https://imgur.com/a/Vk5lyzv

Sorry for the bad English.

And if anyone could give me some help, I would greatly appreciate it.

Statistics: Posted by ARGsata — Thu Jan 02, 2025 12:21 pm



Viewing all articles
Browse latest Browse all 2605

Trending Articles