Closed KairuiLiu closed 1 year ago
Hi! Thanks for opening this bug report! Can you enable Clight verbose logs? They should log from which device captures are being taken! Thank you very much!
Yes, in the following log, I run clight about 3 mins, in the last 2 mins, I cover the ALS, but the Ambient brightness didn't change
Using deprecated /etc/default/clight.conf config file whose support will be dropped in the near future. Please move to new one at: /etc/clight/clight.conf.
Config file: file I/O error at line 0.
Clightd found, version: 5.8-8a90e9d.
Disarmed timerfd on fd 9.
AC screen backlight curve: y = -0.024825 + 0.191641x + -0.008928x^2
BL
^
| **
| **
| *
| *
| *
| *
|
| *
|*
|
*---------->BR
BATT screen backlight curve: y = -0.010629 + 0.153844x + -0.007284x^2
BL
^
|
|
| ***
| **
| *
| *
| *
| *
|
|*
*---------->BR
org.freedesktop.ScreenSaver dbus interface exposed.
Disarmed timerfd on fd 31.
AC cable connected.
Laptop lid opened.
Emitting 'AcState' property
Set timeout of 5s 0ns on fd 34.
Emitting 'LidState' property
Set timeout of 0s 1ns on fd 35.
Emitting 'ScreenBr' property
Currently inside an event.
Next alarm due to: Sat Aug 12 18:12:00 2023
Set timeout of 1766s 0ns on fd 35.
Emitting 'Sunrise' property
Emitting 'Sunset' property
Emitting 'DayTime' property
Emitting 'NextEvent' property
Emitting 'InEvent' property
Set timeout of 0s 1ns on fd 36.
Sensor '/dev/iio:device0' is now available.
Resumed as a sensor is now available.
Emitting 'SensorAvail' property
Captured [5/5] from '/dev/iio:device0'. Ambient brightness: 0.285.
Set timeout of 300s 0ns on fd 36.
Emitting 'AmbientBr' property
Emitting 'ScreenBr' property
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.327
Ambient brightness: 0.285, Screen brightness: 0.804 -> Screen backlight: 0.327.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.36.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.33.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.453
Ambient brightness: 0.285, Screen brightness: 0.490 -> Screen backlight: 0.453.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.38.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.43.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
New ScreenSaver inhibition held by '/opt/google/chrome-beta/google-chrome-beta': 'Video Wake Lock'. Cookie: 1804289383.
ScreenSaver inhibition grabbed.
Inhibitions ctr: 1
Emitting 'Inhibited' property
Pausing DIMMER: INHIBIT
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.602
Ambient brightness: 0.285, Screen brightness: 0.118 -> Screen backlight: 0.602.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.50.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.55.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.60.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.613
Ambient brightness: 0.285, Screen brightness: 0.090 -> Screen backlight: 0.613.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.61.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.56.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.614
Ambient brightness: 0.285, Screen brightness: 0.086 -> Screen backlight: 0.614.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.61.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.61.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.603
Ambient brightness: 0.285, Screen brightness: 0.114 -> Screen backlight: 0.603.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.60.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.55.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.614
Ambient brightness: 0.285, Screen brightness: 0.086 -> Screen backlight: 0.614.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.60.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.61.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.481
Ambient brightness: 0.285, Screen brightness: 0.420 -> Screen backlight: 0.481.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.56.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.51.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.48.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.423
Ambient brightness: 0.285, Screen brightness: 0.565 -> Screen backlight: 0.423.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.43.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.42.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.451
Ambient brightness: 0.285, Screen brightness: 0.494 -> Screen backlight: 0.451.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.440
Ambient brightness: 0.285, Screen brightness: 0.522 -> Screen backlight: 0.440.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.442
Ambient brightness: 0.285, Screen brightness: 0.518 -> Screen backlight: 0.442.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.439
Ambient brightness: 0.285, Screen brightness: 0.525 -> Screen backlight: 0.439.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.443
Ambient brightness: 0.285, Screen brightness: 0.514 -> Screen backlight: 0.443.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.450
Ambient brightness: 0.285, Screen brightness: 0.498 -> Screen backlight: 0.450.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.446
Ambient brightness: 0.285, Screen brightness: 0.506 -> Screen backlight: 0.446.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.454
Ambient brightness: 0.285, Screen brightness: 0.486 -> Screen backlight: 0.454.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.448
Ambient brightness: 0.285, Screen brightness: 0.502 -> Screen backlight: 0.448.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.459
Ambient brightness: 0.285, Screen brightness: 0.475 -> Screen backlight: 0.459.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.46.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.448
Ambient brightness: 0.285, Screen brightness: 0.502 -> Screen backlight: 0.448.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.434
Ambient brightness: 0.285, Screen brightness: 0.537 -> Screen backlight: 0.434.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.43.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.442
Ambient brightness: 0.285, Screen brightness: 0.518 -> Screen backlight: 0.442.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.43.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.456
Ambient brightness: 0.285, Screen brightness: 0.482 -> Screen backlight: 0.456.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.46.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.41.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.426
Ambient brightness: 0.285, Screen brightness: 0.557 -> Screen backlight: 0.426.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.43.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.38.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.454
Ambient brightness: 0.285, Screen brightness: 0.486 -> Screen backlight: 0.454.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.42.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.453
Ambient brightness: 0.285, Screen brightness: 0.490 -> Screen backlight: 0.453.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.443
Ambient brightness: 0.285, Screen brightness: 0.514 -> Screen backlight: 0.443.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.445
Ambient brightness: 0.285, Screen brightness: 0.510 -> Screen backlight: 0.445.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.446
Ambient brightness: 0.285, Screen brightness: 0.506 -> Screen backlight: 0.446.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.40.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.439
Ambient brightness: 0.285, Screen brightness: 0.525 -> Screen backlight: 0.439.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Dropped ScreenSaver inhibition held by '/opt/google/chrome-beta/google-chrome-beta': 'Video Wake Lock'. Cookie: 1804289383.
ScreenSaver inhibition released.
Inhibitions ctr: 0
Emitting 'Inhibited' property
Resuming DIMMER: INHIBIT
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.443
Ambient brightness: 0.285, Screen brightness: 0.514 -> Screen backlight: 0.443.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.44.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.294
Ambient brightness: 0.285, Screen brightness: 0.886 -> Screen backlight: 0.294.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.34.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.29.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.294
Ambient brightness: 0.285, Screen brightness: 0.886 -> Screen backlight: 0.294.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.29.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.24.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.473
Ambient brightness: 0.285, Screen brightness: 0.439 -> Screen backlight: 0.473.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.29.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.34.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.39.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.45.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.47.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.473
Ambient brightness: 0.285, Screen brightness: 0.439 -> Screen backlight: 0.473.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.47.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.42.
Emitting 'BlPct' property
Set timeout of 5s 0ns on fd 34.
Content calib: wmax: 0.649, wmin: 0.249, new_bl: 0.473
Ambient brightness: 0.285, Screen brightness: 0.439 -> Screen backlight: 0.473.
Emitting 'ScreenBr' property
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.47.
Emitting 'BlPct' property
Backlight 'intel_backlight' level updated: 0.47.
Emitting 'BlPct' property
Received 2. Leaving.
Thanks! I only see a single capture being taken in the output above:
Captured [5/5] from '/dev/iio:device0'. Ambient brightness: 0.285.
Can you share the log file too? It has conf options logged and datetime info for each line!
Yes, in the following log, I run clight about 3 mins, in the last 2 mins, I cover the ALS, but the Ambient brightness didn't change
I see now! Clight takes captures every 10mins by default! So, you need to wait or you can decrease default timeouts from config file!
The default value makes sense for webcam captures that are costly (in term of battery usage). It means Clight was not developed with a "stream" of data in mind therefore it can only make "screenshots" of ambient brightness.
Closing; feel free to reopen if you have more questions!
NOTE: Please try to upgrade Clight if not running on latest release, before reporting a bug!
Clight version the issue has been seen with:
Used distribution:
Describe the bug
ASL can found on my laptop
and read data by system
and data can be read by clight?
but do nothing when light change