A method of operating a variable displacement compressor where the compressor has a plurality of pistons mounted in respective cylinder bores and reciprocated by rotation of a variably inclinable swash plate, the inclination of the swash plate being determined by the pressure within a crank chamber that houses the swash plate, and the pressure within the crank chamber being established by feeding compressed gas from a discharge chamber through a supply passage to the crank chamber and returning gas from the crank chamber to a suction chamber through a pressure release passage, said method comprising the steps of providing an electrically controlled valve for controlling the flow rate through one of said passages where said valve is continuously controllable in response to its electrical energization for controlling the flow rate between a minimum and a maximum value, and all values in-between, and controlling said valve with control means to control the energization of said valve to determine the displacement of said compressor.