Basically, I want to create an apocalyptic event that knocks out most electricity, for a long time, hundreds of years at least. Electronic devices that do work would be extremely rare, and people eventually give up trying to create new tech because a CME would render it useless within the week/month.
Is there any way the sun could become active in this way? Maybe near the end of its lifespan?
Also, would it damage the earthsEarth's atmosphere, change the climate, or raise radiation levels enough that Earth would become uninhabitable?