* acer-wmi: Respect current backlight level when loading
@ 2009-12-26 19:24 Carlos Corbacho
2010-02-19 5:19 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: Carlos Corbacho @ 2009-12-26 19:24 UTC (permalink / raw)
To: Linux ACPI; +Cc: lenb
Set the backlight to use the current brightness when loaded, rather than
always resetting the backlight to maximum brightness.
Fixes kernel bugzilla #14207
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Reported-by: Denis Mukhin <denis_mukhin@yahoo.com>
---
Len,
This is one floating about locally that seems to have fallen down the
back of the sofa.
Should be safe to apply even in -rc3, as it's just a minor bug fix. If not, it can
wait until 2.6.34
drivers/platform/x86/acer-wmi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 07d14df..226b3e9 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev)
acer_backlight_device = bd;
bd->props.power = FB_BLANK_UNBLANK;
- bd->props.brightness = max_brightness;
+ bd->props.brightness = read_brightness(bd);
bd->props.max_brightness = max_brightness;
backlight_update_status(bd);
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-19 5:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-26 19:24 acer-wmi: Respect current backlight level when loading Carlos Corbacho
2010-02-19 5:19 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).