The problem of "unlimited energy generator" of the sun is that on the ground it is intermitted based on day/night and clouds, meaning we would have to create a surplus of energy during the day and store it for later use. We have been working on batteries, but there has been promise at using air or water "batteries" as well via compressed air or Pumped Storage Hydropower (PSH).
I would highly recommend reading both Bill Gates's How to Avoid a Climate Disaster and Vaclav Smil's How the World Really Works, both of which have really shown what needs to happen to solve both our climate and energy problems going forward.
I want human race to flourish and tackle problems, not regress back to the caves.
It is mind blowing to me that the first diesel engine installed on a ship was 1903 and where we are 122 years later already touching space. I can hardly wait to see what the next 50+ years bring. It will be hard and I am sure we will have some growing pains, but going back is never an option.
I predict that in 2040 there are going to be "space enviromentalists" that will try to prevent humans from exploring space in the name of keeping it as is.
Solving fusion power would be a watershed moment for humans and that's where the focus needs to be. The other one is Cancer that needs to be eradicated.