[PATCH] Backlight brightness control via xrandr API is not limited to LVDS displays but can also be available when the display is connected by Embedded Display Port (eDP).
Marcus Overhagen
marcus.overhagen at gmail.com
Thu May 30 00:31:33 CEST 2013
---
common/xfpm-brightness.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/xfpm-brightness.c b/common/xfpm-brightness.c
index 7e5470a..0d19c67 100644
--- a/common/xfpm-brightness.c
+++ b/common/xfpm-brightness.c
@@ -204,7 +204,7 @@ xfpm_brightness_setup_xrandr (XfpmBrightness *brightness)
{
info = XRRGetOutputInfo (GDK_DISPLAY (), brightness->priv->resource, brightness->priv->resource->outputs[i]);
- if ( g_str_has_prefix (info->name, "LVDS") )
+ if ( g_str_has_prefix (info->name, "LVDS") || g_str_has_prefix (info->name, "eDP") )
{
if ( xfpm_brightness_xrand_get_limit (brightness, brightness->priv->resource->outputs[i], &min, &max) &&
--
1.8.1.2
More information about the Xfce4-dev
mailing list