As @Wyzard says, computers talk to monitors via DDC and this uses 4 pins on the vga.
See the pinout on wikipedia.
A working vga cable needs all the pins wired independently from each, and also from the cable shielding
to the chassis, i.e the metal cover of the plugs and sockets. Only pins 4 and 11 can be missing or not cabled.
Inside a monitor there is a small eprom holding information on the monitor's resolutions (the EDID). This
eprom is accessible even when the monitor is powered off, as it is
independently powered from the computer by 5 volts on pin 9, with ground on pins 10 and 5.
The eprom is read using i2c clock and data signals on pins 12 and 15.
These days with DDC, the i2c bus can do other things too.
The analogue video signals on pins 1, 2, 3 have independent analogue ground on 6, 7, and 8.
Some bad vga cables will not have these analogue grounds, nor the i2c ground, and assume the cable shielding
will do. This often does not work.
The only way to check vga cables is with a continuity tester (multimeter) ensuring that all pins are wired
through, and none are in common, including the shield.
TVs don't commonly have VGA, and I've generally had to set it manually. What sort of Mac? Macs haven't had VGA out in years so what sort of adaptors are you using? – Journeyman Geek – 2015-07-21T02:51:57.987
@JourneymanGeek It's a 3-year-old Samsung TV, relatively low-end. It has an HDMI port which I use for my RPi and a VGA port that I use for my 2013 MacBook Air. I have an Apple adapter to convert I believe display port to VGA. – Leo Jweda – 2015-07-21T02:53:28.243
I half suspect the adaptor may come into play. I'd also add, as of 2015, no major computer manufacturer is supporting VGA and DVI, so chances are those cables will stop being made in a few years. You can still find some systems with support, but in general dp's the preferred standard for Monitors, and HDMI for TVs. PCs will output both, of course. – Journeyman Geek – 2015-07-21T03:14:58.003
@JourneymanGeek Like I said, in the exact same setup, with the exact same adapters, some cables work and other don't. It most definitely NOT the adapter.
Cute dog BTW. – Leo Jweda – 2015-07-21T03:17:49.643