TechVendetta
Active member
With regards to the "Sleep of Death," I've noticed on occasion when charging overnight the phone will be off in the morning. It boots up normally, with a full charge, but I know it had been on when I went to bed. Not quite the same, but I wonder if it isn't related. It's certainly not the same glitch as when my phone locks up as it will usually just reboot itself, not shut down. I don't know how valuable that information is considering that I've been running the first OS2SD build with the original kernel, but I thought I'd throw that out there. I might not be able to contribute code, but I'll try to help in any way I can.
Sent from my Milestone X using Tapatalk 2
When it comes to sleep of death or phone reboots during charging, here's what's happening. Theres a charging profile built into the boot image, this profile handles what happens when a device is plugged in and powered off. So, if you have your phone charging for the night, and it crashes, and tries to trigger the reboot, it hits init in the boot image and tries to determine whether it should boot the os or boot into the charging only profile. The official option is to boot into charging only, but I hate this method because thats how developers wake up late for class or work. Currently, at least on my phone since the charging only profile is left out of this rom it will reboot back to the os, however it may then experience a few time display freezes or lags, but the system still actually knows the time.
Now, the sleep of death is another matter, this is triggered by the deep sleep profile. This is supposed to manage power savings while the phone has been in sleep mode for a certain period of time. The normal resumption from this state is typically handled in steps, however its likely that our values are off and it goes to sleep and doesn't like being woken suddenly.