hal: Branch 'hal-0_5_9-branch'

David Zeuthen david at kemper.freedesktop.org
Sun Jun 3 18:46:01 PDT 2007


 hald/linux/addons/addon-macbook-backlight.c |    4 ++++
 1 files changed, 4 insertions(+)

New commits:
diff-tree f27d236f97c822046b8c010a602d01c2050e7a90 (from e24c420820c9d33aa3c5d28a23f501f938fc1c77)
Author: Martin Szulecki <compiz at sukimashita.com>
Date:   Sun Jun 3 21:40:44 2007 -0400

    fix Macbook Backlight not working after waking up from suspend to ram

diff --git a/hald/linux/addons/addon-macbook-backlight.c b/hald/linux/addons/addon-macbook-backlight.c
index 5314f3c..de65412 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;


More information about the hal-commit mailing list