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
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:
$ LANG=en_US.UTF-8 grep "" /sys/bus/iio/devices/iio\:device1/*
grep: /sys/bus/iio/devices/iio:device1/buffer: Is a directory
grep: /sys/bus/iio/devices/iio:device1/buffer0: Is a directory
/sys/bus/iio/devices/iio:device1/current_timestamp_clock:realtime
/sys/bus/iio/devices/iio:device1/dev:238:1
grep: /sys/bus/iio/devices/iio:device1/in_illuminance_hysteresis: Invalid argument
/sys/bus/iio/devices/iio:device1/in_illuminance_hysteresis_relative:0.010000
/sys/bus/iio/devices/iio:device1/in_illuminance_offset:0
/sys/bus/iio/devices/iio:device1/in_illuminance_raw:7056
/sys/bus/iio/devices/iio:device1/in_illuminance_sampling_frequency:10.000000
/sys/bus/iio/devices/iio:device1/in_illuminance_scale:0.001000000
/sys/bus/iio/devices/iio:device1/in_intensity_both_raw:7056
grep: /sys/bus/iio/devices/iio:device1/in_intensity_hysteresis: Invalid argument
/sys/bus/iio/devices/iio:device1/in_intensity_hysteresis_relative:0.010000
/sys/bus/iio/devices/iio:device1/in_intensity_offset:0
/sys/bus/iio/devices/iio:device1/in_intensity_sampling_frequency:10.000000
/sys/bus/iio/devices/iio:device1/in_intensity_scale:0.001000000
/sys/bus/iio/devices/iio:device1/name:als
grep: /sys/bus/iio/devices/iio:device1/power: Is a directory
grep: /sys/bus/iio/devices/iio:device1/scan_elements: Is a directory
grep: /sys/bus/iio/devices/iio:device1/subsystem: Is a directory
grep: /sys/bus/iio/devices/iio:device1/trigger: Is a directory
/sys/bus/iio/devices/iio:device1/uevent:MAJOR=238
/sys/bus/iio/devices/iio:device1/uevent:MINOR=1
/sys/bus/iio/devices/iio:device1/uevent:DEVNAME=iio:device1
/sys/bus/iio/devices/iio:device1/uevent:DEVTYPE=iio_device
As far as I can tell, the sensor itself works correctly:
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 :)
From my interpretation wluma seems to read a constant 0 from the sensor, right?
luma is the screen contents actually, and lux is the mapping from the value of ALS sensor to the threshold in your config, as it reports night, it reads the value as something between 0 and 20. A line below shows that it actually reads the value of 6.
To reproduce how wluma reads the value, you need to repeat this line by hand:
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: