A driver circuit comprises a mains input and a switch mode power converter for delivering an output derived from the mains input by switching using a pulse width modulation signal. The switch mode power converter comprises a pulse width controller for controlling the pulse width of the pulse width modulation signal. A monitor is used for monitoring the pulse width of the pulse width modulation signal and for detecting a surge event from the pulse width, wherein the monitor is for detecting the surge event from changes in the pulse width and/or duty cycle over time, and comprises a monitor circuit for detecting a surge event based on the pulse width and/or duty cycle reducing to correspond to a first pulse from a second pulse, remaining at the first pulse for a time period falling within a first threshold range and then returning to the second pulse, wherein the width of the first pulse is narrower than the second pulse.