display error back again?

All the topics related to QLC+ on the Raspberry Pi
Post Reply
cmdrKEEN
Posts: 1
Joined: Thu May 14, 2020 8:02 am
Real Name:

I just tested the new image and got this:

pi@qlcplus:~ $ sudo qlcplus service status
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

hdmi_force_hotplug=1 does not seem to work in bookworm

as soon as I plug in a monitor it continues to start
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Thanks for reporting.
Unfortunately I can confirm this is back (damnit!)
I haven't tried it yet, but maybe using another platform plugin will help.
Edit

Code: Select all

/usr/sbin/qlcplus-start.sh
and replace

Code: Select all

-platform eglfs
with

Code: Select all

-platform offscreen
or

Code: Select all

-platform linuxfb
If anyone tries before me, please report if it works
fnupp
Posts: 3
Joined: Thu Feb 22, 2018 9:26 am
Real Name: fnupp

Worked for me :-) I tried both the following

-platform offscreen
and
-platform vnc
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Great, thank you.
At least we have a workaround while we wait for an official solution from the RPi foundation devs.
cheltgar
Posts: 15
Joined: Mon Jan 30, 2023 11:22 pm
Real Name: Gareth

Hi

I have run into the same error - now getting the same message from the qlcplus service call.

I have implemented the change above, and this seems to resolve the problem, I now get the Web Page, but im not confident I have implemented the change correctly, and won't run into other problems down the line because of it.
Could someone more knowledgeable please check what I have done

My Original file looked like this (with the comments out at the beginning removed)

Code: Select all

QLCPLUS_OPTS="-platform eglfs --nowm --web --web-auth --operate --overscan"

if [ ! -f $HOME/.qlcplus/eglfs.json ]; then
    mkdir -p $HOME/.qlcplus
    echo '{ "device": "/dev/dri/card1" }' > $HOME/.qlcplus/eglfs.json
fi

if [ -f $HOME/.qlcplus/autostart.qxw ]; then
    QLCPLUS_OPTS="$QLCPLUS_OPTS --open $HOME/.qlcplus/autostart.qxw"
fi

# if NTP hasn't done its job already, set the date to modern age...
CURRDATE=`date +%Y`
if [ "$CURRDATE" -lt "2024" ]; then
    date +%Y%m%d -s "20240313"
fi

export QT_QPA_EGLFS_PHYSICAL_WIDTH=320
export QT_QPA_EGLFS_PHYSICAL_HEIGHT=200
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
export QT_QPA_EGLFS_KMS_CONFIG=$HOME/.qlcplus/eglfs.json

/usr/bin/qlcplus $QLCPLUS_OPTS

And my modified (now working) file looks like this

Code: Select all

QLCPLUS_OPTS="-platform offscreen"
#eglfs --nowm --web --web-auth --operate --overscan"

#if [ ! -f $HOME/.qlcplus/eglfs.json ]; then
#    mkdir -p $HOME/.qlcplus
#    echo '{ "device": "/dev/dri/card1" }' > $HOME/.qlcplus/eglfs.json
#fi

#if [ -f $HOME/.qlcplus/autostart.qxw ]; then
#    QLCPLUS_OPTS="$QLCPLUS_OPTS --open $HOME/.qlcplus/autostart.qxw"
#fi

# if NTP hasn't done its job already, set the date to modern age...
CURRDATE=`date +%Y`
if [ "$CURRDATE" -lt "2024" ]; then
    date +%Y%m%d -s "20240313"
fi

#export QT_QPA_EGLFS_PHYSICAL_WIDTH=320
#export QT_QPA_EGLFS_PHYSICAL_HEIGHT=200
#export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
#export QT_QPA_EGLFS_KMS_CONFIG=$HOME/.qlcplus/eglfs.json

/usr/bin/qlcplus $QLCPLUS_OPTS
Could someone please confirm if this is the correct way to change the file n- or should I have left more uncommented - especially the parameters on the first line.

thanks

Gareth
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

No, the first line should look like this:

Code: Select all

QLCPLUS_OPTS="-platform offscreen --nowm --web --web-auth --operate --overscan"
cheltgar
Posts: 15
Joined: Mon Jan 30, 2023 11:22 pm
Real Name: Gareth

Great - thanks for the information - will adjust
KR
Gareth
Post Reply