In this setup, would an endless supply of fresh water flow through the membrane and bubble out the top of the pipe? I'm guessing not, but I'm having a hard time understanding why.
Second law of thermodynamics.
In any case nobody is trying to make a perpetual movement machine.
The goal is to create a cheaper way to extract salt from saltwater, and use the pressure gradient at the sea to put apart brine and water may be a solution waiting for an engineer (in my opinion). It is assumed that will not be free in terms of energy. It doesn't matter as long as is slightly better than the current solution. Would be much faster than waiting for the sun so it does not need to be cheaper than that. It just needs to be able to replace the last energy-expensive phase of our current solution by another process that is cheaper or faster.
Even more, ice floats so in a case of live or death if we could freeze with liquid nitrogen or so a big enough volume of cold water while avoiding the effects of the increase in volume, in theory the submarine could emerge automatically. We can't do it in the main submarine (would explode and the non frozen parts would implode immediately), but maybe in an independent storage area attached and able to absorb the extra volume?... dunno
A way to lower the temperature just when the oxygen is about to end would add also some precious extra time. A corpse is dead only when is warm and dead. In any case I'm just digressing wildly about an extreme and hypothetical emergency case. I could be totally wrong or not practical. I prefer not to test it.
> Things either float or sink without extra energy added.
That seems intuitively wrong... where is the energy coming from in this scenario? It's like saying we could use the pressure at the bottom of the ocean to spin a turbine and get free electricity.
I guess the obvious problem that sticks out in my mind is that once you've filled this submersible with desalinated water, how do you surface? A typical submarine does that by pumping water out of the ballast tank, but doesn't that require the exact same pressure that you just used to fill the cabin with desalinated water?