linux-surface / kernel

Linux kernel with modifications for Microsoft Surface devices.
Other
124 stars 34 forks source link

Add MSHW0184 detection and proximity sensor support to the apds9960 drivers #74

Closed MaxLeiter closed 3 years ago

MaxLeiter commented 3 years ago

Adds support for Surface Book 3, Surface Laptop 3, and the Surface Pro 7.

The ACPI table additions are currently in the testing stage of the iio subtree, ref: http://lkml.iu.edu/hypermail/linux/kernel/2012.2/03697.html

Closes https://github.com/linux-surface/linux-surface/issues/121

The proximity-near-level code documentation can be found in the drivers/light/iio/vcnl4000.c driver implementation and at https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio

archseer commented 3 years ago

Quick note: we will need to add the required config changes to surface.config , I think most distros don't enable this sensor by default (it's disabled on fedora)

qzed commented 3 years ago

Right, thanks for reminding me!

qzed commented 3 years ago

I've applied the ACPI ID part as 23b180c407ed24eca2c2188401e264be9b123215.

qzed commented 3 years ago

I'm going to close this as this is targeting an outdated branch and there haven't been any updates lately. Also the main part is now upstream (and has already been integrated previously). Feel free to submit a new PR if you think that there's anything still missing.