Page 1 of 1

How to launch automatically qlcplus at startup

Posted: Sat Mar 07, 2015 1:25 pm
by 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

How to launch automatically qlcplus at startup

Posted: Sun Mar 08, 2015 7:59 pm
by stef35
first of all, you need to start at level 5 (server X started)

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 8:04 am
by 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?

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 9:48 am
by 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 ?

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 1:17 pm
by 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

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 1:25 pm
by 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.

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 2:53 pm
by stef35
ok, so there is no way to launch qlcplus without launching the GUI?

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 3:37 pm
by Massimo Callegari
no, not possible atm

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 7:04 pm
by stef35
ok, too bad. maybe a futur feature ? ;-)
thanks anyway

How to launch automatically qlcplus at startup

Posted: Mon Mar 09, 2015 9:26 pm
by 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.

How to launch automatically qlcplus at startup

Posted: Tue Mar 10, 2015 12:57 pm
by 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