+ return read_int_from_file("/sys/class/power_supply/bq27500-0/capacity");
+}
+
+static int gamma_set(int val, int black_level)
+{
+ char buf[128];
+
+ snprintf(buf, sizeof(buf), "%s/op_gamma.sh -b %d %.2f",
+ pnd_script_base, black_level, (float)val / 100.0f);
+ return do_system(buf);