Page 1 of 1

{Solved}Cadence Autostart Fail at login and little solution

Posted: Sat Sep 05, 2015 9:04 am
by Tesla
Hello Every KX's out there
I am using Kxstudio 14.04b-64-bit with xfce 4.12 Everything Have been Working Except Cadence Autostart(Both in KDE and Xfce)
After Some tinkering and Found Solution it also solves multi-user problems(atleast for me,for now)
->Fisrt Step is Open ur Text Editor(Wow)
-->Second Step is create "Cadence-autostart"(or any name except cadence,cadence-session*)
--->Third Step is Set Permissions open terminal Navigate to file path Enter "chmod 755 ./Cadence-autostart"
---->Fourth Step is Copy the below code and save it
Code:-

Code: Select all

INSTALL_PREFIX="/usr"

export LADSPA_PATH=`$INSTALL_PREFIX/bin/cadence-session-start --printLADSPA_PATH`
export DSSI_PATH=`$INSTALL_PREFIX/bin/cadence-session-start --printDSSI_PATH`
export LV2_PATH=`$INSTALL_PREFIX/bin/cadence-session-start --printLV2_PATH`
export VST_PATH=`$INSTALL_PREFIX/bin/cadence-session-start --printVST_PATH`

unset INSTALL_PREFIX

INSTALL_PREFIX="/usr"

CADENCE_SESSION="$INSTALL_PREFIX/bin/cadence-session-start --system-start"
exec $CADENCE_SESSION &

unset INSTALL_PREFIX
----->Next Copy it to /usr/bin or to ur home directory or any other place(Also make sure that folder has sufficient permission for user to access it)
------>Next make a "Cadence.desktop"(or any other name but don't forget to add .desktop) file and set permission chmod 775 ./Cadence.desktop(Code Below)

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Cadence session startup
Comment=Cadence session startup
Exec=/home/markandeya/cadence.sh
Icon=cadence
Terminal=false
GenericName=
NoDisplay=true
------->Save it and As root navigate to "/etc/xdg/autostart/" copy the Previous .desktop file and reboot Everything should be Fine

I recently Noticed problems with suspend,hibernate,sleep a.k.a screen blanking(Especially in multi-user Environment).Well, What is the solution??

Very simple Don't Suspend or Hibernate,just shutdown or restart and for screen blanking Follow the same procedure above(although change the name of files)
But with code copy and paste the following code:-

Code: Select all

xset -dpms

xset s noblank

xset s off
i don't have a laptop and also don't want sleep while making music or working or tinkering...

so let me know if this works or don't
thank u(ah.. very formal tutorial).

Re: Cadence Autostart Fail at login and little solution

Posted: Sat Sep 05, 2015 4:59 pm
by Tesla
Well,Actually i am using kxstudio 14.04b-64bit because i have quite positive experience with it(Even though there is latest version)
but it is okay because i can update repositories
Did you try the latest cadence?
yes i am using latest version of cadence
I recently made a change that made this work for *all* desktops, by checking a 2nd time in case the DE ignores X11 STARTUP var.
ya i have checked it but somtimes it works and sometimes it doesn't(i don't know why),So there is no stability and moreover there will be power outrages in my area and my sister will be using the system and that's the reason y i have got my own workaround, shared it with community and asked if they have same problems and this method worked for them or not..that's it.
Also, KXStudio is not really meant to be used in a various-users-at-the-same-time setup.Only 1 user can have access to JACK.
Ya i will not login to multiple accounts at once but i will be logged out before logging into another user

Let's put my opinion to the end by saying that this method worked for me even in very ridiculous and very worst situation so try it urself and test it and if it works make it to mainstream, although i cannot say it is the stable way to autostart JACK with cadence but atleast reliable way for me.

Anyway cadence version is still 0.8.1, it may not be perfect but that's why we all are here to make atleast near perfect.
i would like to thank u for ur wonderful work,nobody even consider doing the work so far u have done,It's just uncomparable..

Keep it going...

Re: {Solved}Cadence Autostart Fail at login and little solut

Posted: Sat Sep 05, 2015 5:24 pm
by Tesla
Sorry falkTX i blame my own stupidity because i have not updated repository(quite busy) since u made the commit, so updated and tested it Successfully no more cheap work arounds haha
thank u falkTX and Accept my apoligies once again.... :oops: