5f05fc5
From 0dbc2bc96b1ec741bdd43451c286ccd45da3310b Mon Sep 17 00:00:00 2001
5f05fc5
From: Josh Boyer <jwboyer@redhat.com>
5f05fc5
Date: Wed, 2 Nov 2011 14:31:59 -0400
5f05fc5
Subject: [PATCH] sony-laptop: Enable keyboard backlight by default
5f05fc5
5f05fc5
When the keyboard backlight support was originally added, the commit said
5f05fc5
to default it to on with a 10 second timeout.  That actually wasn't the
5f05fc5
case, as the default value is commented out for the kbd_backlight parameter.
5f05fc5
Because it is a static variable, it gets set to 0 by default without some
5f05fc5
other form of initialization.
5f05fc5
5f05fc5
However, it seems the function to set the value wasn't actually called
5f05fc5
immediately, so whatever state the keyboard was in initially would remain.
5f05fc5
Then commit df410d522410e67660 was introduced during the 2.6.39 timeframe to
5f05fc5
immediately set whatever value was present (as well as attempt to
5f05fc5
restore/reset the state on module removal or resume).  That seems to have
5f05fc5
now forced the light off immediately when the module is loaded unless
5f05fc5
the option kbd_backlight=1 is specified.
5f05fc5
5f05fc5
Let's enable it by default again (for the first time).  This should solve
5f05fc5
https://bugzilla.redhat.com/show_bug.cgi?id=728478
5f05fc5
5f05fc5
Acked-by: Mattia Dongili <malattia@linux.it>
5f05fc5
Signed-off-by: Josh Boyer <jwboyer@redhat.com>
5f05fc5
---
5f05fc5
 drivers/platform/x86/sony-laptop.c |    2 +-
5f05fc5
 1 files changed, 1 insertions(+), 1 deletions(-)
5f05fc5
5f05fc5
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
5f05fc5
index c006dee..40c4705 100644
5f05fc5
--- a/drivers/platform/x86/sony-laptop.c
5f05fc5
+++ b/drivers/platform/x86/sony-laptop.c
5f05fc5
@@ -127,7 +127,7 @@ MODULE_PARM_DESC(minor,
5f05fc5
 		 "default is -1 (automatic)");
5f05fc5
 #endif
5f05fc5
 
5f05fc5
-static int kbd_backlight;	/* = 1 */
5f05fc5
+static int kbd_backlight = 1;
5f05fc5
 module_param(kbd_backlight, int, 0444);
5f05fc5
 MODULE_PARM_DESC(kbd_backlight,
5f05fc5
 		 "set this to 0 to disable keyboard backlight, "
5f05fc5
-- 
5f05fc5
1.7.7.6
5f05fc5