fix(nb): stop suspend crashes and the login-time lid suspend #394
No reviewers
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos!394
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/nb-suspend-crashes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
nb "shuts down" when left alone, or goes from suspend straight to off. Logging in with the lid shut is also slow.
Evidence
Crashes in suspend. Every boot since Aug 9 begins with:
Every preceding boot ends at
PM: suspend entry (s2idle)and never resumes. That's 9/9, triggered by both the swayidle timeout and the lid.pcie_aspm=forceandppfeaturemask=0xffffffffare the usual amplifiers for this reset: forced ASPM plus every GPU power feature, validated or not, during resume.Slow login. On boots -4, -3, -1 and 0,
systemd-logind: Suspending...fires 0.1s after the user session is created. The lid is shut and DP-2 is connected, but at the greeter→sway handover no output is enabled, so logind doesn't treat the machine as docked. The machine then sits in s2idle until a key is pressed (10:57:17 → 10:59:52 this morning).Resume hook.
${pkgs.util-linux}/bin/syncdoesn't exist, sosleep-actionsexits 127 on every resume, before the btrfs remounts run.Changes
pcie_aspm=forceandamdgpu.ppfeaturemask=0xffffffff.lid:onrunslid-close: it disables eDP-1 when an external output is attached and suspends otherwise.coreutilsforsync.Trade-offs / follow-ups
🤖 Generated with Claude Code