Involved in monoterpene (C10) biosynthesis. The major product is S-(+)-linalool. Linalool production is induced by jasmonate in response to pathogen attack, it possesses antibacterial activity and is important for resistance to the bacterial blight pathogen Xanthomonas oryzae pv. oryzae (Xoo). Plants over-expressing linalool synthase display enhanced resistance to Xoo. (2E)-geranyl diphosphate + H2O = (S)-linalool + diphosphate Binds 3 Mg(2+) ions per subunit. Secondary metabolite biosynthesis; terpenoid biosynthesis. By jasmonate. The Asp-Asp-Xaa-Xaa-Asp/Glu (DDXXD/E) motif is important for the catalytic activity, presumably through binding to Mg(2+). Belongs to the terpene synthase family. Tpsb subfamily.