The G5 seems unhappy when the DVI connection is the only monitor. I've had to go find an ADC monitor and plug it in to get the DVI port to work properly. Then, you can ditch the ADC monitor.

I remember this being a problem the first time the G5 got on the KVM switch, but don't remember the solution.