USB devices not working after boot

139 views
Skip to first unread message

Mattia Biondani

unread,
Nov 11, 2020, 4:37:28 AM11/11/20
to Android-x86
I'm having issues with a touchscreen monitor. Basically, every time Android x86 8.1 r5 boots up I have to turn off then turn on again the monitor in order for the touchscreen to work.

The touchscreen works via USB.

Is there a way to reload all USB devices at startup? Do I have to edit the init.sh file?

Thanks,
Mattia.

Michael Goffioul

unread,
Nov 11, 2020, 7:03:38 AM11/11/20
to Android-x86
I had a similar problem on my device and it was due to the quick succession of loading hid-generic (built-in) and hid-multitouch (module) drivers. I ended up recompiling the kernel with hid-multitouch built-in and the problem went away (because hid-generic was then never loaded for the touchscreen). Check dmesg to see whether you have hid-generic and hid-multitouch logs close to each other for the same device. Also check lsmod output, if hid-multitouch is present, try to unload it (rmmod) then reload it (modprobe) and see whether the touchscreen works.



TOR.MEC AMBROSI Srl

Via Maestri del Lavoro, 16
37059 – Santa Maria di Zevio (VR) Italy
P.Iva 02247140235 - COD.SDI: M5ITOJA

The information in this e-mail and any attachments with it, is confidential and may also be legally privileged. It is intended for the addressee only. Access to this e-mail by anyone else is unauthorised. It is not to be relied upon by any person

other than the addressee, except with our prior written approval. If no such approval is given, we will not accept any liability arising from any third party acting, or refraining from acting on such information. Unauthorised recipients are

required to maintain confidentiality. If you have received this e-mail in error please destroy any copies and delete it from your computer system, then inform us immediately sending a message to pri...@tormec.com

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/e8b4a899-cfe7-4baa-9687-935f3efbd9c6n%40googlegroups.com.

Mattia Biondani

unread,
Nov 11, 2020, 8:31:22 AM11/11/20
to Android-x86
Hi Michael,
thanks for the advice.
I checked the logs and hid-generic and hid-multitouch are indeed very close to each other for the touchscreen device. Reloading hid-multitouch does solve the issue.

So just to be clear: do I need to add this file in kernel/drivers/hid and then rebuild and the problem will go away?

Michael Goffioul

unread,
Nov 11, 2020, 8:50:36 AM11/11/20
to Android-x86
If you are compiling android-x86 yourself, you can try editing kernel/arch/x86/configs/android-x86_64_defconfig (or android-x86_defconfig for 32bits kernel) and change CONFIG_HID_MULTITOUCH=m to CONFIG_HID_MULTITOUCH=y. To make sure the kernel is recompiled, just delete directory out/target/product/x86/obj/kernel/.

Mattia Biondani

unread,
Nov 11, 2020, 8:58:46 AM11/11/20
to Android-x86
Thank you, I will try that.

Mattia Biondani

unread,
Nov 17, 2020, 5:50:49 AM11/17/20
to Android-x86
Hi Michael, 
your solution seems to have worked. Now the touchscreen works even if there's a USB drive connected to the PC.
Thank you very much,
Mattia.

Reply all
Reply to author
Forward
0 new messages