Recently my computer often shut down automatically after turning it on for about 10 min. Then I can not turn it on. I have to wait 1 hour to 24 hour to turn it on. At the same time I have to turn the switch on the power supply at I or O position back and forth and then I could turn my pc on. and then it automatically shut down again after about 10 min. I check the CPU cooling fan, it is running. Power supply fan is working too. MY CPU is AMDk6-II 300 mhz.

I do not know what is the problem?

thank you for help