I wouldn't suspect the ROM, but rather battery, charger, cable, port... store can check those things out for you.
In re to what you can do in theory, modern ROMs/android OS handle things pretty efficiently so I don't think it is something you have done - that is if you are not overclocking and...