Here are the pinouts for the CRT and the DVI plug. When I have rewired these connectors in the past I have never had to connect the ID bit on pins 4 / 11 / 12 / 15.
15pin H/D Connector (
http://pinouts.ru/data/VGA15_pinout.shtml)
Pins numbers and signal type
1 red
2 green
3 blue
4 ID bit 2
5 n/c
6 red ground
7 green ground
8 blue ground
9 n/c
10 ground
11 ID bit 0
12 ID bit 1
13 H sync
14 V sync
15 ID bit 3 or SCL
DVI Pin Signal (
http://pinouts.ru/data/dvi_pinout.shtml)
Pin numbers and signal type
1 T.M.D.S DATA 2-
2 T.M.D.S DATA 2+
3 T.M.D.S DATA 2/4 SHIELD
4 T.M.D.S DATA 4-
5 T.M.D.S DATA 4+
6 DDC CLOCK
7 DDC DATA
8 ANALOG VERT. SYNC
9 T.M.D.S DATA 1-
10 T.M.D.S DATA 1+
11 T.M.D.S DATA 1/3 SHIELD
12 T.M.D.S DATA 3-
13 T.M.D.S DATA 3+
14 +5V POWER
15 GND
16 HOT PLUG DETECT
17 T.M.D.S DATA 0-
18 T.M.D.S DATA 0+
19 T.M.D.S DATA 0/5 SHIELD
20 T.M.D.S DATA 5-
21 T.M.D.S DATA 5+
22 T.M.D.S CLOCK SHIELD
23 T.M.D.S CLOCK+
24 T.M.D.S CLOCK-
C1 ANALOG RED
C2 ANALOG GREEN
C3 ANALOG BLUE
C4 ANALOG HORZ SYNC
C5 ANALOG GROUND
TMDS (transition minimized differential signaling)
As you can see from both connectors pinout's the wiring is pretty straight forward to make an adaptor cable.
The interesting thing is that the Apple supplies an adaptor thats has a DVI Single link connector on it, which means it should be wired for both analog and digital pins.
The adaptor that Apple should surely haave supplied is a DVI -A which is a High-Res Analog adaptor and only has total of 17 pins in total.
This is why I wondered if they have done something strange inside their adaptor cable hence all your problems.