# Dual Display - Touch screen and normal display

**URL:** <https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264>\
**Category:** Project help\
**Tags:** raspberrypi4\
**Created:** [October 12, 2024, 9:13am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264 "2024-10-12T09:13:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![valerian](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@valerian](https://forums.balena.io/u/valerian)\
**Post date:** [October 12, 2024, 9:13am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/1 "2024-10-12T09:13:26Z")

</div>

I am trying to setup a dual display system based on this project:

> **[GitHub - taro-ishihara/balena-display](https://github.com/taro-ishihara/balena-display)**
>
> Contribute to taro-ishihara/balena-display development by creating an account on GitHub.

Everything works fine, however one of my displays is a touchscreen and is connected with USB to the pi for touch. The problem is that the touch works for both screens, but I want to set up the touch screen to work only for one display.

I have tried using `xinput` but I get `Unable to connect to X server` error message

Any ideas on how to fix it?

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [October 26, 2024, 1:49am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/2 "2024-10-26T01:49:06Z")

</div>

Hello, I’m a little unclear on the issue, perhaps you can provide more details? You mentioned only one touch screen, but that the touch works for both screens. Do you mean that the cursor movement input on the touch screen is mirrored on the non-touch screen?

---

<div class="post-metadata">

**Author:** ![valerian](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@valerian](https://forums.balena.io/u/valerian)\
**Post date:** [October 27, 2024, 8:38am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/3 "2024-10-27T08:38:22Z")

</div>

The left side (red) is showing how the system works right now.

- Raspberry pi with two screens
- A touch screen that is split in two, one for each screen

The right side (green) is desired situation

- The touch screen needs to control only one display

 ![setup](https://global.discourse-cdn.com/balena/original/2X/0/0a0d58af829af9a393af905447d1a8ca9cbad88a.png)

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [October 29, 2024, 1:18am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/4 "2024-10-29T01:18:29Z")

</div>

What is the model of your touch screen? Did you add any configuration for it to be “split in two” or is that happening with the default config?

---

<div class="post-metadata">

**Author:** ![valerian](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@valerian](https://forums.balena.io/u/valerian)\
**Post date:** [October 29, 2024, 6:39am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/5 "2024-10-29T06:39:13Z")

</div>

It is happening with the default config, if I connect it to my laptop it works as it should.

---

<div class="post-metadata">

**Author:** ![the-real-kenna](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/the-real-kenna/32/9598_2.png) [@the-real-kenna](https://forums.balena.io/u/the-real-kenna)\
**Post date:** [October 31, 2024, 1:33am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/6 "2024-10-31T01:33:38Z")

</div>

@valerian can you tell us more about what you mean when you say “touch screen” (connected via USB)? Is it an actual digital display (something like [this](https://www.newegg.com/24-viewsonic-td2423d-ir-touch/p/N82E16824117058)), or a touchpad (something like [this](https://www.newegg.com/p/0TP-0303-00007))?

Alan and I were chatting about this today and I couldn’t wrap my head around whether the touchscreen was _displaying_ information or was for human _input / interface_.

Thank you!

---

<div class="post-metadata">

**Author:** ![valerian](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@valerian](https://forums.balena.io/u/valerian)\
**Post date:** [October 31, 2024, 8:47am UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/7 "2024-10-31T08:47:12Z")

</div>

First display is digital display like first link (ViewSonic), second screen is a normal display.

---

<div class="post-metadata">

**Author:** ![the-real-kenna](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/the-real-kenna/32/9598_2.png) [@the-real-kenna](https://forums.balena.io/u/the-real-kenna)\
**Post date:** [October 31, 2024, 3:29pm UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/8 "2024-10-31T15:29:48Z")

</div>

@valerian you show three displays in the diagram. Can you say again but using the labels you have in the diagram (i.e. Screen 1, Screen 2, and Touch screen)?

---

<div class="post-metadata">

**Author:** ![valerian](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@valerian](https://forums.balena.io/u/valerian)\
**Post date:** [October 31, 2024, 4:08pm UTC](https://forums.balena.io/t/dual-display-touch-screen-and-normal-display/372264/9 "2024-10-31T16:08:37Z")

</div>

There is one touchscreen and one simple screen.  
Problem is that when I use the touchscreen half of it is controlling the second screen, the other half is controlling itself.

I need for it to control only itself

 ![Untitled Diagram.drawio](https://global.discourse-cdn.com/balena/original/2X/4/4bda78aa432f4b43be9299c70bc8bc836be7701a.png)
