Variable-frequency energy saving