From fd6aaec33d8ad70544cc02e061c9c5e68cf83414 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 10 Jun 2014 11:01:38 +0100 Subject: [PATCH] sna: Handle the user passing "Backlight" "" Allow the user to disable the backlight control by passing the empty string in the xorg.conf. Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 40cc3476..8e9f7112 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -591,6 +591,8 @@ has_user_backlight_override(xf86OutputPtr output) return NULL; DBG(("%s(%s) requested %s\n", __FUNCTION__, output->name, str)); + if (*str == '\0') + return str; if (backlight_exists(str) == BL_NONE) { xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,