IIRC the USB ports on your computer are directly connected to the logic board. If all the ports are dead you probably have a component problem on your logic board. Try cleaning the ports and using a simple USB mouse to test with after cleaning. Since this is a G5 if the cleaning doesn't work check out the capacitors on the logic board. Good luck.