The invention relates to a
server power supply control method, a storage medium, a program product and a
server, and relates to the technical field of power
supply management. In the application, firstly, the
target level state maintenance duration of the power supply key
signal is detected to obtain a detection result, and the duration of pressing the entity power supply key can be known through the detection result. And then, according to the detection result, a key pulse width
signal is output to the substrate controller, so that the substrate controller can output an action instruction based on the key pulse width
signal, and the condition that the action instruction is still output under the condition of mistaken touch is avoided. And finally, the power-on or power-off action of the
server is triggered according to the action instruction, so that the entity power supply key cannot independently control the power-on or power-off of the server, and the unified
processing of the power-on or power-off of the server needs to be controlled through the substrate, thereby improving the integration level and avoiding the abnormal shutdown of the server caused by short-time mistaken touch.