automatic power generation