Resume from suspend not working after flashing Tow-Boot to SPI
#1
I recently flashed Tow-Boot to the SPI and now my Pinebook Pro won't resume from suspend.  According to journalctl, it enters suspend just fine but it never resumes and I need to reboot.  Has anyone else encountered this?  If I have to, how would I go about flashing the SPI to what was there before?
  Reply
#2
> If I have to, how would I go about flashing the SPI to what was there before?
AFAIK,, from the factory, pbp SPI is blank
install mtd-utils OR there are, IIRR, 2 other programs to write nor flash
----
Just what kind of suspend? there is ordinary S2,, S2ram (STR, S3) and hibernate
I have not heard anyone make hibernate work
ordinary S2 is barely better than screen blanking
S3ram is quite good, but there are 5 !!! caveats
no nvme,,, 5.7 or 5.8 manjaro kernel,,, a working uboot (with s2ram capability),
setting in sleep.conf,, settings in systemsettings5, power
I have had the failure to wake lots, trying to see if a distro supported s3ram, I have no answer
Only 2 or 3 distros will do s3ram, FWIW.... If you know more, please post
---
BTW, to wake from STR, a quick tap on pwr button, everything else (but lid magnet sensor) is dead
If lid magnet is misplaced, as so many are, you have to either turn if off or move it (the magnet)
  Reply
#3
Thanks wdt!  I'm running the latest Manjaro that comes on the PBP eMMC, kernel 6.0.2-MANJARO-ARM.  Previously suspend/resume had worked for this kernel and lid magnet.

/etc/systemd/sleep.conf is all defaults

Quote:[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=120min


Before I flashed Tow-Boot to the SPI flash, suspending looked like (output of 'journalctl | grep -C 4 suspend').

Quote:Oct 29 08:58:10 neptune systemd-sleep[2735]: Entering sleep state 'suspend'...
Oct 29 08:58:10 neptune kernel: PM: suspend entry (deep)
Oct 29 08:58:14 neptune kernel: Filesystems sync: 0.109 seconds
Oct 29 08:58:14 neptune kernel: Freezing user space processes ... (elapsed 0.005 seconds) done.
Oct 29 08:58:14 neptune kernel: OOM killer disabled.
Oct 29 08:58:14 neptune kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Oct 29 08:58:14 neptune kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Oct 29 08:58:14 neptune kernel: LDO_REG2: No configuration
Oct 29 08:58:14 neptune kernel: LDO_REG1: No configuration
Oct 29 08:58:14 neptune kernel: ieee80211 phy2: brcmf_fil_cmd_data: bus is down. we have nothing to do.
Oct 29 08:58:14 neptune kernel: ieee80211 phy2: brcmf_cfg80211_get_tx_power: error (-5)
Oct 29 08:58:14 neptune kernel: PM: suspend devices took 2.160 seconds
Oct 29 08:58:14 neptune kernel: Disabling non-boot CPUs ...
Oct 29 08:58:14 neptune kernel: psci: CPU1 killed (polled 0 ms)
Oct 29 08:58:14 neptune kernel: psci: CPU2 killed (polled 0 ms)
Oct 29 08:58:14 neptune kernel: psci: CPU3 killed (polled 0 ms)
--
Oct 29 08:58:14 neptune kernel: OOM killer enabled.
Oct 29 08:58:14 neptune kernel: Restarting tasks ... done.
Oct 29 08:58:14 neptune kernel: random: crng reseeded on system resumption
Oct 29 08:58:14 neptune kernel: mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
Oct 29 08:58:14 neptune kernel: PM: suspend exit
Oct 29 08:58:14 neptune systemd-resolved[375]: Clock change detected. Flushing caches.
Oct 29 08:58:14 neptune wpa_supplicant[496]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Oct 29 08:58:14 neptune systemd-logind[430]: Lid opened.
Oct 29 08:58:14 neptune wpa_supplicant[496]: p2p-dev-wlan0: CTRL-EVENT-DSCP-POLICY clear_all



Now journalctl shows the following when trying to suspend:
Quote:Oct 30 15:12:20 neptune systemd[1]: Starting System Suspend...
Oct 30 15:12:20 neptune systemd-sleep[1017]: Entering sleep state 'suspend'...
Oct 30 15:12:20 neptune kernel: PM: suspend entry (deep)
Oct 30 15:12:20 neptune wpa_supplicant[503]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Oct 30 15:12:20 neptune wpa_supplicant[503]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0

Erasing Tow-Boot off of the SPI flash and rebooting worked.  Now resume from suspend works as expected.  I installed the mtd-tools package and ran
Code:
flash_erase /dev/mtd0 0 0
  Reply
#4
My experience with tow-boot is mixed
The 1st version worked OK, S3ram sleep was about 1/2 as long (as BSP uboot)
version 2 did not wake from sleep
IDK what version it is now
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  5GHz wifi not working snorwood 11 1,895 01-16-2023, 03:41 PM
Last Post: ehcorn
  Pinebook Pro wifi not working Queliffrel 1 417 11-30-2022, 06:30 AM
Last Post: myself600
  Tow Boot install help Paulie420 7 1,223 11-24-2022, 10:24 AM
Last Post: myself600
  Bootloader: SD card boot quirks crazyquark 1 399 10-04-2022, 12:27 PM
Last Post: elitegamercody
  Webcam not working in Manjaro with Cheese, but works in Armbian petaramesh 1 376 09-30-2022, 10:09 AM
Last Post: crazyquark
  Help with Kali Linux wifi not working but works with Manjaro PineSupporter 2 1,190 08-25-2022, 02:15 PM
Last Post: Niko
  Fresh Manjaro does not boot from eMMC pentamassiv 7 2,581 08-18-2022, 11:47 AM
Last Post: Bemo
  Camera not working with Cheese cypresstwist 0 389 08-16-2022, 09:28 PM
Last Post: cypresstwist
Big Grin PinephonePro can't Flashing to the eMMC ricardo 1 532 07-31-2022, 04:04 PM
Last Post: wpeckham
  PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD Pino64 21 5,144 05-12-2022, 05:00 AM
Last Post: Pino64

Forum Jump:


Users browsing this thread: 1 Guest(s)