Seconded on the ground loop. The DVI cable leads ground. The computer is grounded through the outlet, and the TV is grounded at either the outlet (common for HDTVs), through the analog antenna connection (common in apartment buildings) or both (which really isn't good, as it can cause TVs to catch fire). Try connecting TV and computer to the same outlet and see if that helps.
Otherwise, optical indeed works fine.