Lines Matching refs:backlight

47 #include "backlight.h"
188 struct backlight backlight;
502 val = backlight_get(&sna_output->backlight);
505 DBG(("%s(%s): backlight '%s' was %d, now %d\n",
506 __FUNCTION__, output->name, sna_output->backlight.iface,
545 if (udev_monitor_filter_add_match_subsystem_devtype(mon, "backlight", NULL))
557 DBG(("%s: installed backlight monitor\n", __FUNCTION__));
605 "Failed to set backlight %s for output %s, disabling\n",
606 sna_output->backlight.iface, output->name);
607 backlight_disable(&sna_output->backlight);
620 sna_output->base->name, level, sna_output->backlight.max));
622 if (backlight_set(&sna_output->backlight, level)) {
639 backlight_off(&sna_output->backlight);
649 if (backlight_on(&sna_output->backlight) < 0)
657 int level = backlight_get(&sna_output->backlight);
659 output->name, level, sna_output->backlight.max));
679 "Unrecognised backlight control interface '%s'\n",
704 /* XXX detect right backlight for multi-GPU/panels */
711 DBG(("%s(%s) opening backlight %s\n", __FUNCTION__,
714 backlight_open(&sna_output->backlight, best_iface);
715 DBG(("%s(%s): initial backlight value %d\n",
720 switch (sna_output->backlight.type) {
727 "Found backlight control interface %s (type '%s') for output %s\n",
728 sna_output->backlight.iface, best_iface, output->name);
838 * the backlight.
870 * the backlight.
1005 /* Make sure we mark the output as off (and save the backlight)
1007 * This is necessary as the kernel may turn off the backlight
3151 backlight_close(&sna_output->backlight);
3175 /* Record the value of the backlight before turning
3178 * reset the backlight across DPMS. Hence we need to
3182 if (sna_output->backlight.iface && dpms != DPMSModeOn) {
3185 DBG(("%s: saving current backlight %d\n",
3199 if (sna_output->backlight.iface && dpms == DPMSModeOn) {
3200 DBG(("%s: restoring previous backlight %d\n",
3324 if (sna_output->backlight.iface) {
3325 /* Set up the backlight property, which takes effect
3331 sna_output->backlight.max,
3337 sna_output->backlight.max,
3362 DBG(("%s: setting backlight to %d (max=%d)\n",
3363 __FUNCTION__, (int)val, sna_output->backlight.max));
3364 if (val < 0 || val > sna_output->backlight.max)
3433 if (!sna_output->backlight.iface)
3440 DBG(("%s(%s): output on, reporting actual backlight value [%d]\n",
3444 DBG(("%s(%s): output off, reporting cached backlight value [%d]\n",
3965 backlight_init(&sna_output->backlight);
6582 /* VT switching, likely to be fbcon so make the backlight usable */
6590 if (!sna_output->backlight.iface)