# Balena wpe browser

**URL:** <https://forums.balena.io/t/balena-wpe-browser/38045>\
**Category:** Product support\
**Created:** [October 20, 2019, 6:01pm UTC](https://forums.balena.io/t/balena-wpe-browser/38045 "2019-10-20T18:01:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayatrbt](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jayatrbt](https://forums.balena.io/u/jayatrbt)\
**Post date:** [October 20, 2019, 6:01pm UTC](https://forums.balena.io/t/balena-wpe-browser/38045/1 "2019-10-20T18:01:10Z")

</div>

I having been trying to get the balena wpe example project to work.

The display works fine, but I have had zero luck trying to get the touchscreen working.

I am using HOST OS VERSION - HOST OS VERSION  
[balenaOS 2.43.0+rev1]

I have tried adding the driver as mentioned here - as I am using the MPI3508 board.

> [@3.5" TFT with RaspberryPi](https://forums.balena.io/t/3-5-tft-with-raspberrypi/5871/4):
>
> After a bit of digging about and running dmesg on the hostOS, it appears the resistive touchscreen driver is of a type “ADS7846 Touchscreen”. So, I created a new udev rule called 99-touch.rules and have the following (on one line): ACTION=="add|change", KERNEL=="event[0-9]\*", \ ATTRS{name}=="ADS7846 Touchscreen", \ ENV{LIBINPUT\_CALIBRATION\_MATRIX}="1 0 0 0 -1 1 0 0 1" CALIBRATION The matrix shown above will rotate the touchscreen and it works pretty well. However, if you have a UI that requ…

I am using a Raspberry Pi B3+

Any help debugging this is appreciated.

---

<div class="post-metadata">

**Author:** ![zubairlk](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zubairlk/32/954_2.png) [@zubairlk](https://forums.balena.io/u/zubairlk)\
**Post date:** [October 21, 2019, 5:20pm UTC](https://forums.balena.io/t/balena-wpe-browser/38045/4 "2019-10-21T17:20:24Z")

</div>

Hi,

So at this point I think it is important to start from the basics.

In the hostOS, do you see `/dev/input/eventX`?  
e.g. If `/dev/input/event0` is touchscreen. If you `cat /dev/input/event0`, do you see anything on the console when you tap on the screen. If you do the basic driver is working.

Then we can move inside the container. It should be a privileged container, then we repeat the above for inside the container. Then we can look into wpe specific things.

Regards  
ZubairLK

---

<div class="post-metadata">

**Author:** ![jayatrbt](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jayatrbt](https://forums.balena.io/u/jayatrbt)\
**Post date:** [October 21, 2019, 7:37pm UTC](https://forums.balena.io/t/balena-wpe-browser/38045/6 "2019-10-21T19:37:15Z")

</div>

Ok… I have this as my dt-overlay piscreen,speed=24000000,rotate=270

and i see a directory /dev/input/touchscreen0 which is a link to event0

If I cat the file, i don’t see any inputs coming to the screen when in tap the touchscreen

---

<div class="post-metadata">

**Author:** ![jayatrbt](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jayatrbt](https://forums.balena.io/u/jayatrbt)\
**Post date:** [October 21, 2019, 7:49pm UTC](https://forums.balena.io/t/balena-wpe-browser/38045/7 "2019-10-21T19:49:28Z")

</div>

Ok… when I change the dt\_overlay to this: ads7846,cs=1,penirq=25,penirq\_pull=2,speed=50000,keep\_vref\_on=0,swapxy=1,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900  
(which i had working for another project (electronjs) , i am getting inputs on the host container.

I also am seeing them in the wpe container when i can the /dev/input/touchscreen0 file.

However, the events don’t seem to reach the wpe display / browser. Any Ideas where to look next?

---

<div class="post-metadata">

**Author:** ![jayatrbt](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jayatrbt](https://forums.balena.io/u/jayatrbt)\
**Post date:** [October 21, 2019, 8:09pm UTC](https://forums.balena.io/t/balena-wpe-browser/38045/8 "2019-10-21T20:09:27Z")

</div>

Interesting. It I don’t pass an environment variable URL, but only try loading via the command line cog program, inputs didn’t seem to get to the browser.

I think my xmin, ymin values were off in the program i was using. I seem to recall a program to calibrate the x,y values… let me see what i can find.
