USB Touchscreen Support

1,442 views
Skip to first unread message

adri....@gmail.com

unread,
Sep 28, 2016, 12:14:28 PM9/28/16
to Android-rpi
Hello, I'm searching for touchscreen that can work with Android RPI. I've found that:


They say: "The touch screen shows up as a USB mouse so no special drivers needed. We've tested it sucessfully on Mac, Windows, and Debian Linux (Raspbian on a Raspberry Pi). Other Linux distributions may or may not work,"

Is it really should work on android-rpi?
Thanks you

PS Sorry I opened an empty message two minutes ago

WalkOnATYCLB

unread,
Sep 28, 2016, 12:48:14 PM9/28/16
to Android-rpi
I got the official Raspberry pi screen it does not work.

Dennis Smith

unread,
Sep 28, 2016, 5:05:35 PM9/28/16
to Android-rpi
If the screen is a USB mouse then yes in theory it should work, if
it's any other type (such as SPI/i2c) then it would require some form
of library or driver to interface it with.

Dennis Smith
M1DLG

On 28 September 2016 at 17:48, WalkOnATYCLB <walkon...@gmail.com> wrote:
> I got the official Raspberry pi screen it does not work.
>
> --
> You received this message because you are subscribed to the Google Groups "Android-rpi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-rpi...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/android-rpi/24d3c1c4-e7a3-4fdb-aeba-077c862bbcc3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

plm....@gmail.com

unread,
Sep 30, 2016, 3:59:23 PM9/30/16
to Android-rpi, adri....@gmail.com
I have USB eGalax and doesen't work out of the box.
I tried to recompile kernel with official drivers patches and I failed... doesen't work.

Igor Kalkov

unread,
Sep 30, 2016, 5:14:42 PM9/30/16
to Android-rpi, adri....@gmail.com, plm....@gmail.com
Did the compilation fail or didn't it work after successful compilation?
Any messages in the kernel log?

plm....@gmail.com

unread,
Oct 1, 2016, 4:20:05 AM10/1/16
to Android-rpi, adri....@gmail.com, plm....@gmail.com
The compilation work well, but after boot up I run "cat /proc/bus/input/devices" and doesn't show up the touch screen.

Maybe I did something wrong. This is what I did step by step:


- I changed kernel modules support in "arch/arm/configs/bcm2709_defconfig"
    CONFIG_INPUT_EVDEV=y
    CONFIG_INPUT_UINPUT=y
    CONFIG_HIDRAW=y
    CONFIG_HID_MULTITOUCH=m

- I changed (added a few lines of code from manufacturer guide) in next files:
    /drivers/input/evdev.c
    /drivers/input/mousedev.c
    /drivers/input/joydev.c

- I run:
    ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig android/configs/android-base.cfg android/configs/android-recommended.cfg
    ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage

- I downloaded rtandroid-7.0, and replaced zImage from boot folder with my compiled one (/kernel/rpi/arch/arm/boot/zImage) and then I installed to SD.

This is the manufacturer PDF installing guide: https://drive.google.com/open?id=0B9xcVJutcWuBQU9fOVlkOUJKOXM

Thank you for your help!

Igor Kalkov

unread,
Oct 1, 2016, 6:46:19 AM10/1/16
to Android-rpi
After boot, run "dmesg" in the console and check for touchscreen-related messages. You can also add some debug output to the source code to check if relevant functions are called.
Besides of that, you might need to compile/install additional modules.

WalkOnATYCLB

unread,
Oct 1, 2016, 4:29:27 PM10/1/16
to Android-rpi
Do you think we are getting closer for support on the official Raspberry pi touch screen?

Kevin Broten

unread,
Oct 5, 2016, 9:25:36 PM10/5/16
to Android-rpi
The afafruit backpack should work. Depending on what mode it was set to. It works as a mouse device. HID touchscreen or HID generic device. This mode can be changed using vender software. But you need windows xp. Each mode will change the VID/PID sent. The vender id does not seem to be a valid registered id. So correctly uniquely identifying the device could be a problem. The device is designed to be a MS Windows standard HID input device. When programming the firmware it must be done as a HID generic device.

th3h3...@gmail.com

unread,
Oct 27, 2016, 11:33:52 PM10/27/16
to Android-rpi, adri....@gmail.com
I've been able to use my USB touchscreen without any problems with the latest build of the RTAndroid for the pi 3. The touchscreen I'm using is: https://www.amazon.com/ViewSonic-TD2230-Screen-LCD-Monitor/dp/B01DKPJVIS/ref=sr_1_1?s=electronics&ie=UTF8&qid=1477624718&sr=1-1&keywords=ViewSonic+TD2230
This USB touchscreen has been tested and also works with the following:

Igor Kalkov

unread,
Oct 28, 2016, 5:09:53 AM10/28/16
to Android-rpi, adri....@gmail.com, th3h3...@gmail.com
I've heard small(er) touch screens from Waveshare are also working. I've ordered one yesterday, but didn't test it myself yet.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages