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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-10 11:01:38 +01:00
parent cb7b27a705
commit fd6aaec33d
1 changed files with 2 additions and 0 deletions

View File

@ -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,