compositor-drm: Log failure and which backlight sysfs file we're using

Kristian Høgsberg 12 years ago
parent daaddc6032
commit 220819f7b9
  1. 4
      src/compositor-drm.c

@ -1851,8 +1851,12 @@ create_output_for_connector(struct drm_compositor *ec,
output->backlight = backlight_init(drm_device,
connector->connector_type);
if (output->backlight) {
weston_log("Initialized backlight, device %s\n",
output->backlight->path);
output->base.set_backlight = drm_set_backlight;
output->base.backlight_current = drm_get_backlight(output);
} else {
weston_log("Failed to initialize backlight\n");
}
wl_list_insert(ec->base.output_list.prev, &output->base.link);

Loading…
Cancel
Save