Add devd rule for Elantech touchscreens.
Needs ReviewPublic

Authored by jonathan on Oct 31 2016, 12:35 PM.

Details

Reviewers
nox
hselasky
kwm
Summary

The touchscreen in the HP Spectre x360 is made by Elantech rather than
Wacom. Adding this devd rule starts webcamd properly for such devices,
enabling their use with the X evdev driver.

Diff Detail

Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5760
Build 6064: arc lint + arc unit
jonathan retitled this revision from to Add devd rule for Elantech touchscreens..Oct 31 2016, 12:35 PM
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added reviewers: kwm, nox.

Could you dump the device and configuration descriptor of your device?

usbconfig -d X.Y dump_curr_config_desc dump_device_desc

I wonder if the rule can be made more generic?

Else patch looks good.

usbconfig output is here: http://pastebin.com/iqJix3h2

Do you mean that we should use the iManufacturer and iProduct rather than idVendor and idProduct? Those do look a bit more generic, but I'm afraid I don't know how to write that rule. :)

No, sometimes the device use 0xff for some ID fields which means propritary driver. It might be better to match that than vendor/product.

No, sometimes the device use 0xff for some ID fields which means propritary driver. It might be better to match that than vendor/product.

Sorry, I still don't quite understand: when you say, "it might be better to match that", what "that" are you referring to? To "some ID fields"? I don't see any 0xff values in the usbconfig output that I posted...

I'm not at all familiar with devd, so I don't really know how to make the rule more generic. If you could suggest a different rule then I'd be happy to test it...