Depends what you mean by 'general supplement' but a majority of people are deficient in magnesium (~400 mg/d is the recommendation) and its ubiquitous involvement in hundreds of enzyme systems might reasonably indicate that a positive role in normal sleep patterns could be expected as reported in a number of publications. If there is no benefit then other factors are likely to be to the fore.
- https://pmc.ncbi.nlm.nih.gov/articles/PMC4397399
- https://en.wikipedia.org/wiki/Glycine
- https://en.wikipedia.org/wiki/Magnesium_glycinate
---
Mg also acts on GABAergic/genic systems directly, but its benefits as a general supplement on sleep are disputed.