![]() |
Cannot wake the phone after "systemctl suspend" on PPP - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177) +--- Forum: PinePhone Pro Software (https://forum.pine64.org/forumdisplay.php?fid=179) +--- Thread: Cannot wake the phone after "systemctl suspend" on PPP (/showthread.php?tid=15961) |
Cannot wake the phone after "systemctl suspend" on PPP - liberty1234 - 02-03-2022 I am running DanctNIX (Arch Linux ARM) with kernel 5.16.4 on PinePhone Pro. I noticed that the phone cannot suspend. The "systemctl suspend" can put the phone to sleep but I cannot wake the phone. Manjaro ARM did the same with 5.16.2 kernel. Does the suspend ever work on any releases / kernel? Thanks! RE: Cannot wake the phone after "systemctl suspend" on PPP - ojimek - 02-04-2022 I can confirm I have the same behavior on my PPP, with Manjaro/Phosh, linux-5.16.2. I've been annoyed since I got it that the phone won't go to suspend on inactivity, whatever the power settings I set, causing it to drain battery very fast. Now, I'm starting to think it's not a bug, but a feature ![]() I have an original Pinphone (UBport edition), I remember it had similar problems in its early months, and suspend was only later in a working state. I suspect this will require dedicated kernel hacking for the PPP. RE: Cannot wake the phone after "systemctl suspend" on PPP - dukla2000 - 02-04-2022 Works OK for me - see log extract at the bottom. Code: $ uname -a However, this is an area that is under rapid development and I would urge you NOT to do what I do! Absolute essential pre-requisite at the moment is NO/nil/NADA bootloader on the eMMC, i.e. it is not sufficient that you are booting from the SDcard, you also have to have nuked the bootloader on the eMMC! Code: [13442.404852] PM: suspend entry (deep) RE: Cannot wake the phone after "systemctl suspend" on PPP - ojimek - 02-04-2022 Thanks @dukla2000 . It took a bit of fighting, but I managed to make it works for me. * I first installed the same OS I was using (Manjaro/Phosh) on a SD card and wiped the boot partition on the eMMC : the phone would now go on sleep, but still wouldn't wake up * I wiped the whole eMMC for good measure (writing /dev/zero on it with dd) : no change * I tried Mobian : the phone would not suspend by itself again, but would wake up after I manually suspended * after toying around a bit, I realized the battery indicator was still shown as charging even when the phone is unplugged This turned out to be my issue : the phone doesn't detect unplugging on the first try. I have to re-plug/re-unplug several times for it to be detected. After that, with Mobian on the SD card, the phone can wake up (haven't tried Mobian on the eMMC). RE: Cannot wake the phone after "systemctl suspend" on PPP - dukla2000 - 02-04-2022 (02-04-2022, 01:22 PM)ojimek Wrote: ... haven't tried Mobian on the eMMC .. Glad you got as far as "the bleeding edge" ![]() Mobian on eMMC has not been tested (arch has) AFAIK but it is likely to fail as the bootloader will be back on the eMMC (unless you put Towboot or similar on the SDcard, pointing to the eMMC). Which is mighty complicated - much simpler probably to wait a few days as the various developers work a plan! RE: Cannot wake the phone after "systemctl suspend" on PPP - ojimek - 02-04-2022 Oh, ok, I wasn't aware this could be a problem ![]() I don't really care anyway, I mentioned not trying on the eMMC for the sake of being complete, but it's just as good for me if the OS is on the SD card. I haven't had a SD card dying on me for a while, hopefuly it will last. RE: Cannot wake the phone after "systemctl suspend" on PPP - dukla2000 - 02-04-2022 Arch on an SDcard also recovers FWIW. But my waters tell me that within a week or so we should take a leap past this hiccup with Tow-boot. {On the RK3399 the eMMC is JEDEC 5.1, the SDcard is JEDEC 4.51. So getting back to the eMMC in due course will be beneficial.} RE: Cannot wake the phone after "systemctl suspend" on PPP - lllsondowlll - 02-05-2022 (02-04-2022, 03:43 PM)dukla2000 Wrote: Arch on an SDcard also recovers FWIW. But my waters tell me that within a week or so we should take a leap past this hiccup with Tow-boot. Arch image wakes from suspend with SDCard boot & eMMC wiped? Edit: Just tested and yes it works but man is Arch underwhelming compared to Manjaro. It even has lower packages and kernel version than Manjaro Unstable. After some testing, upgrading to unstable branch on Mobian or Arch to get the latest packages also includes latest kernel. The latest kernel regresses the sleep function and breaks it again. I wish we could get Manjaro working with deep sleep. Sleep and Audio quality is the only thing keeping me from daily driving it. Edit2: Tow-boot flashed to SPI fixes suspend issue for the Pinephone Pro RE: Cannot wake the phone after "systemctl suspend" on PPP - liberty1234 - 02-08-2022 Thanks everyone. After wiping the eMMC, the suspend 100% works kernel 5.16.4 and 5.16.7 on Arch Linux Arm. |