Lines Matching refs:backlight
46 #include "backlight.h"
144 struct backlight backlight;
168 if (backlight_set(&intel_output->backlight, level) < 0) {
170 "failed to set backlight %s to brightness level %d, disabling\n",
171 intel_output->backlight.iface, level);
172 backlight_disable(&intel_output->backlight);
180 return backlight_get(&intel_output->backlight);
198 backlight_open(&intel_output->backlight,
202 "found backlight control interface %s\n", str);
208 "unrecognised backlight control interface %s\n", str);
212 backlight_open(&intel_output->backlight, NULL);
215 "found backlight control interface %s\n",
216 intel_output->backlight.iface);
324 /* Make sure we mark the output as off (and save the backlight)
326 * This is necessary as the kernel may turn off the backlight
382 * with the mode set. Also, restore the backlight level
993 backlight_close(&intel_output->backlight);
1004 if (!intel_output->backlight.iface)
1008 /* If we're going from off->on we may need to turn on the backlight. */
1013 /* Only save the current backlight value if we're going from on to off. */
1200 if (intel_output->backlight.iface) {
1201 /* Set up the backlight property, which takes effect
1207 intel_output->backlight.max,
1213 intel_output->backlight.max,
1237 if (val < 0 || val > intel_output->backlight.max)
1303 if (!intel_output->backlight.iface)