Waveshare 3.2 raspberry pi3 install ok, QLC not autostarting

All the topics related to QLC+ on the Raspberry Pi
Post Reply
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Hi,

Love the software! Now just trying it on Raspberry pi 3 with official image- starts up no problem, have issue with autostart after install of Wave share SpotPear 3.2 display (connects directly to pins on board)

(I 'm sorry if this is obvious and a stupid question! I am very new to raspberry pi!)-

Installed git first, installed driver from Waveshare git hub- and voila touchscreen display works! Their instructions on their wiki appear to work, which is good and can switch between touchscreen and main HDMI monitor

However I see that QLC no longer autostarts - I just have the log in screen available- I have had many, many hours searching internet for solution to what might be simple!



I think the driver has affected a config file ? somehow and I'm not sure how to get it fixed! Any ideas folks! Sorry if this is something simple I have missed! Cheers, (I'm 52 which may explain things :-) )

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

Hi, what if you launch qlcplus from a terminal?
That should give you an indication if it runs and is not visible or if it stops immediately. The second case might be quite difficult to debug.
User avatar
GGGss
Posts: 2732
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

Did you have a look at this here? A sort like troubleshooting ... viewtopic.php?t=1818&start=20
All electric machines work on smoke... when the smoke escapes... they don't work anymore
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Hi,

Thank you very much!

(I have tried this with both an external monitor on HDMI or with touchscreen active (only one screen can run at a time)

I did try to start diredtly from terminal;

sudo service qlcplus start - (and stop and restart) but nothing occured - waits a few seconds and then I can enter another command
I ran the command to see status of QLC plus:

and got
pi systend(1): Starting LSB Q Light controller Plus...
pi qlcplus(487): Starting Q Light Controller Plus: qlcplus
pi systend(1): Started LSB: Q Light Controller Plus

So I think (!) it looks like it is starting up, but I cannot see any action.

Cheers!

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

the following command will tell you if QLC+ is running or not:

Code: Select all

ps -ef | grep qlcplus
If it's running then it means you'll have to tweak the startup command in /etc/init.d/qlcplus
probably adjusting the output device, but I'm not sure since I don't know how the driver for your display works
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Ah, Thank you for your guidance-


The ps -ef | grep qlcplus gives

pi 780 644 0 09:14 ttyl 00:00:00 grep --color=auto qlcplus

I think this means it is not running, maybe started then stopped? Not sure if this is the case, or if it is fixable. No problem if not I will run without screen (its for a portable band lighting bar with footswitch)

Cheers and glad 2021 is nearly done! :-)

Al
Last edited by ALt on Fri Dec 31, 2021 9:28 am, edited 1 time in total.
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Please run QLC+ without systemd. Simply:

Code: Select all

qlcplus
and see if it gives any indication why it's not starting
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Hi Massimo,

Thank you for looking at this- if not possible to fix it is totally ok!

I typed just: qlcplus

and I had the answer:

qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

Thanks!

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

Right, sorry, the proper command is:

Code: Select all

qlcplus -platform eglfs
(the same of the official image)
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Hi,

Happy new year all!

OK , i typed in command: qlcplus -platform eglfs

And receive:

Could not find DRM device
Aborted

Cheers,

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

OK, that is the issue. The display driver is not integrated with OpenGL so QLC+ (Qt) cannot use it
Try this:

Code: Select all

qlcplus -platform linuxfb
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Hi,

That's very helpful, QLC did start up, but I need to spend some time learning PI better... ( no touch input and no visible close button now)

As gig looming reinstalled the official image and loaded up show as auto start in root/qlc. Did auto start once and now doesn't and if I manually try to open it get message unable to access resource. Weird as did work and auto start before!

Any ideas? I did look at forum and see just saving to root/qlc as auto start should be enough but isn't working consistently sadly. Otherwise will take old laptop to gig but not ideal as used for synth sounds as well :ugeek:

Cheers,

Al :)
ALt
Posts: 7
Joined: Wed Dec 29, 2021 9:48 am
Real Name: Alasdair Thompson

Sorry, removed touchscreen and it now works. Probably going headless now, but cheers for the support, appreciate it man
Post Reply