aboutsummaryrefslogtreecommitdiff
path: root/lightsd.conf
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-04-09 22:42:45 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-04-09 22:42:45 +0800
commit6bdb9028af9a5256fbb47b942843e49aef7e3aa1 (patch)
treea2346e35e36a3fcb016cb7ab65bcbcb84dede1bf /lightsd.conf
downloadlightsd-6bdb9028af9a5256fbb47b942843e49aef7e3aa1.tar.xz
Initial commit.
Diffstat (limited to 'lightsd.conf')
-rw-r--r--lightsd.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/lightsd.conf b/lightsd.conf
new file mode 100644
index 0000000..ca47344
--- /dev/null
+++ b/lightsd.conf
@@ -0,0 +1,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