Scientists have discovered how damage to the myelin sheath – the insulating layer around nerve fibres – affects brain activity during sleep.