The quest for better sleep has come to this—with pros and cons.