**** BEGIN LOGGING AT Sun Jun 23 02:59:58 2013 Jun 23 03:12:25 Well, cool. Aside from the mad scientist-level wizardry they pulled to get this to work like this, sleepd is actually documented pretty well. It's pretty cool the way they did it, and as a result each of the modules are very well-organized. They're using some GCC-specific functionality to run code at binary load before it hits main(), which is where the main bit of confusion for me was. Jun 23 03:27:58 http://kylemaas.github.io/sleepd/ Jun 23 03:30:07 If someone could read through there a little bit and see if that makes any sense, that'd be great. If so, I'll commit and issue a pull request. I don't think there's much I'll be able to add - the power modules themselves are already documented. Jun 23 03:33:03 just being able to see them all in 1 place helps...its a convoluted "mess" is what I've read. Jun 23 03:34:26 Convoluted, yes. Mess would be a matter of opinion. The convoluted part is to make it less messy. Jun 23 03:35:27 Basically by running code before execution hits main(), they can define the modules completely independently from the loader, so modules can be added and deleted without ever touching any of the rest of the program. They're automatically registered with the service and automatically run. Jun 23 03:35:51 :) Jun 23 03:36:52 For more information, read up on __attribute__((constructor)) here: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html Jun 23 03:38:02 And then look at the definition of INIT_FUNC in init.h. Jun 23 03:44:59 ah, okay Jun 23 03:45:08 bbiaf...time for f00d Jun 23 16:42:42 Anyone get a chance to read through that docs link for sleepd yet? I'd like to know if it'd clear enough for someone else to actually understand how it works before committing and issuing a pull request. Jun 23 18:09:50 KyleMaas: they looked fine to me Jun 23 21:23:20 morphis: ping! Jun 23 22:33:02 morphis: Cool. Thanks for reviewing that. Pull request issued. Jun 24 01:17:16 random Q: anyone know how to increase system partition size in cm9/10? is it as easy as connecting to puter, gaining root access and linux-haxoring away **** ENDING LOGGING AT Mon Jun 24 02:59:58 2013