-
Notifications
You must be signed in to change notification settings - Fork 10
Sensors
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.
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!