The invention relates to the technical field of
server safety control, and discloses a
mobile server power button
soft switching method and a storage medium, and the method comprises the steps that a power-on control
chip is connected with a CPU through a
serial port or a GPIO interface to form a shutdown command line issuing link, shutdown monitoring service
software running in an
operating system is notified, and the shutdown monitoring service
software is connected with the CPU through the
serial port or the GPIO interface; the shutdown monitoring service
software executes the shutdown command and notifies an
operating system to execute shutdown operation; and after the operation
system completes the shutdown operation, a shutdown completion
signal is issued to the power-on control
chip, and the power-on control
chip performs the power-down operation. According to the scheme, only one
serial port or I2C of the CPLD / MCU needs to be additionally led out, additional hardware design is not needed, and additional cost is avoided; the
server device solves the problem that files are damaged due to frequent shutdown of the
mobile server device through the soft shutdown function of the power button, the configuration of a keyboard and a display is saved, resources are saved, and the device is protected.