You know how Edison used to sleep with a handful of ball bearings in his hand so that when he fell into REM sleep he’d drop the ball bearings and the noise would wake him up so he could write down ideas from his dreams?
I’ve been doing something similar where I’m still using my iPhone when I fall asleep so my hand hits the keyboard. Only except for waking me up most of the time it just renames my apps XXZXZZZZZ ZZZXDXXZXXX.