03-07-2025, 08:59 PM
(This post was last modified: 03-07-2025, 10:18 PM by Der Geist der Maschine.
Edit Reason: Formatting
)
(03-06-2025, 06:28 PM)flynx Wrote:Quote:Quote:What's a good OS to put on it now?
The important question to ask: a) does suspend to mem work and b) do webbrowers as well as (some) video players decode in GPU.
I'm also looking for a good image. I have Kali loaded now, which works GREAT. Suspend to mem works fine, except its permanent. Wake from mem doesn't exist. For me that's a deal breaker if I want to actually use it.
So I'm asking the important question: Is there an image where suspend to mem and wake from mem both work?
I don't recommend running a non-maintained kernel, but if you are really interested in deep sleep then read on.
(03-07-2025, 10:32 AM)wdt Wrote: >Wake from mem doesn't exist.
Yes, this is the case about 95% of the time (note: all leds off for STR- sleep to ram)
Late 5.7, all 5.8, mrfixit uboot, setting in sleep.conf,
maybe something else, don't remember
in systemsettings lid close - ignore,,, pwr buuton - menu
STR is good for 10+ days, maybe 14
---
most lid magnets are in wrong place, that is why ignore
I am still running Debian from Daniel Thompson's Debian installer https://github.com/daniel-thompson/pineb...-installer and have deep sleep working. This Debian installer exactly installs kernel 5.7 plus Mr. Fixit's uboot. I did not know that this is the only working combination [one needs to make sure not having an alien uboot installed on the spi such as tow-boot otherwise Mr Fixit's uboot on the emmc does not take over].
Nowadays, Daniel Thompson's Debian installer does not work, anymore. I revived it here https://github.com/schaecsn/pinebook-pro...-installer - see the last 4 commits. It installs Debian bookworm.
You will also need to remove /etc/tmpfiles.d/force-s2idle.config. Perhaps, I should remove that file as part of the debian-installer? Anyway, with that file, the Pinebook Pro will not sleep very deep, so remove it. For this to change to become active, you need to reboot once.
o Suspend to mem works but upon returning from suspend to mem, audio fails and needs to be manually revived with:
Code:
$ sudo tee /sys/bus/i2c/drivers/es8316/{un,}bind <<< `basename /sys/bus/i2c/drivers/es8316/1*`
At that time of running above command, make sure no program is playing audio (webbrowser, mp3 player, ...) or the kernel crashes.
o You may want to disable wake up from suspend on plugging the power supply in or out by creating such an udev rule (this seems to be an anti-feature):
Code:
$ cat /etc/udev/rules.d/90-disablewakeup.rules
SUBSYSTEM=="power_supply", ACTION=="add", RUN+="/bin/sh -c 'echo disabled > /sys/devices/platform/dc-charger/power/wakeup'"
o Closing the lid does not go into suspend for me. I can suspend with "systemctl suspend", only. Perhaps it's a magnet problem? YMMV.
o The 5.7's panfrost kernel driver module is crashing the kernel after 30 min of extensive use of the GPU, say playing videos. Perhaps disable it. I use X's fbturbo driver which does not make use of panfrost. Make sure you do not see Panfrost but LLVM (maybe YMMV):
Code:
$ es2_info | grep RENDERER
GL_RENDERER: Mali-T860 (Panfrost)
vs
GL_RENDERER: llvmpipe (LLVM 15.0.6, 128 bits)
Without a console cable, you will have a hard time switching to a newer kernel and you will be stuck with this 5.7 kernel, see https://forum.pine64.org/showthread.php?tid=15284. But hey, that's what you want, anyway.