I had this weird issue that every 3-5 sleep cycles, my Framework 13 laptop would just get stuck with black screen and blinking power button (like it hibernated) but if I put it into backpack it will overheat there. No key press will wake it up, so I have to hold power button for 10s to enforce hard reboot and logs from previous reboot are not really showing that it entered the sleep correctly.

I got a hunch that this is related to brand new drive I got for it.

So Instead I purchased WD BLACK SN7100, connected it through Icy Box M2 SSD NVME case, and ran

sudo dd if=/dev/nvme0n1 of=/dev/sda bs=4M status=progress

and with the speed of 1.0 GB/s it started copying my drive.

And dear crew, the disk wasn’t the issue (what crew, no-one is reading this)

But first things first: I’ve noticed that directly after installing new drive sleep was working again. This was very confusing, so I tested my laptop again with amd-s2idle and it failed on 4th attempt.

There was one more thing left to try: since it was not entering the sleep correctly, that could have been RAM as well, as during sleep it needs to keep the state in the RAM and minimize the power used by IO devices, including RAM:

This state is a generic, pure software, light-weight, system sleep state. It allows more energy to be saved relative to runtime idle by freezing user space and putting all I/O devices into low-power states (possibly lower-power than available at run time), such that the processors can spend more time in their idle states. https://www.kernel.org/doc/Documentation/power/states.txt

Also, one gotcha: for RAM, memory density determines power usage.

Once I ordered and installed RAM from Framework - it started working again without any issue.

Allegedly, Framework uses RAM from Polish company called GOODRAM (Wilk Elektronik). So, to save some money on new laptop purchase, I ordered my memory bank directly from Rtv EURO AGD. However, Framework uses own serial numbers, so I wasn’t able to get exactly the same memory bank. Instead, I ordered one that had 48GB and 5600 mhz on 46CL GOODRAM SODIMM 1X48 D5 5600 CL46

buy cheap, buy twice