Looks like just an apt upgrade will cause suspend to stop functioning. It is updating a lot of packages including the kernel, so my guess would start there.
Is apt upgrade not recommended? I see it is pulling from “unstable” upstream Debian repo, so maybe not? But it is pulling from “Release” reform repo…
I’ve been poking at this, learning a lot along the way.
It seems resume is getting stuck on the hantro-vpu driver.
If you disable it before suspending, you can re-enable it after resuming (via rmmod and modprob). I can’t confirm it’s in a good state after this (in theory it provides video accel decoding for vp8, vp9, hevc, and h264), but it’s a temporary workaround.
I did a bit of testing and just unloading hantro_vpu with our default TFA and kernel does not make wakeup work for me. Can you tell us which TFA and kernel patches you pulled in?
Edit: not entirely true, I just set the UART wakeup sources manually before suspending and now I was able to wakeup. I think I’m missing the sleep/wake hooks from sysimage V3.
Edit 2: turns out I had reform-sleep.service disabled (and reform-hw-setup.service). After reenabling these and rmmod hantro_vpu, systemctl suspend and waking with Circle+Space works on kernel 5.18!
Edit 3: I tested it 10 times from within sway and had no wakeup failure so far.
as a note, this seems to only be working if your OS is on the SD card. seems like there is a separate issue where the pcie bus is not coming back up properly.
Is there any chance that the likelihood of a hang has to do with the window manager in use? I’ve been playing around with GNOME and it automatically enters suspend after a period of time. Anecdotally it seems to wake far more reliably than when I use the suspend script in sway.
That would be my situation as well. Good to hear that it is successful. I would be interested if it always works. Right now suspend is about 90%. out of, say, 10 wakes, it will fail 1 time.
I haven’t been able to test suspend at all due to a possible hardware or firmware issue that makes the circle+space command not work.
I’ve flashed the latest firmware on both the keyboard and LPC, but all I get when hitting circle+space is the following:
Short (1-4s) message showing “Waking up LPC… 0%”
Brief flash of the message “No response from LPC”
Oled goes blank
At no point does the wake up sequence go abovee 0%, and the message doesn’t seem to make sense anyway, since the LPC is already on. I can view battery state just fine.
Anyone else running into this? Any diagnostic steps I could take?
I think I’m definitely seeing the 5.18 issue now after upgrading the other day. Suspend not working at all. How can I be sure I’m getting the latest reform-tools? I already uninstalled and reinstalled.