A driver for HID lamps includes four switches and generates a constant DC-current that is commutated at a low frequency. The driver includes a filter capacitor. The occurrence of peak currents due to the charging or discharging of the filter capacitor is prevented by driving one of the switches at a high frequency immediately after commutation.