Phone wakes when unplugged, how to keep it asleep?
It's probably doable, but I very much doubt that you can do this with the default (unmodified) factory firmware. Custom firmwares such as CyanogenMod may allow you to do this. Your mileage may vary and you may even need to modify or recompile these custom firmwares to get what you want.