New SD image setup script

I haven´t any part from the kit, but after doing these changes I can start gui (no need to change fb1->fb0) simply ssh’ing, start qjack and running zynthian.sh (i´ve changed hw:0 to hw:CODEC in jackd line). ATM I didn´t manage to have any sound from MOD-HOST, due to audio card drops.

Very responsibe, I noticed I can use cursor keys and mouse to navigate up-down. There is, at least, some keys to ENTER and/or leave submenu?

BTW: even if you don´t change anything, thank you for your work!
(tios estoy como un niño chico el dia de reyes)

Hi @TontimerWeber!

The Zynthian GUI is not intended to be used with a mouse and keyboard, so there are no keys for doing anything, only the standard keys associated by default by the GUI toolkit (tkinter).
Perhaps it’s a good idea to configure some keyabord’s keys… but also, you could test the emulator … or better, build a zynthian box :wink:

Enjoy!

I´m a noobie, thanks for your understanding. Of course I´ll have one, just waiting for some aguinaldo (xmas gift in spanish)

Jeje! Of course!! In the next revision i will create some standard keyboard shortcuts for the Zynthian GUI, so people can test the GUI from a standard terminal :wink:

Regards!

Hi @C0d3man!

I have added your last fix to the setup script. Also, i’ve edited the original post and modified the second command to use screen.

Regards!

Hi @C0d3man!

You have to put a “zynthian_hw_version.txt” with “PROTOTYPE-3H” in the “/zynthian” directory. Probably this will change in a few days :wink:

Yes. This happends because there is no pedalboards in the folder. I should copy some example pedalboards.

Yes. I’ve this problem too. I’m trying to figure what is the problem. I can’t see any problem in the installation process, o probably the problem is related to the last changes in the MOD software. Any help with this will be welcome :wink:

Regards!

Hi @C0d3man and @all!

I’ve been tracing the audio output connection problem and i can see that mod-ui is trying to connect to “mod-monitor” instead of “playback”. And “mod-monitor” outputs doesn’t exist in zynthian, so this is the problem.
Searching in the mod-ui repository, i’ve seen that falktx has made, recently, some changes related to monitor outputs, so it should be easy to find the problem.

Regards!

OK! The problem is solved now and the repository is updated :wink:

Hi @jofemodo

many thanks for fixing!!!

Ahhh, ok - i thought it was a special problem on my installation. Just saw that there were much changes on mod-host. Hm - very strange what they have done. I currently have no idea for what the changes are needed - we will see. I think I will checkout an older version :wink:

Regards, Holger

Better use the modified version from zynthian repository :wink:

Hi @C0d3man!

I’m having problems when saving “new” pedalboards. Can you confirm the issue?

Thanks!

Hi @jofemodo

Confirmed! But if you wait about 1 minute it works… strange…

Regards, Holger

Hi @jofemodo

Found the problem: You have to start mod-monitor. This is an internal jack-client so you have to load it after starting jack with jack_load mod-monitor. I have added this to the systemd service and loaded mod-host also as an internal client. Also disabled the mod-host service and it works!

systemctl stop mod-host
systemctl disable mod-host
cat > /etc/systemd/system/jack2.service <<EOF
[Unit]
Description=JACK2 Audio Server
After=sound.target

[Service]
LimitRTPRIO=infinity
LimitMEMLOCK=infinity
Environment=HOME=/root
Environment=LV2_PATH=/zynthian/zynthian-plugins/lv2:/zynthian/zynthian-my-plugins/lv2
WorkingDirectory=/root
ExecStart=/usr/local/bin/jackd -P70 -t2000 -s -d alsa -dhw:0 -r44100 -p256 -X raw -n2
ExecStartPost=/usr/local/bin/jack_load mod-host
ExecStartPost=/usr/local/bin/jack_load mod-monitor

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl restart jack2
systemctl restart mod-ui

Regards, Holger

1 Like

Hi @C0d3man!

Your solutions is quite elegant, but i would prefer to not enable mod-monitor “by now”. It’s only a hub that redirect output to system output and, if available, to mod-peakmeter.

Using environment variables we can disable the mod-monitor feature in mod-ui:

Environment=MOD_APP=1
Environment=MOD_LIVE_ISO=1

But this also produces some unwanted side effects, like disabling “pedalboards bank feature” in the GUI, so, i’ve modified mod-ui, adding a custom environment variable that only disable mod-monitor usage:

Environment=MOD_APP=0
Environment=MOD_LIVE_ISO=0
Environment=MOD_SYSTEM_OUTPUT=1

As you can see, the zynthian mod-ui fork also add some extra messages to websocket protocol that are needed for sending the pedalboard name to the zynthian UI:

When the new image is released, i will try to get this changes into the MOD main trunk. Will see … :wink:

Regarding the mod-host change to run as a jack internal client, i like this, so i will try to integrate it in the new image.

Regards!

Another way (without touching mod-ui) is to use ‘jack_alias’ to create name aliases for mod-ui…

Regards, Holger

Hi @C0d3man!
Finally we will use older (and more stable) versions of mod-ui and mod-host. FalkTx has recommended to do so.

Regards!

Hi @jofemodo,

found another problem:
in ~/zynthian-sys/scripts/setup_system_rbpi_minibian_jessie.sh, line 324:

wget Download Fantasia-0.9.jar (JSampler)

This redirects to HTTPS and than ERROR: The certificate of ‘vorboss.dl.sourceforge.net’ is not trusted.

I suggest to change line this to the following to avoid this error (or disable using fantasia complete?):

wget --no-check-certificate Download Fantasia-0.9.jar (JSampler)

Regards, Holger

Hi @jofemodo,

another suggestion:
Add to /root/.bashrc the following:

export ZYNTHIAN_DIR=“/zynthian”
export ZYNTHIAN_SW_DIR=“${ZYNTHIAN_DIR}/zynthian-sw”
export ZYNTHIAN_UI_DIR=“${ZYNTHIAN_DIR}/zynthian-ui”
export ZYNTHIAN_SYS_DIR=“${ZYNTHIAN_DIR}/zynthian-sys”
export ZYNTHIAN_DATA_DIR=“${ZYNTHIAN_DIR}/zynthian-data”
export ZYNTHIAN_RECIPE_DIR=“${ZYNTHIAN_DIR}/zynthian-recipe”
export ZYNTHIAN_PLUGIN_DIR=“${ZYNTHIAN_DIR}/zynthian-plugins/lv2”
export LV2_PATH=“${ZYNTHIAN_PLUGIN_DIR}”

machine=uname -m 2>/dev/null || echo unknown
if [ ${machine} = “armv7l” ]
then
model=cat /sys/firmware/devicetree/base/model 2>/dev/null || echo unknown
if [[ ${model} =~ [3] ]]
then
CPU=“-mcpu=cortex-a53”
FPU=“-mfpu=neon-fp-armv8”
else
CPU=“-mcpu=cortex-a7 -mthumb”
FPU=“-mfpu=neon-vfpv4”
fi
FPU=“${FPU} -mneon-for-64bits”
fi
echo “Hardware: Architecture: ${machine} Model: ${model}”
export CFLAGS=“${CPU} ${FPU}”
export CXXFLAGS=${CFLAGS}

It would be nice to have the standard variables exported for using when logged in. The rest of the statements configures the compiler flags on base of Raspi2 or Raspi3 which (perhaps?) creates more optimized binaries.

Regards, Holger

Hi @jofemodo,

and another one:
Please add

apt-get install -y lvtk-tools

to /zynthian/zynthian-sys/scripts/recipes/install_dexed_dcoredump.sh. If not, no ttl2c helper program will be found.

Regards, Holger

Hi @C0d3man!

The fantasía installation fixup and your improvements for .bashrc are accepted. It will be in the repo this morning.
Regarding the last one, i was installing lvtk from git repo, using your “recipe”. Do you think is better to install from the repo?

Regards!