| 1 |
|
| 2 |
|
| 3 |
- currently i enable the 1% battery SOC wakeup when the battery is |
| 4 |
getting low, and check the voltage against critical (5.7V) then. |
| 5 |
but that's only possible if we're awake to |
| 6 |
notice. i'm reluctant to enable the 1% battery SOC |
| 7 |
wakeup all the time, because that seems like a lot of |
| 8 |
wakeups. too bad there's no "wake me at this battery |
| 9 |
threshold" wakeup -- preferably for voltage, which is what |
| 10 |
really matters. (we should fix the |
| 11 |
/sys/class/power_supply/olpc-battery/capacity_level |
| 12 |
output as well, but that's in the kernel. currently it |
| 13 |
never hits "critical".) |
| 14 |
|
| 15 |
[ later: it seems the EC generates a critical battery |
| 16 |
SCI. the kernel just needs to start watching for it. ] |
| 17 |
|
| 18 |
if wakeup happened a bit early then we could beep |
| 19 |
(configurable) every so often thereafter until we hit shutdown |
| 20 |
or the condition cleared. |
| 21 |
|
| 22 |
- there's no way to specify no dimming for just one of the |
| 23 |
modes. i.e., i'd like dimming when on battery in laptop |
| 24 |
mode, but not in ebook mode (where i want it to sleep |
| 25 |
right away, but at full brightness). this would mean |
| 26 |
a per-mode dimlevel. |
| 27 |
|
| 28 |
better to create separate configurations, and switch among |
| 29 |
them using "powerd-config <profilename>", which will |
| 30 |
swap in a different config and signal powerd to reconfigure. |
| 31 |
this lets one manage different configs for different |
| 32 |
uses. the way the laptop is used on vacation might be |
| 33 |
different than at school, or than at the beach, etc.) |
| 34 |
|
| 35 |
- add monitoring of network load (how?) to prevent sleeps? |
| 36 |
|
| 37 |
- someone should write an ohmd "keystore" to powerd |
| 38 |
"inhibit-file" translator to convert the get/set that |
| 39 |
some activities and processes do in order to inhibit |
| 40 |
suspend into something powerd can use. or else, augment |
| 41 |
the activities to use the new api as well as, or in place |
| 42 |
of, the old. |
| 43 |
|
| 44 |
- how should mesh and AP connections be treated wrt keeping the |
| 45 |
wireless alive? if we sleep with an AP connection, will we |
| 46 |
eventually lose association anyway? |
| 47 |
|
| 48 |
|
| 49 |
debxo: |
| 50 |
- rtcwake doesn't work -- kernel config? |
| 51 |
|
| 52 |
/sys/class/rtc/rtc0/device/power/wakeup: No such file or directory |
| 53 |
rtcwake: /dev/rtc0 not enabled for wakeup events |
| 54 |
|