Energy-saving lamp charger switch