A method for managing the electrical consumption of an on-board device in a vehicle comprising an electric power supply battery supplying power to said on-board device having a virtual battery, corresponding to a maximum energy quota available to keep said on-board device supplied with power by the electric power supply battery active, that is to say in standby or in operation, the electric power supply battery discharging, the method comprising:
- assigning the virtual battery to said on-board device,
- determining a level of charge of the virtual battery depending on the level of charge of the electric power supply battery,
- determining a probable duration of said discharge situation of the electric power supply battery,
- calculating a score for the benefit of keeping the on-board device active depending on at least one parameter of the vehicle and/or of the user, and,
- determining an instruction to keep said on-board device active or to stop said on-board device depending on said score and on the probable duration of the discharge situation of the electric power supply battery, and
- stopping the on-board device if the stop instruction is determined,
- wherein calculating the score for the benefit of keeping the on-board device active comprises determining an available usage time of the on-board device, the electric power supply battery discharging, depending on the level of charge of the virtual battery.