unfortunately you are probably experiencing a common issue with this series - the graphics processor either fails or its solder joints to the logic board become loose.
some have had success using non-conductive material (folder paper square, etc) to create a shim between the chip and the case, causing force and pressure to hold the chip stable. others have been able to get the chip solder reflowed.
see these existing answers:
Why does my iBook randomly freeze?
Display Screen stays black, but computer still works good
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
1