Powering off & won't power back on w/o battery disconnect
#1
Question 
Hello Pine64 forums.
So this is a strange one to me, but only for the frequency of occurrence - which I'll need to explain.

When using my Pinebook Pro, Manjaro 20.04 Cinnamon DE, it will seemingly power off & simply stay off when it goes to sleep/hibernate. This even occurs, eventually, when no sleep mode is enabled. That is to say: it will power off & won't power back on until I pull off the bottom cover, disconnect the battery connect from the mainboard, press the power button for 5 seconds or so, and reconnect the battery (or power cord - so long as it's getting power).

In my prior years as a desktop support tech I ran across many laptops where the mainboard's little capacitors would not regulate power to the system. Pulling the battery connector out, pressing the power button for 5 seconds or so to discharge the capacitors (I presume), and powering it back on (via battery or AC adapter) gets it working again. But I have to do this so frequently of late I'm starting to wonder if it's an OS issue. It doesn't seem to matter which governor I set via the cpupower utility (I will state I typically run it on the "performance" governor on AC power).

Has anyone got any ideas as to what's going or what else I can try to troubleshoot it?
Thanks a ton!
  Reply
#2
The next time this happens, try instead to do a hard reset,,
press and HOLD pwr button 20+ seconds, then a normal start press
Actually, first try a hard power-off, hold pwr button ~8 seconds
This is probably a failure to wake from sleep, not sure where settings are in cinnamon,
and not sure just what notices wake signal. I wish I knew
If this works (and I would bet it will),, change uboots,, maybe uboot-pinebookpro-bsp
Do realize that the install actually doesn't, you still have to do the dd
Also, sometimes the install changes extlinux.conf,, the root=value,,,wrongly
So 1st of all , make a backup of it (before installing bsp uboot)
  Reply
#3
(11-06-2020, 09:57 PM)wdt Wrote: The next time this happens, try instead to do a hard reset,,
press and HOLD pwr button 20+ seconds, then a normal start press
Actually, first try a hard power-off, hold pwr button ~8 seconds
This is probably a failure to wake from sleep, not sure where settings are in cinnamon,
and not sure just what notices wake signal. I wish I knew
If this works (and I would bet it will),, change uboots,, maybe uboot-pinebookpro-bsp
Do realize that  the install actually doesn't, you still have to do the dd
Also, sometimes the install changes extlinux.conf,, the root=value,,,wrongly
So 1st of all , make a backup of it (before installing bsp uboot)
Unfortunately that doesn't seem to have worked. As far as the "hard reset" goes, that is.
I didn't actually dd the image, I used Etcher because every time I try dd I somehow managed to mess it up & it doesn't boot.

I do have the original factory Debian-based image (from before they moved to Manjaro) on a microSD card. When using that the system will boot to the "Open Sesame" screen & simply reboots. Not sure how to troubleshoot from here.
  Reply
#4
OK, that makes it almost certain that the uboot on emmc is somehow wrong
When booting, bootrom search order is SPI, emmc, SD
First uboot found will be one used, all others ignored
So, booting from SD, the emmc uboot will be found 1st, it (emmc uboot) will search
in uboots search order,, (SD, nvme, usb, emmc) looking for boot.scr or extlinux.conf
Again, 1st one found is the one used
You can easily test this, disable emmc with switch or remove, mrfix will almost certainly boot
If so, then and if the mrfix is updated, put that uboot on emmc
In short, do switch dance OR bind command, save emmc mbr (1st sector, 512 B),
dd 1st 16MB of SD -> emmc, restore emmc mbr
And, BTW, the long press doesn't work if "bad" uboot is still there, in this case on emmc

--edit-- this is actually fairly easy doing this way
>every time I try dd I somehow managed to mess it up & it doesn't boot.
lsblk,, there should be mmcblk1 and mmcblk2,, boot0 and boot1 are on emmc, you ONLY use /dev/mmcblkN,,, N=1 OR 2
as root, sudo
dd if=/dev/EMMC of=~/mbr.emmc count=1 (ls -l ~/mbr.emmc shows 512 byte file)
dd if=/dev/SD of=/dev/EMMC bs=1M count=16
dd if=~/mbr.emmc of=/dev/EMMC
EMMC and SD replaced by appropriate mmcblkN
  Reply
#5
@wdt I have to offer major thanks to you, this got my eMMC-based Manjaro working again. Unfortunately Suspend or Hibernate just seem to power the system off, but I decided to settle for changing everything to "Lock Screen" for the power button & lid close. After a few moments the LCD powers off in this mode, which seems to use the most power so it's not an unacceptable compromise.

Since it's been so long since I updated Manjaro & it's failing, that'll be my next project to tackle... but that's for a different thread.
Thank you again so very much!
  Reply
#6
>Unfortunately Suspend or Hibernate just seem to power the system off,,,, this is settings
Hibernate does not work,, you may be lucky and have lid magnet in "right " place
Lots are wrong, turns off when 1" from closed, and then, when closed, turns on
check dmesg for sleep,,, dmesg |grep suspend OR dmesg |grep s2idle,,the 1st FAR better(~7%/d)
/etc/systemd/sleep.conf,, ,, SuspendState=mem
sometimes nothing will wake it up (other distros), for me, kde, systemsettings5, pwr button ->ask
And pwr button wakes it, nearly everything else is off
BTW, kernel 5.9 locks (won't wake), I had to downgrade (5.8.14)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Alternative Power supply options gallomimia 10 4,382 02-13-2021, 04:36 AM
Last Post: angryminer
Question UK Power Supply Feakster 11 4,645 02-09-2021, 12:30 PM
Last Post: dieselnutjob
  Blinking red light for charger, no power-on bifo 9 1,486 01-07-2021, 07:31 AM
Last Post: dsimic
  Pinebook Pro Dock Power Requirements calinb 9 2,619 12-16-2020, 09:24 AM
Last Post: dsimic
  Auto-wake behavior when external power is connected diodelass 7 2,759 12-05-2020, 01:19 AM
Last Post: dsimic
  Increasing the maximum power draw dsimic 7 3,541 12-04-2020, 11:10 AM
Last Post: dsimic
Question Why two power ports on a budget laptop?? gurk 58 20,076 11-26-2020, 02:40 PM
Last Post: dsimic
  Horrible screen flicker/strobe on battery power mattjb 19 8,172 09-14-2020, 03:19 AM
Last Post: m.bakhterev
  PBP Battery issues. Drainage on load with external accessories WhiteDragon 11 5,701 09-02-2020, 05:42 AM
Last Post: Nora No
  Privacy switches - cutting power to wifi card as400 1 1,065 08-10-2020, 09:48 AM
Last Post: belfastraven

Forum Jump:


Users browsing this thread: 1 Guest(s)