A control method for a resonant linear compressor, applied to a cooling system, the method comprising the following steps: a) reading a reference operation power (P ref) of the compressor, wherein said step of reading a reference operation power (P ref) of the compressor comprises one of: (i) reading input from a user that indicates said reference operation power (P ref); (ii) reading a temperature signal from a thermostat that indicates a temperature of the cooling system and calculating the reference operation power (P ref) as a function of the temperature signal; b) measuring an operation current (i MED) of the motor of the compressor on a processing electronic device; c) measuring an operation voltage of a control module of the compressor; d) calculating an input power (P MED) of the motor of the compressor on the processing electronic device as a function of the operation current (i MED) and of the operation voltage; e) determining a piston displacement value (D pis) of the compressor; f) comparing the piston displacement (D pis) with a maximum displacement value (D Pmax), g) if the piston displacement value (D pis) is higher than the maximum displacement value (D Pmax), then decrease the operation voltage of the compressor using an electronic power device; h) if the piston displacement value (D pis) is lower than the maximum displacement value (D Pmax), then carrying out the sequence of steps: i) comparing the input power (P MED) with the reference operation power (P ref); j) if the reference operation power (P ref) is higher than the input power (P MED), then increase an operation voltage of the compressor (U C), using the electronic power device; k) if the reference operation power (P ref) is lower than the input power (P MED), then decrease the operation voltage of the compressor (U C), using an electronic power device. a) reading a reference operation power (P ref) of the compressor, wherein said step of reading a reference operation power (P ref) of the compressor comprises one of: (i) reading input from a user that indicates said reference operation power (P ref); (ii) reading a temperature signal from a thermostat that indicates a temperature of the cooling system and calculating the reference operation power (P ref) as a function of the temperature signal; (i) reading input from a user that indicates said reference operation power (P ref); (ii) reading a temperature signal from a thermostat that indicates a temperature of the cooling system and calculating the reference operation power (P ref) as a function of the temperature signal; b) measuring an operation current (i MED) of the motor of the compressor on a processing electronic device; c) measuring an operation voltage of a control module of the compressor; d) calculating an input power (P MED) of the motor of the compressor on the processing electronic device as a function of the operation current (i MED) and of the operation voltage; e) determining a piston displacement value (D pis) of the compressor; f) comparing the piston displacement (D pis) with a maximum displacement value (D Pmax), g) if the piston displacement value (D pis) is higher than the maximum displacement value (D Pmax), then decrease the operation voltage of the compressor using an electronic power device; h) if the piston displacement value (D pis) is lower than the maximum displacement value (D Pmax), then carrying out the sequence of steps: i) comparing the input power (P MED) with the reference operation power (P ref); j) if the reference operation power (P ref) is higher than the input power (P MED), then increase an operation voltage of the compressor (U C), using the electronic power device; k) if the reference operation power (P ref) is lower than the input power (P MED), then decrease the operation voltage of the compressor (U C), using an electronic power device. i) comparing the input power (P MED) with the reference operation power (P ref); j) if the reference operation power (P ref) is higher than the input power (P MED), then increase an operation voltage of the compressor (U C), using the electronic power device; k) if the reference operation power (P ref) is lower than the input power (P MED), then decrease the operation voltage of the compressor (U C), using an electronic power device.