diff options
author | Martin Szulecki <compiz@sukimashita.com> | 2007-06-03 21:40:44 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2007-06-03 21:43:00 -0400 |
commit | f27d236f97c822046b8c010a602d01c2050e7a90 (patch) | |
tree | 2c41ceac4c0489706532f5f63ec8a33557802bac | |
parent | e24c420820c9d33aa3c5d28a23f501f938fc1c77 (diff) |
fix Macbook Backlight not working after waking up from suspend to ram
-rw-r--r-- | hald/linux/addons/addon-macbook-backlight.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hald/linux/addons/addon-macbook-backlight.c b/hald/linux/addons/addon-macbook-backlight.c index 5314f3c8..de654120 100644 --- a/hald/linux/addons/addon-macbook-backlight.c +++ b/hald/linux/addons/addon-macbook-backlight.c @@ -160,6 +160,10 @@ backlight_set (long value) max = register_get () >> 17; + /* after resume the register might be set to zero; fix this */ + if (max == 0x00) + max = 0x94; + /* sanity check: this should always be 0x94 */ if (max != 0x94) return FALSE; |