<p>Method for controlling a compressor that contains a compressor element, characterised in that during a transition from full load or partial load to zero load, a process A is followed that comprises the following steps:- the reduction of the inlet pressure; - the reduction of the speed and/or the drive torque, and/or during a transition from zero load to partial load or full load, a process B is followed that comprises the following steps: - increase of the speed or drive; and - the increase of the inlet pressure.</p>