[oe-issues] [Bug 2288] New: ipaq-sleep doesn't restore backlight brightness correctly

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Wed May 9 19:02:08 UTC 2007


http://bugs.openembedded.org/show_bug.cgi?id=2288

           Summary: ipaq-sleep doesn't restore backlight brightness
                    correctly
           Product: Openembedded
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: andrew.paulsen at gmail.com
         QAContact: tinderbox-oe at gmx.net


After dimming the backlight due to inactivity, ipaq-sleep does not correctly
restore the previous brightness.  This is due to a bug where ipaq-sleep is off
by one position when reading the output of /usr/bin/bl.


--- ipaq-sleep_0.9.bb~  2007-05-09 14:00:47.000000000 -0500
+++ ipaq-sleep_0.9.bb   2007-05-09 13:53:43.000000000 -0500
@@ -8,6 +8,7 @@

 SRC_URI_append = " file://init-script-busybox.patch;patch=1"
 SRC_URI_append = " file://install-fix.patch;patch=1"
+SRC_URI_append = " file://bl_offset.patch;patch=1"

 PR = "r1"



bl_offset.patch:
--- ipaq-sleep-0.9/ipaq-sleep.c~        2007-05-09 13:45:27.000000000 -0500
+++ ipaq-sleep-0.9/ipaq-sleep.c 2007-05-09 13:45:27.000000000 -0500
@@ -108,7 +108,7 @@
       if (fgets (buf, 32, input))
        {
          if (!strncmp (buf, "on ", 3))
-           r = atoi (buf + 4);
+           r = atoi (buf + 3);
          else
            r = -1;
        }


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the Openembedded-issues mailing list