I don't know a good solution. I know it's common.
My not-so-good solution is to disable sleep.
After putting my G4 Mac to sleep, I can wake it up just by pressing any key on the keyboard but about fifty percent of the time my monitor will remain dark (apparently, no power is reaching the keyboard). My only option then is to restart the computer. I would very much like to get rid of this annoying problem.