mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
compositor-drm: Log failure and which backlight sysfs file we're using
This commit is contained in:
parent
698edf44ac
commit
275481d59d
1 changed files with 4 additions and 0 deletions
|
|
@ -1657,8 +1657,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…
Add table
Reference in a new issue