Zynthian Box with Audio-input (Audioinjector soundcard)

Could you send some more detailed photo of the display? And the exact model name … please!
Anyway, it seems that this is not the “normal” PiTFT 2.8" we normally use for Zynthian :wink:

Thanks!

It’s the capacitive model I think :

https://www.amazon.fr/dp/B01LCN0WIS

I’ve just install the kernel from adafruit (https://learn.adafruit.com/adafruit-2-8-pitft-capacitive-touch/easy-install)

And i’ts ok now, I was thinking you added the kernel for that screen, but seems not !

I can now full test Zynthian, just have to add the midi input for future clock-sync with my korg emx1.

Hi @mrlsk!

It shouldn’t be needed to install the Adafruit kernel. Doing so can break something, specially MIDI input.

Probably your display is already supported by standard kernels, but you have to load the corresponding layout in the /boot/config.txt. Sometimes you have to copy a specific layout file from the manufacturer (Adafruit).
Also, you should have to adjust the touch calibration. If you do so, you can give feedback, so we can add your display to the webconf tool.

Regarding MIDI sync … currently it’s not implemented in Zynthian, or to be more exact, AFAIK any of the sound engines integrated in Zynthian currently support it ;-(

Kind Regards!

@mrlsk, @jofemodo

See (MIDI)Sync of engines/plugins? - #9 by C0d3man.

Perhaps starting jack_midi_clock on zynthian may sync external devices to jack-midi.

Regards, Holger

Hi !

Oh Ok, with my keyboard it’s still working (usb).

Ok I understand, I can restart from scratch to test a new layout.
Yeah ok I will try to find the informations.

And for midi sync I know, I’ve read the thread on that topic :slight_smile:

Thank You !

I’ve search and i found that my screen is the 2423 :

| Ada# | Name | Size | Pixels | Touchscreen | Backlight | Header |
| 2423 | PiTFT Plus | 2.8" | 320x240 | Capacitive | variable | 40-pin |

I Think this is that setting for my screen :

Section "InputClass"
Identifier "captouch"
MatchProduct "ft6x06_ts"
Option “SwapAxes” "1"
Option “InvertY” "1"
Option “Calibration” "0 320 0 240"
EndSection

And that module

sudo nano /etc/modules
and add ft6x06_ts on a line at the end

I will try after a fresh install !

1 Like

Hello ! sorry for the off topic but it’s OK now, the config file as to be not too long for each line.

It seems that separate line is working :

dtoverlay=pitft28-capacitive,speed=32000000,fps=25
dtoverlay=pitft28-capacitive,touch-swapxy,touch-invx

But not when there is only one line config (too long)

I can now full test the engines, realy cool, I will post a video :wink:

I’m not too sure of RBPi “boot/config.txt” syntax , but perhaps it would be better to try like this:

dtoverlay=pitft28-capacitive,speed=32000000,fps=25,touch-swapxy,touch-invx

Regards!

With your line the screen is not responding :confused:

With the double line no problems, it seems that boot config as a max length for the lines …

OK! Good info! :wink:

Regads!

2 posts were split to a new topic: “Musical-artifacts” for the Zynthian community

I am using this line without any problems

‘DISPLAY_CONFIG’: ‘dtoverlay=waveshare32b:rotate=270,swapxy=1\n’+
‘dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900’

i would rather suspect, that either speed=32000000 or fps=25 are your problem.

please try
dtoverlay=pitft28-capacitive,speed=32000000,touch-swapxy,touch-invx
and
dtoverlay=pitft28-capacitive,fps=25,touch-swapxy,touch-invx

hey,
uhh, this changing of the zynthian.sh file somehow messed my zynthian up…
Official RBPi TouchScreen 7"
I changed as mentioned above it in order to make the inputs of my audioinjector work. None of the effects from mod ui affected the input sound, neither of the mic that I built in nor of the jack input. (But there was input of both directed to the output but unprocessed) But now my Zynthian won’t completely boot anymore after showing the initial zynthian screen even after changing it back. (webconf tool still shows up)
Could somebody maybe send me a zynthian.sh file?

(edit: also after replacing with the zynthian.sh content from github the problem persists.)
so here is some log, I discovered a magic cookie, whatever that means…

Summary

root@zynthian:~# /zynthian/zynthian-sys/sbin/zynthian.sh

xauth: timeout in locking authority file /root/.Xauthority
xauth: timeout in locking authority file /root/.Xauthority

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
Current Operating System: Linux zynthian 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l
Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Build Date: 11 November 2016 11:59:59AM
xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
Current version of pixman: 0.33.3
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Mon Oct 16 22:21:21 2017
(==) Using config directory: “/etc/X11/xorg.conf.d”
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Invalid MIT-MAGIC-COOKIE-1 key
waiting for X server to begin accepting connections .
Invalid MIT-MAGIC-COOKIE-1 key…
Invalid MIT-MAGIC-COOKIE-1 key…

So then my next question for when it will be working again is, how do you activate the audio inputs? Also my alsa mixer looks different than how it’s often shown here in the forum with the level meters and black background and I dont have this L R Capture and Input Mix

@jofemodo @mheidt anybody has a suggestion for this? Im a bit in trouble because I need my Zynthian soon for some concerts. But be nice if you could have a look at the log I posted above. Thanks!

I haven’t seen the magic cookie before. If I would be in your situation I would build it up from scratch. Only soundcard with external hdmi. Etc.
And of course using a fresh image.

Hi @Hampelschwein!

I don’t understand why did you change the “zynthian.sh” …it’s not needed at all, and it will be overwriten by the next update.

You can configure the audioinjector from the webconf tool very easily. And after that, you only need to adjust the alsamixer levels from the command line:

# alsamixer

And that’s all :wink:

But be warned that audioinjector soundcards are quite problematic. IMHO, the 40 pin header is not very reliable …

Regards,

because it was mentioned here

Enable output and input with alsamixer, as explained by @rod_amaral here Zynthian Box with Audio-input (Audioinjector soundcard)

hm okay I will try to do this when I’m back at home, travelling right now.

could the audioinjector also be the reason why my zynthian still crashed from time to time?

sorry, how exactly do you do this with the command line and the alsamixer?

Easy:

  1. Login into your Zynthian Box
  2. Run alsamixer:
    # alsamixer
  3. Adjust the levels, enable the right input channel, etc
  4. Quit and reboot. It should maintain your adjustments after booting.

Regards