Starting my zynthian build: alternative LCD, DAC, encoders


#1

Hey everyone! Greetings from Brazil! I’m keyboardist and a Java programmer. I’m noob with linux but want to start the build of my zynthian =)

I have:

With this hardware, will I success to build my Zynthian?

I connected the LCD direct on GPIO and have turn raspberry power on (without connect the UCA222). With this, after the boot, I got a screen with Zynthian logo and “ERROR” message in red color.

I have no idea what can I do to advance the zynthian configuration. What are the next steps?
0. How to access a log to try understand the issue (ERROR message) cause?

  1. How to get out the ERROR screen?
  2. How to connect my encoders KY-040?
  3. How to get my UCA222 connected and working?

Sorry for my bad English


#2

There is a lazlo entry in the forum. It seems to be a similar screen.
Rgd logs pls search the blog. There is an entry that describes it.
In short: using ssh, stop service, run manually.
But I reckon that you didn’t change the wiring physically and in the webconf.

Sorry for the short style.


#3

Hi @mheidt! Thanks for your reply!


#4

I was able to access the web interface and changed the display setting for WaveShare 3.5A and achieved better image quality. However, the error screen persists.

A question: do I necessarily need the encoders and the audio to be connected, or with the LCD connected, should I be able to display the zynthian home screen?


#5

you have to wire it up like shown here

And yes, you need the audio. Talking of which. USB Audio is not good enough.

Maybe AudioInjector is shipping to Brazil.
There is a new HighQualitiy one coming up in a couple of months as well.

Please read this
http://wiki.zynthian.org/index.php/Command_Line_User_Guide
Section “Stopping/Starting the Zynthian UIStopping/Starting the Zynthian UI”

Now you see the reason for the error screen.


#6

I had run the commands:

systemctl stop zynthian
and
/zynthian/zynthian-sys/sbin/zynthian.sh

With this second, I get a loop with recurrent messages with JackTemporaryException, Cannot initialize server, JackServer open failed with -1, etc


#7

Audio card…I never tried USB Audio. But maybe someone else can help.
You changed to USB Audio in the webconf?


#8

Yes! I had changed to USB Audio, but doesn’t used extra config.

Ah, I followed your advice and bought an AudioInjector right now. For now, I will use the UCA222 (USB) for testing purposes only. While I wait for AudioInjector to arrive, my goal is to mount the encoders and make it work with the USB audio interface.


#9

I’ve tried getting USB with zynthian to work a couple of times with different USB devices (beringer and Roland) and never managed to get it working, but it’s not been something I’ve pursuid heavily, as I use hifiberry3 amps and audio injectors as my lowest option as USB has ‘overheads’


#10

Hi @wyleu! Thanks for your support =)

I found this thread on zynthian-ui issues github page

Using net (jackd -r -p 8 -d net -C 2 -P 0) I get a GUI running with the screen , but can’t start nothing with no touch response.


#11

new log with more informations

root@zynthian:~# systemctl status zynthian.service -l
● zynthian.service - Zynthian User Interface
Loaded: loaded (/etc/systemd/system/zynthian.service; enabled)
Active: active (running) since Fri 2018-05-11 14:23:22 BST; 4min 14s ago
Main PID: 485 (startx)
CGroup: /system.slice/zynthian.service
├─ 485 /bin/sh /usr/bin/startx ./zynthian.sh – :0 vt3
├─ 562 xinit ./zynthian.sh – /usr/bin/X :0 vt3 -auth /tmp/serverauth.lYzsg6n9MY
├─ 563 /usr/lib/xorg/Xorg :0 vt3 -auth /tmp/serverauth.lYzsg6n9MY
├─ 575 /bin/bash ./zynthian.sh
└─1953 /usr/bin/python3 ./zynthian_gui.py

May 11 14:27:33 zynthian startx[485]: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
May 11 14:27:33 zynthian startx[485]: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
May 11 14:27:33 zynthian startx[485]: JackTemporaryException : now quits…
May 11 14:27:33 zynthian startx[485]: Cannot initialize driver
May 11 14:27:33 zynthian startx[485]: JackServer::Open failed with -1
May 11 14:27:33 zynthian startx[485]: Failed to open server
May 11 14:27:34 zynthian startx[485]: Cannot connect to server socket err = No such file or directory
May 11 14:27:34 zynthian startx[485]: Cannot connect to server request channel
May 11 14:27:35 zynthian startx[485]: Cannot connect to server socket err = No such file or directory
May 11 14:27:35 zynthian startx[485]: Cannot connect to server request channel
root@zynthian:~# root@zynthian:~# systemctl status zynthian.service -l
Loaded: loaded (/etc/systemd/system/zynthian.service; enabled)
Active: active (running) since Fri 2018-05-11 14:23:22 BST; 4min 14s ago
Main PID: 485 (startx)
CGroup: /system.slice/zynthian.service
├─ 485 /bin/sh /usr/bin/startx ./zynthian.sh – :0 vt3
├─ 562 xinit ./zynthian.sh – /usr/bin/X :0 vt3 -auth /tmp/serverauth.lYzsg6n9MY
├─ 563 /usr/lib/xorg/Xorg :0 vt3 -auth /tmp/serverauth.lYzsg6n9MY
├─ 575 /bin/bash ./zynthian.sh-bash: root@zynthian:~#: command not found

       └─1953 /usr/bin/python3 ./zynthian_gui.py

May 11 14:27:33 zynthian startx[485]: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
May 11 14:27:33 zynthian startx[485]: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
May 11 14:27:33 zynthian startx[485]: JackTemporaryException : now quits…
May 11 14:27:33 zynthian startx[485]: Cannot initialize driver
May 11 14:27:33 zynthian startx[485]: JackServer::Open failed with -1
May 11 14:27:33 zynthian startx[485]: Failed to open server
May 11 14:27:34 zynthian startx[485]: Cannot connect to server socket err = No such file or directory
May 11 14:27:34 zynthian startx[485]: Cannot connect to server request channel
May 11 14:27:35 zynthian startx[485]: Cannot connect to server socket err = No such file or directory
May 11 14:27:35 zynthian startx[485]: Cannot connect to server request channel
root@zynthian:~#root@zynthian:~# ● zynthian.service - Zynthian User Interface
-bash: ●: command not found
root@zynthian:~# Loaded: loaded (/etc/systemd/system/zynthian.service; enabled)
-bash: syntax error near unexpected token (' root@zynthian:~# Active: active (running) since Fri 2018-05-11 14:23:22 BST; 4min 14s ago -bash: syntax error near unexpected token(’
root@zynthian:~# Main PID: 485 (startx)
-bash: syntax error near unexpected token (' root@zynthian:~# CGroup: /system.slice/zynthian.service -bash: CGroup:: command not found root@zynthian:~# ├─ 485 /bin/sh /usr/bin/startx ./zynthian.sh -- :0 vt3 -bash: ├─: command not found root@zynthian:~# ├─ 562 xinit ./zynthian.sh -- /usr/bin/X :0 vt3 -auth /tmp/serverauth.lYzsg6n9MY -bash: ├─: command not found root@zynthian:~# ├─ 563 /usr/lib/xorg/Xorg :0 vt3 -auth /tmp/serverauth.lYzsg6n9MY -bash: ├─: command not found root@zynthian:~# ├─ 575 /bin/bash ./zynthian.sh -bash: ├─: command not found root@zynthian:~# └─1953 /usr/bin/python3 ./zynthian_gui.py -bash: └─1953: command not found root@zynthian:~# root@zynthian:~# May 11 14:27:33 zynthian startx[485]: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card -bash: syntax error near unexpected token(’
root@zynthian:~# May 11 14:27:33 zynthian startx[485]: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
-bash: May: command not found
root@zynthian:~# May 11 14:27:33 zynthian startx[485]: JackTemporaryException : now quits…
-bash: May: command not found
root@zynthian:~# May 11 14:27:33 zynthian startx[485]: Cannot initialize driver
-bash: May: command not found
root@zynthian:~# May 11 14:27:33 zynthian startx[485]: JackServer::Open failed with -1
-bash: May: command not found
root@zynthian:~# May 11 14:27:33 zynthian startx[485]: Failed to open server
-bash: May: command not found
root@zynthian:~# May 11 14:27:34 zynthian startx[485]: Cannot connect to server socket err = No such file or directory
-bash: May: command not found
root@zynthian:~# May 11 14:27:34 zynthian startx[485]: Cannot connect to server request channel
-bash: May: command not found
root@zynthian:~# May 11 14:27:35 zynthian startx[485]: Cannot connect to server socket err = No such file or directory
-bash: May: command not found
root@zynthian:~# May 11 14:27:35 zynthian startx[485]: Cannot connect to server request channel
-bash: May: command not found
root@zynthian:~# root@zynthian:~#


#12

I’ve listed alsa devices (aplay -l command), and got the USB Audio card devices (both UCA-222 and C-Media) but Jack can’t started… Work with alsa, but doesn’t with jack… I’ll continue my investigations =)


#13

With speaker-test from alsa, I get audio response with a cheap CM108 USB DAC, but keep stuck on zynthian error screen :frowning:


#14

Keep this up it’s good stuff!
It might of got a bit of attention from me today but I was busy changing a pump in my solar heating system . . . :frowning: