The sine-Gordon chain. II. Nonequilibrium statistical mechanics