You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Federico edited this page Jan 14, 2020
·
25 revisions
Sensors support
Clightd supports both Camera and ALS devices.
It offers an unified API to use them under /org/clightd/clightd/Sensor: Capture and IsAvailable.
When using these methods, if no device is specified, first supported sensor found will be used.
Obviously, ALS devices have higher priority as they are less power hungry and offer better results.
API also offers /org/clightd/clightd/Sensor/Als and /org/clightd/clightd/Sensor/Camera object paths that implement org.clightd.clightd.Sensor interface, but only for chosen sensor type.
ALS devices
Clightd should support any ALS device through udev. If you have an acpi-als device and it does not work properly, it was reported that you may need an additional acpi call to enable the sensor: echo \\_SB.PCI0.LPCB.EC0.ALSC 0x1 > /proc/acpi/call.
This call is needed at each reboot; thanks to u/bradbrad2x for its kind testing!