[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: xrandr brightness: Check for eDP devices too (bug #11308)
noreply at xfce.org
noreply at xfce.org
Thu Nov 20 18:59:10 CET 2014
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit 4b3d97404d0b2d0bb3d677f719aa3bad2dfc13de
Author: Marcus Overhagen <marcusoverhagen at gmail.com>
Date: Thu Nov 20 18:56:41 2014 +0100
xrandr brightness: Check for eDP devices too (bug #11308)
Backlight brightness control via xrandr API is not limited to LVDS displays
but also available when the display is connected by Embedded Display Port (eDP).
Signed-off-by: Harald Judt <h.judt at gmx.at>
---
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 54d2d05..823b054 100644
--- a/common/xfpm-brightness.c
+++ b/common/xfpm-brightness.c
@@ -203,7 +203,7 @@ xfpm_brightness_setup_xrandr (XfpmBrightness *brightness)
{
info = XRRGetOutputInfo (gdk_x11_get_default_xdisplay (), 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) &&
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list