Method for regulating a prosthesis (1), such as a knee, ankle or knee/ankle prosthesis, comprising at least one joint (2) controlled by an actuator (3) governed by a microcontroller (4) on the basis of data issuing from at least one gyroscope (5) and an accelerometer (6) that are able to measure the angular speed and the acceleration, respectively, of at least part of the prosthesis (1), characterized in that, during a defined period of time, the microcontroller (4) monitors the measurement given by the gyroscope (5) such that said microcontroller (4) enters an idle state reducing or cutting the electricity supply of at least one electronic organ of the prosthesis (1), except that of the accelerometer (6), when said microcontroller (4) detects that the absolute value of the measurement given by the gyroscope (5) is below a given threshold during the defined period of time.