How to launch automatically qlcplus at startup

All the topics related to QLC+ on the Raspberry Pi
Post Reply
stef35

I would like to launch qlcplus automatically at startup.
i know i need to use the option -o and -p for this
I have tried to launch it in the profile of user and activate the autolgin.
i have tried as well a startup script with the same command line, but so far, so not good.

Thanks for your help guys
stef35

first of all, you need to start at level 5 (server X started)
stef35

it is a shame to need a x server started, isn it?
i mean, qlc+ has already the option -o and -p to be able to be launched automatically, what s the point to get a GUI launched all the time?
i miss something?
Massimo Callegari

The image I provide doesn't have a X server and QLC+ is started automatically at boot.

Now if you explain us what you're doing, that would help.
Are you building QLC+ on the RPi yourself ?
stef35

hi massimo

it is what i have seen in another post, you don't use x server in your raspberry image.
that 's a great news, as i only want to launch qlcplus without any GUI. The triggers will be done via midi input.

What is the way? at the moment, i use the command line with -o and -p options, but it asks me a x sever.

And yes, i have built my own raspbian image and compiled qlc+ source, as i usually do for my projects.

Thanks for your help
Massimo Callegari

I didn't say the image I provide doesn't have a GUI. It does, but not on X11.
I built Qt5 myself and I do not use the X11 platform plugin.
stef35

ok, so there is no way to launch qlcplus without launching the GUI?
Massimo Callegari

no, not possible atm
stef35

ok, too bad. maybe a futur feature ? ;-)
thanks anyway
stef35

i am damned ;-(
i have succeeded to launch qlcplus at boot time
key strokes work properly, but no midi input
when i open a putty, and launch another qlcplus GUI, this time, midi input work

Does this could work on your raspberry image? I mean,i don t want to connect to anything at show time, i just want a plug and play staff, when i strike on my midi pad, scene is playing. Of course, configuration will have been set up before.
If this could work with your raspberry image, i am ok to donate, no pb.
stef35

Found it....
It was only issue on right permission when launching qlcplus. You need to use sudo.

To resume, to get it worked on a raspbian, you need:
- start x server at boot time: in rc.local file, add the line
su -l pi -c startx
- autologin // in /etc/inittab
comment the line: 1:2345:respawn:/sbin/getty 115200 tty
add the line: 1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1
- create a shell script /home/pi/start.sh like this:
sudo qlcplus -o -p &
- autostart it: in the file /etc/xdg/lxsession/LXDE/autostart, add the line
@sh /home/pi/start.sh

that s it
Hope this help
Post Reply