Before your scenario happens we will see some form of distributed power supplied by small factory built nuclear reactors. If we were smart, and we aren't, they would be Thorium based. Before anything good happens there will have to be a painful crisis. This is just about always the case.
Inertia, greed and stupidity block the solution to most problems. We have plenty of mis-guided stupidity and greed right now. The solutions are available but they are blocked.
Hope is a strategy. Not always successful. I sincerely wish your scenario happens but I'm not that optimistic because I believe TPTB are malevolent and their plan is decreasing the "surplus population" to their agenda levels. Restricting food/energy/money is one way to do that. I expect more vaccines before thorium power plants to "save" us.