The power button has a cable, which is connected to two pins on the motherboard. By pressing the power button, a circuit is closed on the mainboard. At that moment, the power supply receives the signal to supply the computer with power and thus start up.