From 1c9d1b2de18027d3233a8e42b0ebf23623e5aa09 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 7 Sep 2014 09:16:49 -0400 Subject: [PATCH] only default to led subsystem backlight if it isn't a mail or kbd device fix T1497 do backlights with subsystem=leds still exist or have they fixed that yet? --- src/bin/e_backlight.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c index 137e144..3796f42 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -425,7 +425,10 @@ _bl_sys_find(void) EINA_LIST_FOREACH(pdevs, l, f) { if (!bl_sysval) - bl_sysval = eina_stringshare_add(f); + { + if ((!strstr(f, "kbd")) && (!strstr(f, "mail"))) + bl_sysval = eina_stringshare_add(f); + } } } /* clear out preferred devs list */ -- 2.7.4