Tushta

@Tushta@programming.dev

This profile is from a federated server and may be incomplete. View on remote instance

Did deep sleep broke for anyone else recently or is it just me?

I was running KDE Neon on ThinkBook 15 G2 and had deep sleep working after adding mem_sleep_default=deep to GRUB_CMDLINE. It worked for a while until it didn’t. I didn’t do anything other than running regulat updates. Since couple weeks back, when going to sleep, it shows BIOS Recovery progress bar or something and restarts....

Tushta OP ,

So… Bios update broke deep sleep, because fuck you, that’s why?

Tushta OP ,

It’s 2021 Lenovo ThinkBoot 15 G2 Intl with Intel i3-1115G4, 8GB onboard ram, integrated GPU and two NVME slots.

Here are some lines from dmidecode if they mean anything to anyone:


<span style="color:#323232;">Getting SMBIOS data from sysfs.
</span><span style="color:#323232;">SMBIOS 3.3.0 present.
</span><span style="color:#323232;">Handle 0x0000, DMI type 0, 26 bytes
</span><span style="color:#323232;">BIOS Information
</span><span style="color:#323232;">        Vendor: LENOVO
</span><span style="color:#323232;">        Version: F8CN42WW(V2.05)
</span><span style="color:#323232;">        Release Date: 06/28/2021
</span><span style="color:#323232;">        Address: 0xE0000
</span><span style="color:#323232;">        Runtime Size: 128 kB
</span><span style="color:#323232;">        ROM Size: 16 MB
</span><span style="color:#323232;">        Characteristics:
</span><span style="color:#323232;">                PCI is supported
</span><span style="color:#323232;">                BIOS is upgradeable
</span><span style="color:#323232;">                BIOS shadowing is allowed
</span><span style="color:#323232;">                ACPI is supported
</span><span style="color:#323232;">                USB legacy is supported
</span><span style="color:#323232;">                BIOS boot specification is supported
</span><span style="color:#323232;">                Targeted content distribution is supported
</span><span style="color:#323232;">                UEFI is supported
</span><span style="color:#323232;">        BIOS Revision: 2.42
</span><span style="color:#323232;">        Firmware Revision: 2.42
</span><span style="color:#323232;">
</span><span style="color:#323232;">Handle 0x0001, DMI type 1, 27 bytes
</span><span style="color:#323232;">System Information
</span><span style="color:#323232;">        Manufacturer: LENOVO
</span><span style="color:#323232;">        Product Name: 20VE
</span><span style="color:#323232;">        Version: ThinkBook 15 G2 ITL
</span><span style="color:#323232;">        SKU Number: LENOVO_MT_20VE_BU_idea_FM_ThinkBook 15 G2 ITL
</span><span style="color:#323232;">        Family: ThinkBook 15 G2 ITL
</span><span style="color:#323232;">
</span><span style="color:#323232;">Handle 0x0002, DMI type 2, 15 bytes
</span><span style="color:#323232;">Base Board Information
</span><span style="color:#323232;">        Manufacturer: LENOVO
</span><span style="color:#323232;">        Product Name: LNVNB161216
</span><span style="color:#323232;">        Version: SDK0J40700 WIN
</span>
Tushta OP ,

No, hibernation saves state to disk, and turns the computer off, drawing no power. Deep sleep is what was for me just sleep until recently: it uses power to keep data in ram, so it’s faster to wake up than hibernation. The amount of power used is really small, so unless you don’t use your lap top for a couple of days, it won’t deplete the battery. New hardware has this new “S2 Idle” state, that is basically an “On” state minus the screen and it’s OS’s job to try to use as little power as possible usually by telling each and every device to chill as much as possible (this is my understanding, but don’t quote me on this). On Windows, with the first party device drivers, this sorta works OK + OS drops to deep sleep or hibernation depending on battery or something.

Tushta OP ,

Yeah, if the bracket is on deep, it crashes and enter the BIOS recovery thingy. If it’s s2idle, it does what it says on the tin.

Tushta OP ,

running sleepgraph crashes the computer same way deep sleep does 😖

Tushta OP ,

I have a Windows dual boot, and Windows did install some updates, and Lenovo site indicates that the latest BIOS version was released mid November, so that could be it.

Tushta ,

Gasp Don’t remind me how old I’m getting. Joel’s blog was really big deal, upto ~15 years ago when he stopped blogging. He and Jeff Atwood created Stack Overflow.

It turns out I really enjoy programming puzzles, is there something useful I can do with it?

There is a commonly shared view in the programming community that algorithm puzzles are something you do to prep for an interview and than you never use in the actual job. This certainly rings true as in 15 years of programming, i feel I can count on fingers the number of times I needed to stop and think about data structure /...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • All magazines