Hi,
I have fumbled my way through to creating a dwav_usb_mt.ko driver and have added it to the meson64 latest kernel 6.12.34 but this still only functions as an LCD screen, not as a touchscreen. It is not selectable but runs under as just an LCD screen. I have been trying for days to build a dwav_usb_mt.ko driver and somehow get the touchscreen to work but I can’t figure it out. I built the driver using the c code from the odroid github. Users in the Odroid forums mentioned something about the device being USB, not LCD so I wonder if some LCD driver is taking over not allowing the touchscreen driver to work.
ODROID-XU3/4: New touch product added.(HID Raw) · hardkernel/linux@fd3888b · GitHub
Would it be possible to add touchscreen support for this in the next kernel/future kernel releases? Thanks for any help that can be provided.
LordCy77
I don’t think we can do something like that. But @MichaIng certainly knows better.
Well, I’m game at trying to create this driver myself but I would need some help. If moving this thread to the Troubleshooting forum would help, can someone please do so. Thanks.
After downloading the linux-headers for dietpi 6.12.34-current-meson64 and looking through them, there is no hid-core.c nor hid-ids.h files to edit. hid-ids.h seems pretty easy to create, with just defining the one device I need to add:
“#define USB_DEVICE_ID_VU7PLUS 0x0705”
However, the hid-core.c has a list of multiple dependencies and can’t easily be brought over. One function in the code where my touchscreen is defined is an ignore list:
“/* a list of devices that shouldn’t be handled by HID core at all */
static const struct hid_device_id hid_ignore_list = {“
{ HID_USB_DEVICE(USB_VENDOR_ID_ODROID, USB_DEVICE_ID_VU7PLUS) },
{ }
};
My programming days have long left me, but this function makes me believe that this touchscreen should not be controlled by hid which would allow the touchscreen to use the preferred dwav-usb-mt.ko driver which I was able to build and add to the driver module.
Any assistance or advice in removing this touchscreen from hid in dietpi would be greatly appreciated. My end goal for this is a touchscreen MagicMirror2 setup and the C2 will be retired eventually for a Odroid C4/C5. Thanks.
linux/drivers/hid/hid-core.c at odroidxu4-4.9.y · hardkernel/linux · GitHub
Kudos in case you manage to get this working. A driver created for a Linux 4.9 vendor kernel to 6.12 mainline kernel … Also note that Odroid C2 was using Linux 3.16, while you are linking Odroid XU4 sources.
Did you check in Odroid forum about attempts/solutions already. At least here, it has been asked often, so I guess there it is an old topic: https://forum.odroid.com/viewforum.php?f=101
Ah see here: https://forum.odroid.com/viewtopic.php?p=377523#p377523
Check the USB ID via lsusb, then append the following (separated by space) to the extraargs= line:
usbhid.quirks=0xXXXX:0xYYYY:0x0004
with XXXX and YYYY replaced by the XXXX:YYYY vendor:product ID if the device.