# Official RBPi TouchScreen 7"

**URL:** <https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430>\
**Category:** Hardware\
**Created:** [January 29, 2017, 2:16pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430 "2017-01-29T14:16:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [January 29, 2017, 2:16pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/1 "2017-01-29T14:16:24Z")

</div>

Hi I found in this forum the information to make the 7in “work”.

1. get a fresh gorgona and UPDATE
2. I am editting the files from windows using winscp editor and I sometimes have to edit multiple times and use the SYNC command otherwise the file is unchanged on the sd card… so SYNC and reboot a lot to commit…

you have to change the framebuffer from fb1 to fb0 in 3 config files.

HERE:

> [@Other Displays](https://discourse.zynthian.org/t/other-displays/366/7):
>
> OK! But i’m not sure of the result when using portrait orientation. I’ve never test it wink OK! So, no conflicts between “normal” I2C devices and ID-EEPROM hats. You have to change the framebuffer in the next files: /etc/systemd/system/zynthian.service /zynthian/zynthian-sys/sbin/splash-screen.sh /zynthian/zynthian-ui/zynthian.sh After changing this files you won’t be allowed to update from the admin menu. Sorry ;-( I know. This is far from optimal. I will move this to a unique co…

But for some reason I can’t the see the 2 left controller areas. My screen seems not correctly centered and the 2 leftmost areas are past the left side of my pi7’'.  
Also how do you “enable” the touch controllers I can see that the touch in the middle of the screen works since I can press on “new” and then on the synth modules. But the 2 controllers area which I can see on the right seem not responsive…

I made a few pics from myscreen here: [https://goo.gl/photos/7iq9WDAxaX8ZJeYa8](https://goo.gl/photos/7iq9WDAxaX8ZJeYa8)  
and here are some of the changes I did:

changed fb1 to fb0 in here:  
/etc/systemd/system/zynthian.service  
/zynthian/zynthian-sys/sbin/splash-screen.sh  
/zynthian/zynthian-ui/zynthian.sh

**/zynthian/zynthian-sys/boot/config.txt**  
changed res:  
framebuffer\_width=800  
framebuffer\_height=480

commented out piTFT (needed?)  
#dtoverlay=pitft28-capacitive,rotate=90,speed=32000000,fps=20  
#dtoverlay=pitft28-resistive,rotate=90,speed=32000000,fps=20

**/zynthian/zynthian-sys/etc/systemd/zynthian.service** (needed?)  
Environment=FRAMEBUFFER=/dev/fb0

Now I do have a a raspberry + pi 7 + iqaudiao dac+ and some usb-midi converters.  
Do I need anymore hardware to make all this work?

Also I just ordered an audioinjector board so maybe I’ll be able to record or sample sounds and voices directly in the future.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [January 30, 2017, 11:36am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/2 "2017-01-30T11:36:19Z")

</div>

> [@New feature: full touchscreen navigation and control](https://discourse.zynthian.org/t/new-feature-full-touchscreen-navigation-and-control/414/4):
>
> But for some reason I can’t the see the 2 left controller areas. My screen seems not correctly centered and the 2 leftmost areas are past the left side of my pi7’'.

What you see is correct. The 4 controller areas are only displayed in the “control instrument” screen. All the other screens have a wider, left aligned select box. You have to select engine, channel, bank and instrument to reach the “intrument control” screen.

Anyway, you should know that configuring the “display” is not the same that configuring the “touch” device. Both are different devices, with different drivers and configurations.

The Gorgona SD image is configured for working with the “stmpe” touch device, that is included in the Adafruit TouchScreens (and clonics). If you are using a different one, you should follow the specific instructions for your touch device. Normaly you have to do 2 steps:

1. Load the driver (boot/config.txt, /etc/modules, …)
2. Configuring the X11 pointing device (/etc/X11/xorg.conf.d)

It shouldn’t be difficult, but depends of every device 😉  
I think that some HDMI screens with “USB” touch-devices work like a mouse, so probably no extra configuration should be done (perhaps some kind of calibration?)

Kind Regards!

---

<div class="post-metadata">

**Author:** ![Andy](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Andy](https://discourse.zynthian.org/u/Andy)\
**Post date:** [January 31, 2017, 7:07am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/3 "2017-01-31T07:07:56Z")

</div>

I suspect that there is a problem with configuring the LCD in config.txt. I see that you have 800 x 480 pixel resolution, so you probably have a display similar to this Adafruit device.

> **[Adafruit 5" and 7" 800x480 TFT HDMI Backpack](https://learn.adafruit.com/adafruit-5-800x480-tft-hdmi-monitor-touchscreen-backpack/raspberry-pi-config)**
>
> This all-in-one monitor in 5" or 7" size can be powered over USB and acts just like a tiny HDMI monitor. We even have a touchscreen version so you can create your own portable computer. Works great with Raspberry Pi & Beaglebone Black, but can...

Take a look at the link. There are a few lines to add to config.txt to force 800 x 480 resolution since this isn’t a standard screen size:-

# uncomment to force a specific HDMI mode (here we are forcing 800x480!)

hdmi\_group=2  
hdmi\_mode=1  
hdmi\_mode=87  
hdmi\_cvt=800 480 60 6 0 0 0

max\_usb\_current=1

Hope this helps.

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [January 31, 2017, 12:41pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/4 "2017-01-31T12:41:49Z")

</div>

Thank you so much for your reply.

It seems the “touch” is working because I could select new and then the elements from the list but the 2 controllers on the right do not seem to respond at all so I am a bit stuck.  
Also I modified config.txt in the boot folder to enable my qaudio daq+ but it dosn’t seem to work somehow I suspect an I2C problem… Still investigating but it’s not that easy.  
The Pi 7’’ touch seems to go through the DSI port (flex cable) so I don’t think it’s a USB port …  
and I don’t think I need a calibration because I can click fine on the list…

Kind regards to you too.

---

<div class="post-metadata">

**Author:** ![smespresati](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@smespresati](https://discourse.zynthian.org/u/smespresati)\
**Post date:** [January 31, 2017, 1:39pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/5 "2017-01-31T13:39:37Z")

</div>

Hi @cryoshad,

Great to hear you managed the Pi 7" touchscreen to work. I’m trying too but unfortunatelly without success so far.

I changed fb1 to fb0 in the 3 files mentioned in this thread but it didn’t work for me. I started with a fresh Gorgona image but without any updates.

Did you do anything else to get it working?

Regards, Jose

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [January 31, 2017, 1:43pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/6 "2017-01-31T13:43:46Z")

</div>

To be honest I am trying to replicate and take down notes but it doesn’t work anymore I think my Pi-DAC+ soundcard gets in the way now that I received it and installed it… it’s a mess… lost a few hours already… 😉  
jackd fails  
aplay -l fails no hw0…pffff

---

<div class="post-metadata">

**Author:** ![smespresati](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@smespresati](https://discourse.zynthian.org/u/smespresati)\
**Post date:** [January 31, 2017, 2:35pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/7 "2017-01-31T14:35:15Z")

</div>

Thanks @cryoshad for your quick response.

If I’m not wrong, your current problem is related to audio. Do this mean your Pi 7" touchscreen works?

This “teaks” it’s taken me longer than I thought…but I’m not in a hurry, I’ll get it the sooner or later…😉

Regards, Jose

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [January 31, 2017, 3:21pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/8 "2017-01-31T15:21:59Z")

</div>

Sorry but now the screen doesn-t work either… I had it working somehow… So I know it’s possible.(proof in the pics)  
But now I added the soundcard and changed a few things and it’s not working anymore…

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [February 2, 2017, 12:33am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/9 "2017-02-02T00:33:58Z")

</div>

Well I tried a few more images including the latest rasbian with pixel from january 11. There is no way I can make a single sound out of my sound card… obviously editing config.sys to enable the daq+ but then it seems the I2C times out and my sound card is not detected.

I tried it on rpi3 and an rpi2. do you need to enable the I2C specifically with or does the soundcard driver takes care of it…

I tried enabling and disabling those too…  
#dtparam=i2c\_arm=on  
#dtparam=i2s=on  
#dtparam=spi=on

but it still doesn’t work… It’s so frustrating…

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [February 2, 2017, 1:04pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/10 "2017-02-02T13:04:38Z")

</div>

Some questions about your problem … 😉  
Could you send some photos of your setup? Have you soldered the 40-pin connector to the HB?  
Have you investigated if there is some GPIO conflict between the HB and your display? Have you inspected the boot logs using the command “journalctl”? Have you checked that the drivers are loaded using the command “lsmod”? etc.

Kind Regards!

---

<div class="post-metadata">

**Author:** ![smespresati](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@smespresati](https://discourse.zynthian.org/u/smespresati)\
**Post date:** [February 2, 2017, 1:35pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/11 "2017-02-02T13:35:06Z")

</div>

Hi @jofemodo, @cryoshad,

I’m also working on this. Surfering the internet I’ve found Max2Play project. This project uses, among other devices, the Pi 7" Touchscreen and Hifiberry, so there should not be GPIO compatibility issues. By the way, it’s very interesting how this project deals with configurations through a web interface.

I downloaded and tested (without Hifiberry attached) M2P image. It worked (video and touch), obviously no sound at all. I tried this trying to find out the way to recreate the 7" touchscreen setup. No luck so far.

Regards, Jose.

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [February 2, 2017, 7:02pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/12 "2017-02-02T19:02:41Z")

</div>

Hello just to report that I finally managed to make both the soundcard iqaudio and foundation 7’’ pi screen work together on my pi3.  
It was apparently a **power supply** issue because as soon as I removed the screen …the card worked perfectly.

And when I connected my screen to the second (separate but common ground) port of my power supply I had both screen, pi and sound card work without a problem… 😉 so I can finally go back to trying to make the zynthian work…

---

<div class="post-metadata">

**Author:** ![C0d3man](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/c0d3man/32/9_2.png) [@C0d3man](https://discourse.zynthian.org/u/C0d3man)\
**Post date:** [February 2, 2017, 8:00pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/13 "2017-02-02T20:00:23Z")

</div>

Congratulations! Hope to see (and hear) something from your Zynthian with a bigger display and audio input (V0c0der 🤖).

Regards, Holger

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [February 2, 2017, 11:23pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/14 "2017-02-02T23:23:43Z")

</div>

Ok started with a new image  
I did all what I stated above +

only left  
99-fbturbo.conf in  
/zynthian/zynthian-sys/etc/X11/xorg.conf.d  
removing the 3.2 tft and the associatted touch

then added this file  
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf

Section "Device"  
Identifier "touchscreen"  
Driver "fbdev"  
Option “fbdev” "/dev/fb0"  
EndSection

and voila!!

now the middle (list section) is working and touch sensitive but the 4 side controllers do not ☹!

I am wondering if it has to do with

# Wiring layout

hw\_version=“PROTOTYPE-4”

since I don’t have any “physical” Zynthian hardware should I write sth else?

Thanks !

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [February 2, 2017, 11:48pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/15 "2017-02-02T23:48:45Z")

</div>

Hi @cryoshad!

> [@cryoshad](#):
>
> now the middle (list section) is working and touch sensitive but the 4 side controllers do not

Have you updated the zynthian software? You have to do it from command line, because you can’t access the admin menu:

```
cd /zynthian/zynthian-sys/scripts
./update_zynthian.sh
./update_zynthian_data.sh
systemctl stop zynthian
systemctl start zynthian

```

After that, the controller and topbar touch-areas should be enabled and you should be able to navigate without rotaries.

Regards

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [February 3, 2017, 12:30am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/16 "2017-02-03T00:30:33Z")

</div>

Hi.

Nope… sry 😉 it seems that even after update only the central list is responsive no controller nor topbar…  
update didn’t do error first time and now it says already up to date.

Sincerely…

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [February 3, 2017, 12:33am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/17 "2017-02-03T00:33:34Z")

</div>

If “update\_zynthian.sh” says “up to date”, then it should work. Have you restarted?  
Have you modified some file inside “zynthian-ui” or “zynthian-sys” directories? In that case, you should restore to the original versions before updating:

> cd /zynthian/zynthian-ui  
> git checkout .  
> cd /zynthian/zynthian-sys  
> git checkout .

Regards!

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [February 3, 2017, 1:21am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/18 "2017-02-03T01:21:32Z")

</div>

Thank you I will try tomorow… I just got down in the menu and could try mod-ui from my computer. so much fun… and sound is great too!!

Cheers

---

<div class="post-metadata">

**Author:** ![cryoshad](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@cryoshad](https://discourse.zynthian.org/u/cryoshad)\
**Post date:** [February 3, 2017, 1:28am UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/19 "2017-02-03T01:28:39Z")

</div>

yep it works now…  
I didn’t change those files except the last 2

but for some reasons the git “forced” pull did some magic and the controls now work and the top bar too.

Thank you so much!!!

here are the git changes I got…  
Fast-forward  
zyngine/zynthian\_engine.py | 33 +±  
zyngine/zynthian\_engine\_modui.py | 41 ++±  
zyngine/zynthian\_engine\_zynaddsubfx.py | 8 ±  
[zynthian.sh](http://zynthian.sh) | 15 –  
zynthian\_emu.sh | 76 ±----  
zynthian\_gui.py | 406 ++++++++++++++++++++++++++±-----  
zynthian\_gui\_config.py | 6 ±  
7 files changed, 418 insertions(+), 167 deletions(-)

---

<div class="post-metadata">

**Author:** ![smespresati](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@smespresati](https://discourse.zynthian.org/u/smespresati)\
**Post date:** [February 3, 2017, 7:10pm UTC](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430/20 "2017-02-03T19:10:45Z")

</div>

Hi @cryoshad, @jofemodo,

Finally I managed to get the engine selection window in my Pi 7" touchscreen. I think the step I missed is the file 99-fbdev.conf. However, I cannot make touch function to work properly.

I started with a fresh gorgona image, then updated (twice) manually using SSH. I did “git checkout” (just in case as it doesn’t hurt) and then changed all the files described above

I can select any item in the engine listbox by touch in it. I also can slide my finger (vertically or horizaontally) in the engine widget which cause the engine number in the widget to change. I noticed that, very often, when I select an engine in the listbox the engine number in the widget doesn’t change. The same happens the other way around…when I slide my finger in the widget to change the engine number the engine listbox doesn’t change.

But the main issue is the “enter switch” doesn’t work at all (unless me to do something wrong). That means I cannot move forward to the MIDI channel windows. Also, a long touch in the widget do nothing

At this point I wonder whether this behavior is software related or a configuration issue. I’m afraid it will be something I did wrong as @cryoshad has succed.

Any idea to light me up?

Regards, Jose

[Next page](https://discourse.zynthian.org/t/official-rbpi-touchscreen-7/430.md?page=2)
