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

Troubleshooting • Re: Headless Display Resolution on Bookworm

$
0
0
Same issue found on Pi 3B+ Qt 6.4.2 clean install.
uname -a gives:
Linux bgr03 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux

Using X11 with RealVNC server

Created Qt app with following method:

Code:

void MainWindow::info(){    qDebug() << "Screen information:";    for (auto it = qApp->screens().cbegin(); it != qApp->screens().cend(); ++it)    {        qDebug() << "Screen:" << *it;        qDebug() << "  availableGeometry:" << (*it)->availableGeometry();        qDebug() << "  geometry:" << (*it)->geometry();        qDebug() << "";    }}
On headless boot output is:
Screen information:
Screen: QScreen(0x5581224d20, name=":0.0")
availableGeometry: QRect(0,0 0x0)
geometry: QRect(0,0 0x0)

If booted with HDMI monitor attached:
Screen information:
Screen: QScreen(0x55a424f060, name="HDMI-1")
availableGeometry: QRect(0,36 1920x1044)
geometry: QRect(0,0 1920x1080)

Results same if monitor removed and VNC connected without reboot.

Results of cat /sys/class/graphics/fb0/virtual_size are no file if headless and 1920,1080 if boot with monitor

Menu actions do not appear but are triggered if using keyboard arrows and Enter key. Combobox also has problem where dropdown does not appear.

Statistics: Posted by bruce_rideout — Sat May 25, 2024 1:45 am



Viewing all articles
Browse latest Browse all 4754

Trending Articles