Lines Matching refs:backlight
46 #include "backlight.h"
143 struct backlight backlight;
167 if (backlight_set(&intel_output->backlight, level) < 0) {
169 "failed to set backlight %s to brightness level %d, disabling\n",
170 intel_output->backlight.iface, level);
171 backlight_disable(&intel_output->backlight);
179 return backlight_get(&intel_output->backlight);
197 backlight_open(&intel_output->backlight,
201 "found backlight control interface %s\n", str);
207 "unrecognised backlight control interface %s\n", str);
211 backlight_open(&intel_output->backlight, NULL);
214 "found backlight control interface %s\n",
215 intel_output->backlight.iface);
323 /* Make sure we mark the output as off (and save the backlight)
325 * This is necessary as the kernel may turn off the backlight
381 * with the mode set. Also, restore the backlight level
1038 backlight_close(&intel_output->backlight);
1049 if (!intel_output->backlight.iface)
1053 /* If we're going from off->on we may need to turn on the backlight. */
1058 /* Only save the current backlight value if we're going from on to off. */
1245 if (intel_output->backlight.iface) {
1246 /* Set up the backlight property, which takes effect
1252 intel_output->backlight.max,
1258 intel_output->backlight.max,
1282 if (val < 0 || val > intel_output->backlight.max)
1348 if (!intel_output->backlight.iface)