News for hackers. Stuff that matters.
Re:Why Can’t I Sleep? by wruza on Friday June 11, 2021 @11:05AM (#27474358)
Ironically, I fixed my moderate chronic insomnia succesfully by going to a doctor with a completely unrelated(citation needed) set of symptoms. My CBT therapist wanted me to fall asleep during the appointment to perform another technique, but obviously I could not. He said to not worry and explained a routine which I’m happy to share to those who didn’t try yet:

  - lay, relax, comfort^
  - do not move further
  - do not put your arms into a position where your breath could disturb them
  - focus on what you feel in your body
  - scan slowly from head to neck to arms to belly to legs
  - name every minor feeling, pain, pressure, etc in your mind
  - for(;;) the above three steps, fading your inner voice to just a conception of thought
  - breathe in normal, breath out slowly
  - continue to scan your body
  - count integers on each breath if you slip into thinking
  - do not f…ing move ever
^ you may experiment with room temperatures and covering your body parts for a while; also reduce street sounds to not react to these

At the first time using this technique I spent a couple of hours semi-dreaming and turning in the bed, but in a couple of days, after waking up I could only remember the first two steps. Falling asleep in just 5-10 minutes seemed completely unreal to me, but that’s what I’m doing every day now. As a bonus, I recalled the thing my doctor wanted me to recall right at the first at-home experiment.

The theory behind that is that if your insomnia is related to an unstoppable thinking process (a form of an anxiety psychosis, I guess), then there is a hack: you cannot think when you’re focusing on what you feel in your body. You either scan yourself or think (even subconsciously), like a single core multitasking. By burning 100% cpu on sensations, you basically extinguish the fires in your mind, deoxygenating them.

Hope this helps at least some of you, guys! (And sorry if you already tried)

Re:Why Can’t I Sleep? by kristiandupont on Friday June 11, 2021 @02:03PM (#27476587)
I perform an "optimized" version of this: I ask myself: "where's the tension?". Often, I realize quickly that I am flexing somewhere, and I just need to let go.

https://kristiandupont.medium.com/cant-sleep-ask-yourself-wh...

Re:Why Can’t I Sleep? by hotsauceror on Friday June 11, 2021 @05:18PM (#27478627)
I think people carry a LOT more resting tension then they're ever aware of. Sitting at my keyboard, doing my thing for an hour or two, the building's not on fire just ordinary coding... If I stop and ask "am I tense, what do I feel right now?", in many, many cases I find my shoulders are almost clenched.

Keeping my feet flat on the ground, continually checking my shoulder tension, adjusting my ergo so that I don't continually feel an urge to lean forward, and having a chair with fantastic lumbar support have made a huge difference.

Re:Why Can’t I Sleep? by IntrepidWorm on Friday June 11, 2021 @10:38PM (#27480957)
I do the same, after noticing I carry my stress in my jaw. Occasionally something will break my concentration on a task and I'll notice that I have my teeth clenched so tight, that whole mandibular muscle group is positively aching (think of doggedly chewing gum for the whole day). Probably going to have some negative dental effects later down the line, so I do my best to relax when I realize I'm doing it.
Re:Why Can’t I Sleep? by Rendello on Friday June 11, 2021 @11:48AM (#27474876)
I try this but occasionally I mentally "wake up" as my body is asleep and I start freaking out mentally. It's a form of sleep paralysis I suppose, but without the hallucinations that other people tend to have. The feeling of being mentally alert but not being able to control my own movements or even my breathing is terrifying, and I usually try to move as much as I can and can wake my body up within a few minutes.
Re:Why Can’t I Sleep? by david-gpu on Friday June 11, 2021 @01:52PM (#27476432)
Sleep paralysis is only frightening when you fight it. Instead, you can simply direct your attention inwards and daydream about something pleasant. Think of it as taking a little break from your everyday reality. Nothing bad is going to happen -- everything you experience in that state is a smoke scroll drawn from your imagination.
Re:Why Can’t I Sleep? by SketchySeaBeast on Friday June 11, 2021 @02:54PM (#27477151)
Whenever I have sleep paralysis it's not just the not moving, it's being half awake and KNOWING that there is someone in the house and I need to wake up my wife but I can't even move my hand enough or make a noise to do it. It's very hard to rationalize at those moment.
Re:Why Can’t I Sleep? by david-gpu on Friday June 11, 2021 @05:17PM (#27478624)
Direct your attention inwards. Repeat to yourself that everything is fine. Distract yourself with something silly like trying to visualize popcorn or s'mores. It can be done.
Re:Why Can’t I Sleep? by SketchySeaBeast on Friday June 11, 2021 @05:38PM (#27478826)
Thankfully it doesn't happen THAT often (I'd avoid sleeping entirely otherwise), but next time if I can fight through the panic and realize what's going on I'll give it a shot. I'm so fuzzy when it occurs I struggle with rationality, which make sense given I'm literally half asleep.
Re:Why Can’t I Sleep? by lliamander on Friday June 11, 2021 @02:12PM (#27476698)
> Sleep paralysis is only frightening when you fight it.

But it's also really frustrating when you have an itch or if your in an awkward position where breathing is more difficult.

Re:Why Can’t I Sleep? by david-gpu on Friday June 11, 2021 @05:20PM (#27478652)
When I want to wake up, I direct my attention outward and take a deep breath. That will fully wake you up. Don't panic. If you do, remind yourself that you are safely laying on your bed and try again with an open curious mind.
Re:Why Can’t I Sleep? by userulluipeste on Friday June 11, 2021 @09:37PM (#27480591)
"When I want to wake up, I direct my attention outward and take a deep breath."

From this, I very much doubt you had an experience of waking up in a sleep paralysis of a meaningful degree. I'm talking about when you realize that you're only awake because you can control your thoughts and receive sensorial inputs (feeling, hearing, etc.) but don't have any movement control whatsoever, not over your breath, not even over your eyelids to open and look around. That in itself, as bad as it sounds, may not be a problem if the awakened mind won't feel the need for more oxygen, yet the breathing stays suffocatingly short and slow for way too long. There's just no out, there's only a wait for some change that will give you back a first bit of motor control.

Re:Why Can’t I Sleep? by lliamander on Friday June 11, 2021 @05:35PM (#27478799)
I have tried different tactics with no success, but fortunately I haven't had sleep paralysis in a long time.
Re:Why Can’t I Sleep? by stronglikedan on Friday June 11, 2021 @11:59AM (#27475000)
Ah, yes, Body Scan Mediation. It works wonders. I'm usually asleep somewhere between the waist and knees.

I prefer to listen to a soft-spoken guide (guided meditation) when doing this technique. Plenty of resources online for that.

Re:Why Can’t I Sleep? by corysama on Friday June 11, 2021 @03:21PM (#27477397)
Yep. I saw some article about "British naval vets share how they fall asleep anywhere instantly". TLDR: Body scan + mindfulness meditation. I'm sure being exhausted helps in their case too!

Body scan: Lying still in bed, you are relaxed, right? Not so much, actually. Start mentally checking individual body parts and you'll find a bunch of muscles tensed up for no reason at all. Let each one go loose one by one. Then check again and you'll find they can still go looser. It can take several passes to get to the point where your muscles are actually hanging loose.

Meditation: Yep. We're going to do the "Clear your mind and don't think about anything" routine. Never works, right? That's OK. The point is not to succeed in thinking about nothing. All you need to do is notice you're thinking about stuff and go back to thinking about nothing. Over and over. You don't need to "win". Just fail and restart again and again and again. You can repeatedly fail, can't you? ;) As long as you keep restarting, you're good.

Re:Why Can’t I Sleep? by diydsp on Friday June 11, 2021 @12:06PM (#27475088)
Can also step it up a notch and use progressive relaxation. many youtube videos for that, too.
Re:Why Can’t I Sleep? by cookiengineer on Friday June 11, 2021 @10:33PM (#27480917)
I suffered for a very long time of chronic insomnia, and I tried out lots of meditation techniques and even learned how to lucid dream because of it.

But for me, those techniques never worked and I had to adapt my workflow to be really "done" in the evening so I can get my mind away from code.

Last year my girlfriend discovered a random tiktok, where lots of ADHD folks responded to. Apparently there's ongoing research related to lack of melatonin and therefore the heart and the whole body cannot get really into a resting state.

The ironic thing is that I always thought that drinking a chocolate milk in the evening helped me in the past, and most of my meditation techniques from the martial arts world focussed on pulse control. But, as I got older I got lactose intolerant...and also skipped my evening chocolate milk (obviously).

Now I'm taking 1mg of melatonin in the evening and I've never fallen asleep so easily. I was kinda mind blown when I discovered it, because I've long accepted that nobody can help me and this is just how my "condition" is like.

Note this is not medical advice, but my personal experience. Please check with your doctor whether it's okay to take melatonin safely (and whether your heart is okay, too).

Re:Why Can’t I Sleep? by claylimo on Friday June 11, 2021 @02:19PM (#27476763)
I've done a technique like this and it has been helpful! A problem I've also run into is that my eyes become "locked" as if they're focusing on something so I need to allow my eyes to relax and move. This is especially helpful when there is hypnogogia, allowing the eyes to relax and follow it will help ease the body into sleep more easily.

As an alternative to body scanning, I've found placing attention on 2 separates points in the body, i.e., palm of hand and chest will quiet the thinking mind. This is particular helpful if there is a feeling I want to avoid since the thinking mind is trying to avoid feeling unpleasant feelings (the mind likes to control and regulate things). Yet by placing attention on those 2 points the the mind will alternate between those 2 sensations instead. It may be a bit of a balancing act to do and if that's the case body scan may be easier to do.

Re:Why Can’t I Sleep? by vbsteven on Friday June 11, 2021 @11:35AM (#27474743)
I read about this technique once in the context of the military. Soldiers were trained to use this technique to fall asleep fast under stressful circumstances.
Re:Why Can’t I Sleep? by tarsinge on Friday June 11, 2021 @04:26PM (#27478023)
This is basically meditation and I find it very helpful. A cool trick I like is visualizing my thoughts as clouds that spontaneously emerge and pass, letting them disappear forever without remembering what they were, to give place to the blue sky that is the calm mind behind. That is, while you are counting, if a thought emerges, turn it into a cloud and let it evaporate.

I found guided meditation apps like (headspace in particular) nice to get the setup.

Re:Why Can’t I Sleep? by skygazer on Friday June 11, 2021 @10:16PM (#27480821)
I don’t suffer insomnia, but when I do notice I’m not falling asleep, because I’m ruminating, I shift my attention to the random noise of the visual field of my closed eyes. I “observe” the patterns: sort of a dull swirling, shifting static; and fall asleep within a minute or two. They are somewhat mesmerizing. I’ve asked others if they can also see such patterns with their eyes closed and haven’t found anyone that recalls them.
Re:Why Can’t I Sleep? by IntrepidWorm on Friday June 11, 2021 @10:34PM (#27480926)
I do suffer insomnia, and though I haven't relied on using this particular phenomenon to fall asleep, I have noticed it, usually between sleeping and waking. Typically, I notice it upon being awoken by soft stimulus but not feeling the need to completely wake, and I have noticed them when falling asleep (presumably more common than I observe, as I only remember instances where I have actually failed to fully sleep). They typically fade for me if I pay too close attention, however, and I transition to full wakefullness.

My issue is more of an 'unquiet and overactive mind' as well as this irrational (but very unshakable) sense that there simply aren't enough hours in the day to accomplish my goals, and that sleeping would be admitting failure in some regard.

Re:Why Can’t I Sleep? by fcsns on Saturday June 12, 2021 @02:34PM (#27486512)
This is also a meditation/mindfulness technique I've heard described in some guided practices, so I think anyone could definitely do this. For me it does require various levels of focus/effort when I try it at different times.
Re:Why Can’t I Sleep? by scythmic_waves on Saturday June 12, 2021 @11:50AM (#27485256)
I see this! I didn't think to ask if other have. Watching it doesn't help me fall asleep, though.
Re:Why Can’t I Sleep? by boxed on Friday June 11, 2021 @02:40PM (#27476995)
I've discovered something similar myself. But I think you can remove most of those steps actually. They don't hurt but they aren't necessary. The necessary steps are:

- lay still - no really, lay still - I'm not kidding. Lay still. - don't move at all - obviously don't make noises and don't open your eyes

I discovered this when trying to make my daughter go to sleep. Disciple and the silent-closed eyes-still rule is sufficient.

Re:Why Can’t I Sleep? by yufeng66 on Friday June 11, 2021 @05:14PM (#27478596)
I practice something similar to fall sleep. I play a bit ping pong and the body and wrist need to be very relaxed do to a short push. I just lay down in the bed and do the short push mentally. That way my body is relaxed automatically and I fall sleep in no time.
Re:Why Can’t I Sleep? by allarm on Sunday June 13, 2021 @09:40AM (#27492496)
Another useful technique that I picked up during my meditation practices was concentration on your next thought. Sounds completely weird, but I remember trying that after I’d read about it and it worked - I got a complete silence in my head almost immediately.
Re:Why Can’t I Sleep? by visarga on Friday June 11, 2021 @03:29PM (#27477466)
Alternative to body scan - place your attention at the top of your head (the crown area). It creates a kind of dissociation that leads to sleep.
Re:Why Can’t I Sleep? by azaras on Friday June 11, 2021 @12:15PM (#27475200)
Wellcome ti Yoga Nidra...

https://youtu.be/7H0FKzeuVVs

Re:Why Can’t I Sleep? by earth_walker on Friday June 11, 2021 @01:55PM (#27476470)
Although Yoga Nidra means 'psychic sleep', you are not actually meant to fall asleep while doing it!

This is just a common side effect while people are learning the meditation - I guess it is so common this kind of body scanning is now recommended as a sleep aid.

Re:Why Can’t I Sleep? by fernandotakai on Friday June 11, 2021 @11:36AM (#27474744)
funny enough, i use the techniques that headspace taught me to fall asleep -- which are REALLY similar to the ones you described.

focus on your body, focus on your breath, try not to "pay attention" to anything.

it totally helped me, and i can now fall asleep much easier than before.

Re:Why Can’t I Sleep? by ralusek on Friday June 11, 2021 @11:50AM (#27474909)
> Focus on your []

> Try not to "pay attention" to anything

Re:Why Can’t I Sleep? by stronglikedan on Friday June 11, 2021 @12:00PM (#27475013)
Focus internally. Don't pay attention to external factors. Simple as.
Re:Why Can’t I Sleep? by aardvarkr on Friday June 11, 2021 @11:59AM (#27475005)
This is incredibly helpful, thanks!