-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ALS data not parsed/calculated correctly #100
Comments
Hello! Just to confirm something first, have you actually tried to train wluma a bit? Going in a dark place, adjusting the screen brightness by hand, going to a bright environment and increasing the brightness again by hand? It does nothing when it doesn't know your preferences :)
To reproduce how wluma reads the value, you need to repeat this line by hand: Line 58 in 2762413
cat /sys/bus/iio/devices/iio:device1/in_illuminance_raw plus cat /sys/bus/iio/devices/iio:device1/in_illuminance_offset then all of that multiplied by: cat /sys/bus/iio/devices/iio:device1/in_illuminance_scale |
Steps for reproducing the issue
I've set up wluma on a system of a friend, which got an ambient light sensor. But it doesn't seem to calculate the data provided correctly.
I've looked at the
src/als/iio.rs
and the values which seems to be read by wluma are the following on the system:As far as I can tell, the sensor itself works correctly:
Settings:
What is the buggy behavior?
wluma does nothing when started, except setting the brightness once.
From my interpretation wluma seems to read a constant 0 from the sensor, right?
What is the expected behavior?
Reading different values from the sensor and reacting to it.
Logs
Debug log looks uneventful:
Version
4.3.0 from the AUR
Environment
The text was updated successfully, but these errors were encountered: