I have a strange situation where I need to have a 3.5 mm stereo cable connected between the screen and the Raspberry Pi 3 Model B audio socket in order to have a picture on the screen. If I disconnect the stereo cable in either end the screen immediately becomes black and sleep starts shortly after. I would like to connect the audio connector of the Pi to other speakers, but this is not possible now. Anyone knows the cause of this problem?

The screen is connected to the Pi via an HDMI cable and an HDMI to DVI-D adapter (passive). My screen is not connected to a grounded power jack since I have no such here. Twisting the power cable 180 degrees in the power jack didn't help. The screen is a FUJITSU SIEMENS B17-2 CI:https://shop.staplesconnect.se/fujitsu- ... c/p1046532

Sounds as if the screen's DVI input is referenced to the Pi's ground only via the audio cable, which seems consistent with the other information you have given us. One approach would simply be to use a standard audio 'Y' cable to connect the Pi both to a cable to the screen (with its audio turned off) and to one to the input side of your speaker setup. Since it is almost certainly only the ground connection that is needed, another solution, would be to make a 'special' 'Y' cable, in which the audio is taken down one arm of the 'Y', going to the speakers, and only the screen/ground connection is made on the other arm, going to the Pi.

Sounds as if the screen's DVI input is referenced to the Pi's ground only via the audio cable

Thanks! Yes I have tested now with connecting the inner ring of the audio cable in the Pi end to ground on Pi and then the screen works. I think it's very strange that ground on the HDMI to DVI-D adapter or the HDMI cable doesn't work. Is this a common problem?

Thanks! Yes I have tested now with connecting the inner ring of the audio cable in the Pi end to ground on Pi and then the screen works. I think it's very strange that ground on the HDMI to DVI-D adapter or the HDMI cable doesn't work. Is this a common problem?

While not common, it's not unheard of. Some cheap HDMI-DVI adapters don't pass the ground through. Either get a better adapter, or get an HDMI-DVI cable.

Thanks! Yes I have tested now with connecting the inner ring of the audio cable in the Pi end to ground on Pi and then the screen works. I think it's very strange that ground on the HDMI to DVI-D adapter or the HDMI cable doesn't work. Is this a common problem?

While not common, it's not unheard of. Some cheap HDMI-DVI adapters don't pass the ground through. Either get a better adapter, or get an HDMI-DVI cable.

I switched HDMI to DVI-D adapter to another brand and now I can disconnect the audio cable without the screen turning black.

I have a couple of HDMI-DVI adapters that worked for me. One is a Monster Cable brand that was probably over-priced (don't know what it cost, someone gave it to me), and the other is a generic adapter that looks like this: