Irreversible entropy variation and the problem of the trend to equilibrium