harmon25
Hi all,
Looking for some help setting up a nerves rpi3 kiosk using an asus touch screen
I am starting with this system - GitHub - nerves-web-kiosk/kiosk_system_rpi3: Nerves QtWebEngine Kiosk system for Raspberry Pi 3 · GitHub.
I have one problem, the display is oriented in portrait, I have it rotated correctly via display_rotate=1 in config.txt but the touch input is now off.
I was able to solve this with an x11 debian based system using the following command
xinput set-prop 'ILITEK ILITEK Multi-Touch' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
Here is a link to pretty much the same problem - solved in a similar way:
https://www.raspberrypi.org/forums/viewtopic.php?t=205592
Any idea how I could go about solving this with a nerves system? Is it possible?
Thanks for the help!
EDIT:
This a similar thread,
https://forum.elixirforum.com/t/nerves-connecting-a-touch-screen
I am unsure how to apply that advice though…
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
harmon25
I found more tips on a possible solution.
It requires setting some
QT_environment variables. I presume before building QT?This is also similar, with a slightly different but promising option:
EDIT:
Here is some related
dmesgoutput from my nerves kiosk devicemobileoverlord
We used the
kiosk_system_rpi3Nerves system with Dell touch screen devices. The system has some generic support for USB touch screens enabled but getting QT (webengine_kiosk) to recognize the hot plug events for the USB touch screen required udev. There is room for improvement in this area, but here is an example of how we started udev as part of our application initialization. kiosk_system_rpi3/example/lib/example/application.ex at main · nerves-web-kiosk/kiosk_system_rpi3 · GitHubharmon25
Thanks @mobileoverlord, I have been using the example app as reference, and the screen does work well by default!
My problem is operating the display vertically, I need to rotate the touch input.
I have come up with a solution that seems to work, albeit does not perform as well as the monitor in its default orientation…
I am running the following before launching the
WebengineKioskQT_QPA_EGLFS_ROTATIONactually just rotates the display but has no impact on touch input,-90is what i need based on the orientation of my display - might be able to rotate the display normally and just leverage the next step…Rotating the display via
config.txt- and tweaking the below parameter seems to have worked well!This is the solution! woo
QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERSevent0is the device name for my touch screen events, and settingrotate=270gets the touch input oriented as neededWhen not messing with the orientation and just havingudevdenabled, the touch screen works very well. Things like swiping to scroll, and pinch to zoom are accurate. after tweaking the settings as above those functions are a bit shaky and the touch does not seem as responsive.Here is a link to the relevant QT documentation: