Notice: Trying to access array offset on value of type bool in /srv/www/vhosts/openpandora.org/domains/bugs.openpandora.org/httpdocs/scripts/details.php on line 649 FS#47 : evmapperd: Blinking LED and charging control

OpenPandora Main OS

  • Status Closed
  • Percent Complete
    100%
  • Task Type To Do (Reminder)
  • Category Core
  • Operating System All
  • Severity Medium
  • Reported Version SuperZaxxon Beta 4
Attached to Project: OpenPandora Main OS
Opened by Michael Mrozek - 18.02.2010
Last edited by Grazvydas - 31.08.2010

FS#47 - evmapperd: Blinking LED and charging control

evmapperd should start blinking when the power is getting low. Ideally, the blinking speed should increase with decreasing battery power and should start maybe at 5% as default (would be nice to have the settings configurable by the user). As soon as the AC adaptor is connected, blinking should stop. When the battery power is at 0% it should immediately shutdown and poweroff (NOT to be overridden by the user!) Aditionally, we should have some charging control (or would it be better using a different daemon for that?) Here's part of my conversation with MichaelW: when the charge current was below a threshold, it would reduce the charger input current allowed and take it down to about what the system needs it would be an active thing constantly sampling the system and constantly updating the input current to match the system the alternative is that when the battery is full, the charge path is cut off until the battery drops down a bit, maybe 90%
Closed by  Grazvydas
31.08.2010 10:53
Reason for closing:  Fixed
Jeff commented on 18.02.2010 03:59
Done basic operation .. See the /etc/pandora/conf eventmap config to specify the battery params and scripts. Needs a shutdown script Also need to figure out what we're doing about the charger-level mentioned above.
tsh commented on 14.07.2010 00:03
In 14Mhz clock state, the shutdown script gets called repeatedly and does not have time to complete - end result being a flat battery in double quick time. I have modified pndevmapperd to only warn once (until battery is back over flash threshold). Also included is a built version of this file (at your own risk, copy to /usr/bin). A related issue is that xfce power manager is set up by default to 'sudo poweroff' at 5% battery, and this is overiden by mains power, but not USB charge (which otherwise can bring up my unit)
tsh commented on 14.07.2010 00:04
"nd attempt - I forgot I had patched the shutdown script to work with no delay parameter, and also provide the correct countdown. Now reads a battery.shutdown_delay from the eventmap file.
(application/x-gzip)    pndevmapperd.tgz (22.8 KiB)
(application/x-gzip)    pndevmapperd2.tgz (23.5 KiB)
Jeff commented on 14.07.2010 01:09
Guessing all you did was add the g_warned 4 or 5 lines to it; I'll do a diff later. Looks like a sensible patch, so I'll fold it into the git tomorrow when I get a moment? Thanks! :) jeff
tsh commented on 14.07.2010 08:09
Maybe i should learn to use diff... I added ~5 lines, then went back and added another ~5 for passing in a parameter to the shutdown script (which was counting up, not down). If I see it in the GIT, I'll check it.
Jeff commented on 14.07.2010 19:52
Submitted to git http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commit;h=60a7ee774fcec2ae07461037ae7b3ca1619a8c6d
Grazvydas commented on 31.08.2010 10:53
Looks like we handled this one way or another by now, closing.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing