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