[Bug 4101] New: ipaq-sleep cleanup, some improvements

bugzilla-daemon at treke.net bugzilla-daemon at treke.net
Wed Mar 19 14:04:55 UTC 2008


http://bugs.openembedded.net/show_bug.cgi?id=4101

           Summary: ipaq-sleep cleanup, some improvements
           Product: Openembedded
           Version: unspecified
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: andrew.paulsen at gmail.com
            Blocks: 2228


I had big plans for integrating some new features into ipaq-sleep, but only got
as far as a code cleanup and a few improvements.

Changes to improve maintenance:
* I converted all the code into the most common style (it looked like a few
different people worked on it in different styles)
* Whitespace cleanup
* Added comments
* Added syslog debugging output
* The log is now opened before it is used :)
* Refactored the file parsing to eliminate duplication
* Unused variables were removed

Changes to the operation:
* Added support for different backlight control programs/scripts (as opposed to
only calling gpe-conf)
* Reordered the wakeup logic a bit to get rid of intermittent flickering at
shutdown
* Implemented the CPU load check
* Changed periodic polling of screensaver to a select to help backlight come
back on quickly
* It now runs at a higher nice level


The backlight control program configuration was added since gpe-conf was
consistently using 100% cpu for a large fraction of a second every few seconds.
 This essentially broke cpu frequency scaling.  I included a simple shell
script that has the same interface and much less overhead (on my machine at
least).

The nice level was also added so programs like powernowd can ignore ipaq-sleep.


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




More information about the Openembedded-issues mailing list