added clight config

This commit is contained in:
Phuntsok Drak-pa 2019-10-21 03:13:22 +02:00
parent 0f3a5ac587
commit a0c76a5345

195
.config/clight.conf Normal file
View File

@ -0,0 +1,195 @@
####################
# Clight conf file #
####################
#############
# BACKLIGHT #
#############
## Uncomment to disable brightness tool
# no_backlight = true;
## Uncomment to disable backlight smooth transitions
# no_smooth_backlight_transition = true;
## Backlight transition step in percentage
backlight_trans_step = 0.05;
## Backlight transition timeout in ms
# backlight_trans_timeout = 30;
## Timeouts between captures during day/night/event on AC
# ac_capture_timeouts = [ 600, 2700, 300 ];
## Timeouts between captures during day/night/event on BATT
# batt_capture_timeouts = [ 1200, 5400, 600 ];
## Y points used to compute ambient_brightness while ON AC -> screen backlight curve best-fit parameters
## through polynomial regression. X values are simply array's indexes (from 0 to 10 included).
# ac_backlight_regression_points = [ 0.0, 0.15, 0.29, 0.45, 0.61, 0.74, 0.81, 0.88, 0.93, 0.97, 1.0 ];
## Y points used to compute ambient_brightness while ON BATTERY -> screen backlight curve best-fit parameters
## through polynomial regression. X values are simply array's indexes (from 0 to 10 included).
# batt_backlight_regression_points = [ 0.0, 0.15, 0.23, 0.36, 0.52, 0.59, 0.65, 0.71, 0.75, 0.78, 0.80 ];
## Number of frames or ALS device pollings to be captured
captures = 5;
## Sensor device to be used (Webcam or ALS device)
sensor_devname = "video0";
## Sensor settings to be used. You should set values taken from <linux/v4l2-controls.h>,
## as "A=b,C=d" string, where A and C are v4l2 operations, and b and d are their requested values.
## Example string below does read as "V4L2_CID_EXPOSURE_AUTO=V4L2_EXPOSURE_MANUAL,V4L2_CID_EXPOSURE_ABSOLUTE=166".
## This is only useful for webcam sensors right now. Leave empty/commented to use webcam default values.
# sensor_settings = "10094849=1,10094850=166";
## Screen syspath to be use
screen_sysname = "intel_backlight";
## Uncomment to disable keyboard backlight automatic calibration.
no_kdb_backlight = true;
## Set a threshold: if detected ambient brightness is below this threshold,
## capture will be discarded and no backlight change will be made.
# shutter_threshold = 0.10;
## Disables automatic calibration for screen backlight.
## It must be manually triggered by bus api after setting this.
# no_auto_calibration = true;
## Uncomment to let BACKLIGHT module inhibit automatic calibration
## when Screensaver inhibition is enabled.
# inhibit_autocalib = true;
#########
# GAMMA #
#########
## Uncomment to disable gamma tool
# no_gamma = true;
## Uncomment to disable gamma smooth transitions
# no_smooth_gamma_transition = true;
## Gamma transition step
# gamma_trans_step = 50;
## Gamma transition timeout in ms
# gamma_trans_timeout = 300;
## Gamma temperature during day and night
gamma_temp = [ 6500, 3200 ];
## Your desired latitude for gamma support (surise/sunset in this location)
latitude = 48.5;
## Your desired longitude for gamma support (surise/sunset in this location)
longitude = 2.2;
## Force set a sunrise time
sunrise = "7:00";
## Force set a sunset time
sunset = "19:00";
## Duration of an "event". Clight will enter "event" mode (more frequent screen recalibrations)
## from event_duration seconds before a sunrise/sunset, until event_duration seconds after.
event_duration = 1800;
## Enable to let GAMMA smooth transitions last (2 * event_duration),
## in a redshift-like way.
## When enabling this, transition steps and timeouts are automatically computed
## given DAY-NIGHT temperature difference and (2 * event_duration) duration.
##
## Note that if clight is started outside of an event, correct gamma temperature
## will be immediately setted using normal parameters:
## no_smooth_gamma_transition, gamma_trans_step, gamma_trans_timeout
# gamma_long_transition = true;
## Let screen temperature match ambient brightness, like monitor backlight.
## When enabled, screen temperature won't be changed time-based.
## Note that it uses same curve points as backlight.
## Note also that LOCATION is still needed to let BACKLIGHT module know current time of day.
## Finally, it requires BACKLIGHT module to be enabled, otherwise it gets disabled.
ambient_gamma = true;
##########
# DIMMER #
##########
## Uncomment to disable dimmer tool
no_dimmer = true;
## Uncomment to disable dimmer smooth transitions
## when entering/leaving dimmed state
# no_smooth_dimmer_transition [ true, true ];
## Dimmer transition step in percentage.
## Entering dimmed state fade, and leaving fade
# dimmer_trans_steps = [ 0.05, 0.05 ];
## Dimmer transition timeout in ms.
## Entering dimmed state fade, and leaving fade
# dimmer_trans_timeouts = [ 30, 30 ];
## Dimmer timeouts on AC/on BATT.
## Set any of these to <= 0 to disable dimmer
## in the corresponding AC state.
# dimmer_timeouts = [ 45, 20 ];
## Change dimmer backlight level, in percentage
# dimmer_pct = 0.2;
########
# DPMS #
########
## Uncomment to disable dpms tool
# no_dpms = true;
## Dpms timeouts on AC/on BATT.
## Set any of these to <= 0 to disable dpms
## in the corresponding AC state.
# dpms_timeouts = [ 900, 300 ];
##########
# SCREEN #
##############################################################################################################
## Use this feature to provide screen-emitted brightness compensation to Clight. #
## The idea here is: #
## dark ambient -> higher monitor light contribution impact #
## bright ambient -> lower monitor light contribution impact #
## But, at the same time, obviously (as that is clight main feature): #
## dark ambient -> lower monitor backlight level -> lower monitor light contribution impact #
## high ambient -> high monitor backlight level -> higher monitor light contribution impact #
## We can assume these 2 contributions to zero each other, letting us just compute screen-emitted brightness #
## and linearly multiplying it for our guessed ambient-brightness screen contribution value. #
##############################################################################################################
## Uncomment to disable screen-emitted brightness compensation support
# no_screen = true;
## Screen timeouts on AC/on BATT.
## Set any of these to <= 0 to disable screen-emitted brightness compensation
## in the corresponding AC state.
## Disabled by default on BATT because it is quite an heavy operation,
## as it has to take a snapshot of your X desktop and compute its brightness.
# screen_timeouts = [ 30, -1 ];
## How much does your screen-emitted brightness affect
## ambient brightness, in your setup, in percentage.
# screen_contrib = 0.1;
## How many samples should be used to compute average
## screen-emitted brightness.
# screen_samples = 10;
###########
# GENERIC #
###########
## Verbose mode, useful in case of bugs:
## run clight in verbose mode,
## then open issue on github attaching log
# verbose = true;