Can't start laptop from hibernate without AC power

When I hibernate or suspend-then-hibernate and then try to power on/resume after a while I can’t power on without plugging in to AC power.

  • When I do resume, I have the expected amount of battery, so it’s not because of a dead battery.
  • I’ve looked in the journal, but haven’t found any smoking guns. I’ve been running on debug though, so I should have plenty of info to look through if needed.
  • Recently updated BIOS to try to fix problem, but no changes.

Any suggestions are welcome and appreciated, thanks!

Information

Laptop: Framework 13 inch, 11th Generation Intel

Output of nixos-version: 26.05.20251205.f61125a (Yarara)

Relevant parts of configuration.nix:

  powerManagement.enable = true;
  boot.initrd.systemd.enable = true;  # handles hibernation config (resume offset and device) automatically
  ## hibernate and suspend-then-hibernate
  systemd.services."systemd-logind".serviceConfig = {
    ProtectHome = "read-only";
  };
  services.upower = {
    enable = true;
    criticalPowerAction = "Hibernate";
    percentageCritical = 3;
  };

  boot.kernelParams = [
    "mem_sleep_default=deep"  # for deep suspend
  ];

  systemd.sleep.extraConfig = ''
    HibernateDelaySec=1m
    SuspendState=mem
  '';
1 Like

I don’t own a Frameword, but maybe try this :

  boot.kernelParams = [ "mem_sleep_default=deep" ];
  services.power-profiles-daemon.enable = true;

This is what I have on HP EliteBook 840 G2 including your exisiting config. I confirm suspend, hibernate, hybrid-sleep all work w/o issues. Never caught one.

Thanks! I forgot that I had that kernel param set already (I’ve updated my original post now).
As for power-profiles-daemon, I am using autocpu-freq already for the CPU setting on charger and battery. I can try to move to PPD instead and see if anything changes I guess.

1 Like

While troubleshooting this more I realized that the same problem persists when I simply shutdown the laptop (i.e. I still can’t boot without AC power).

So it looks like this is a hardware issue (RTC battery)!

1 Like