Displaying 1 result from an estimated 1 matches for "drmmode_backlight_set".
2010 Aug 05
0
[PATCH] drmmode: Add backlight support
...ght_active_level;
+ int32_t backlight_max;
+ int dpms_mode;
} drmmode_output_private_rec, *drmmode_output_private_ptr;
static void drmmode_output_dpms(xf86OutputPtr output, int mode);
@@ -160,6 +182,155 @@ drmmode_ConvertToKMode(ScrnInfoPtr scrn, drmModeModeInfo *kmode,
}
static void
+drmmode_backlight_set(xf86OutputPtr output, int level)
+{
+ drmmode_output_private_ptr drmmode_output = output->driver_private;
+ char path[BACKLIGHT_PATH_LEN], val[BACKLIGHT_VALUE_LEN];
+ int fd, len, ret;
+
+ if (level > drmmode_output->backlight_max)
+ level = drmmode_output->backlight_max;
+ if (!drmmod...