aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-14 11:46:12 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-14 11:46:12 +0800
commitea652045bb38651d99bcc53972a524f602c3b306 (patch)
treeea7bf5f5b3f0a76faf07bfeb944b3a56f6afd527 /main.cpp
parente5aac499a8a2026af5d5176f45be3ac2576d75cc (diff)
downloadlightsd-ea652045bb38651d99bcc53972a524f602c3b306.tar.xz
Added a simple tool to create a fake sysfs backlight interface
that invokes external commands. Some changes in the utility module to accomodate the new tool. Added an option to watch ALS readings.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index e7f4e84..f05d3d2 100644
--- a/main.cpp
+++ b/main.cpp
@@ -70,6 +70,7 @@ void load_config()
if(sv[0]=="kbd_backlight_trigger_range")kbd.set_trigrange(atoi(sv[1].c_str()));
if(sv[0]=="kbd_backlight_min_value")kbd.set_minabr(atoi(sv[1].c_str()));
if(sv[0]=="command_fifo_path")fifo_path=sv[1];
+ if(sv[0]=="als_print_value")als.set_debug(sv[1]=="true");
}
delete[] buf;
}