aboutsummaryrefslogtreecommitdiff
path: root/lightsd.conf
blob: ca47344e9e70cc4fd32aa63cc3f08018873d7c21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#example configuration for lightsd

#path to backlight control in sysfs
#expected files are max_brightness and brightness
lcd_backlight_control=/sys/class/backlight/intel_backlight

#path to keyboard backlight control in sysfs
#expected files are max_brightness and brightness
kbd_backlight_control=/sys/bus/platform/devices/thinkpad_acpi/leds/tpacpi::kbd_backlight

#list of (*increasing* _integer_) threshold values from the ambient light sensor, separated by commas
lcd_backlight_thresholds=10,20,50,100,500,2000,10000

#list of (_integer_) brightnesses (percentage) corresponding to the thresholds
lcd_backlight_values=3,5,10,15,30,60,80,100

#seconds before a brightness change really takes place
#(any als reading change crossing a threshold resets the timer)
lcd_backlight_control_delay=3

#don't trigger a brightness change until sensor reading away from
#the threshold exceeds this value
#this is a relative value, multiplied by logarithm of the compared
#threshold before using
lcd_backlight_trigger_range=2

#same as their lcd conterpart
kbd_backlight_thresholds=100
kbd_backlight_values=50,0
kbd_backlight_control_delay=5
kbd_backlight_trigger_range=2

#where to create the fifo for remote control
command_fifo_path=/tmp/lightsd.cmd.fifo