2022-09-12 19:16
no dock, not charging. suspend → suspends itself for a bit, then immediately wakes up.
2022-10-24 21:44
I managed to fix it yesterday by turning off LID as a suspend mechanism
2022-11-01 23:06
trying:
$ sudo -i
# echo LID > /proc/acpi/wakeup
wasn't enouhg
# echo XHC > /proc/acpi/wakeup
and yeah looks like XHC
was the one.
and yep, it's XHC
https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
2022-11-06 20:08
it does work when I disable wakeups via the XHC, but it means I can't wake up the laptop when it's docked now
2023-01-06 09:20
laptop is currently not staying suspended when on battery, and out of dock.
$ cat /proc/acpi/wakeup | grep enabled
PEG0 S4 *enabled pci:0000:00:01.0
XHC S3 *enabled pci:0000:00:14.0
RP01 S4 *enabled pci:0000:00:1c.0
RP08 S4 *enabled pci:0000:00:1c.7
RP09 S4 *enabled pci:0000:00:1d.0
AWAC S4 *enabled platform:ACPI000E:00
SLPB S3 *enabled platform:PNP0C0E:00
LID S4 *enabled platform:PNP0C0D:00
why was the tmpfiles.d thing not taking effect?
because i didn't in fact add it?! duh. let's just get XHC in there.
I guess I could disable USB devices one by one and see which one is doing that?
adding to /etc/tmpfiles.d/suspend-fix-xhc.conf
:
# see https://trilium.agentydragon.com/share/laptop-does-not-stay-suspended
w /proc/acpi/wakeup - - - - XHC
2023-01-06 15:35
and looks like that worked. I guess it's OK that it doesn't wake up from dock now.