Temperature sensitivity of long-wavelength lasers