Definitely this depends on your h/w and the design on it. firstly, Android does not support power-off alarm (even RTC support is there in h/w). So with alarm, its not possible to wake up the system (until you have a proper application to do so plus h/w RTC alarm support).
secondly, power-off charging depends on vendor design. As Kolja mentioned, 1. it can be done without waking Application processor (and charging can be done by PMU h/w itself) - but these are rarely seen as for calculating battery capacity from h/w need more sophisticated h/w and thus increased price. 2. It can be handled at some level of bootloaders - this is very common. But now-a-days all devices shows proper battery level with charging animation at power-off charging. To implement the same in bootloader is little tricky and hard as it runs on single thread. 3. boot the kernel and instead of getting Android up just load thin ramdisk where power off charging application can do all those I mentioned. @Levi Find out if source code for your device are openly available then you can have study of code and better understand the scenario. regards, TKG On Wed, Feb 15, 2012 at 5:34 PM, Kolja Dummann <[email protected]> wrote: > This pretty much depends on your Hardware. I dunno which hardware is > used in that Tablet. > > So devices boot kernel to charge the battery, but some don't. Some > just use the bootloader some other do charging without booting up the > Application Processor and do this plain on the PMU. > > So you have to find out if your device is booting a kernel or not to > charge. If it does, it likely that it is a simple logic in the init > process that doesn't start Android and just sets up the PMU for > charging. > If the device isn't powering the Application Processor or isn't > booting the Kernel there is no way to do what you want to do from the > Kernel. > > Cheers Kolja. > > > On Tue, Feb 14, 2012 at 1:11 PM, Levi Ribeiro <[email protected]> > wrote: > > I'm using an Android tablet (a Coby Kyros MID 7016) for an application > > where I'd like the device to power on without using the power on > > button, via usb or setting an alarm. > > > > I've already tried installing some app, setting an alarm, turning off > > the device, and the device does not power on. > > That tablet doesn't charge via USB. > > > > So i think its something on the kernel, some hack that could fix this. > > > > A bit of Googling revealed that I could modify the executable /system/ > > bin/playlpm, but my device don't have this file (when I plug my device > > in charger it doesn't show any image on the screen, theres just a led > > to indicate when the device is full charged). > > > > Anyone know how to improve this? > > > > Thanks in advance! > > > > -- > > unsubscribe: [email protected] > > website: http://groups.google.com/group/android-kernel > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-kernel -- With Best Regards, *Tirtha* [image: Nico Nico animated GIF --] -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
