Geoeffectiveness of different solar drivers, and long-term variations of the correlation between sunspot and geomagnetic activity