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:
parent
cb7b27a705
commit
fd6aaec33d
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue