Can't get web service to work with no screen plugged in

All the topics related to QLC+ on the Raspberry Pi
Post Reply
smadds
Posts: 8
Joined: Wed Jul 15, 2015 11:51 pm
Real Name: Simon

I'm using the latest RPi img download onto a Pi 2b. I just want to use it with web remote control, but without a screen plugged in I cannot access the device on port 9999.

SSH works fine, and if I try to run the "sudo qlcplus" from the command line I get the following error:

Code: Select all

sudo qlcplus
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
Any ideas?
smadds
Posts: 8
Joined: Wed Jul 15, 2015 11:51 pm
Real Name: Simon

Also, service status if its any help:

Code: Select all

sudo service qlcplus status
● qlcplus.service - LSB: Q Light Controller Plus
   Loaded: loaded (/etc/init.d/qlcplus; generated)
   Active: active (exited) since Sat 2019-10-19 18:42:35 BST; 15h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 334 ExecStart=/etc/init.d/qlcplus start (code=exited, status=0/SUCCESS)

Oct 19 18:42:35 rpi-wc-lights systemd[1]: Starting LSB: Q Light Controller Plus...
Oct 19 18:42:35 rpi-wc-lights qlcplus[334]: Starting Q Light Controller Plus: qlcplus.
Oct 19 18:42:35 rpi-wc-lights systemd[1]: Started LSB: Q Light Controller Plus.
Uncle
Posts: 6
Joined: Sun Sep 15, 2019 4:57 pm
Real Name: Eric Branson

Please see this thread. It is a know issue and can be solved by editing config.txt
viewtopic.php?t=13738
smadds
Posts: 8
Joined: Wed Jul 15, 2015 11:51 pm
Real Name: Simon

Thank you so much for taking the time to reply, Eric. That worked perfectly.

Maybe something could be added to the RPi documentation to highlight this to others wanting to use one without a monitor? Something like:

WARNING - Monitor needed
If you plan to use your RPi without a monitor, QLC+ will not be able to run unless you make a configuration change to the RPi.

To do this, first SSH into the device (e.g. using Putty, default user: pi password: raspberry), then edit the config file (sudo nano /boot/config.txt). Add the following on a new line at the bottom of the file:

Code: Select all

# Allow booting without monitor
hdmi_force_hotplug=1
Save the file (ctl o, enter, ctl x) then reboot (sudo reboot now). Et voila - QLC+ will be running and you'll be able to access it on port 9999 via a browser.
interact
Posts: 1
Joined: Fri Jul 10, 2020 6:53 am
Real Name: RWatInteract

I've had the same problem as the original poster, but on a HummingBoard2. After trying a lot of things, I found that setting a environment variable with "export QT_QPA_PLATFORM='offscreen' " did the trick. Maybe this also works for a Pi...
MDAR
Posts: 21
Joined: Sat Jan 25, 2020 11:32 am
Real Name: Stuart Hanlon

Maybe I'm lazy, but I just plugged in a £5 4K HDMI dummy plug.
Post Reply