Sorry Borek I didn't mean to hurt your feelings
I think between the two of us maybe we came up with the right conditions, and probably confused the original poster (as we didn't really answer the question anyway )
Keep up the good work :)Do you mean for deltaG = deltaH - TdeltaS ?
I think if deltaH and deltaS are both positive then it may also just depend on the magnitude of their value.
the relation between the free Gibbs energy and the emf of a galvanic cell is:
delta G = -nFE
thus the emf of a galvanic cell must be positive, so that thefree Gibbs energy is negative, crucial for a spontaneous reaction.
In accordance when the emf is negative, delta G is negative and delta S is positive:
Delta G = delta H - Tdelta S