How to fix a broken G4 iBook logic board problem

There is a problem with the logic board in the Macintosh G4 ibooks. It can appear after a year or more in some machines and the symptom is that after being on for a few minutes, the screen goes black (it looks blank, but the light has gone off) , the fan turns on, and the computer freezes.