Armbian for the Pinebook Pro [WIP]
#51
Yes I've installed Armbian Focal to the eMMC and not had any issues booting anything else from SD after that. This worked both with the latest Armbian Focal XFCE image and also building a Focal image with LUKS enabled.

The one showstopping issue I have with the Focal build right now is that booting gets stuck when on battery or USB-C power. Messages over serial console aren't illuminating: just hangs at starting kernel.

Interested to know if anyone else can reproduce that. It doesn't effect the Buster images.
  Reply
#52
(03-15-2021, 12:59 PM)mattpenn Wrote: Yes I've installed Armbian Focal to the eMMC and not had any issues booting anything else from SD after that. This worked both with the latest Armbian Focal XFCE image and also building a Focal image with LUKS enabled.

The one showstopping issue I have with the Focal build right now is that booting gets stuck when on battery or USB-C power. Messages over serial console aren't illuminating: just hangs at starting kernel.

Interested to know if anyone else can reproduce that. It doesn't effect the Buster images.
Thanks for the reply.  I was attempting to boot Android 7 which I have discovered is a faulty image without a boot loader.  I tried boot from the PBP Debian 9 image to SD, it worked, so I can use this if I need to re-image later.  It appears I do not need to mess with Armbian emmc uboot.
  Reply
#53
I have just booted to Fedora in the SD card. All working fine, but I think I'll stay on Armbian now.
  Reply
#54
Not sure if people are seeking DRM on Armbian, I was able to add DRM for Netflix/Prime/etc to Armbian Ubuntu Focal using the Docker Chromium Media edition script provided by the Twister Armbian distribution.  The script assumes your user is 'pi' so it may need to be edited to reflect your user account. 

Post install:  edit ~/docker-chromium/Chromium-xxxxxxxxx.desktop file.  The icon path will require your user profile rather than 'pi'. 

If you know of a simple DRM solution for Armbian Ubuntu Focal, please post a reply.
  Reply
#55
(03-15-2021, 12:59 PM)mattpenn Wrote: Yes I've installed Armbian Focal to the eMMC and not had any issues booting anything else from SD after that. This worked both with the latest Armbian Focal XFCE image and also building a Focal image with LUKS enabled.

The one showstopping issue I have with the Focal build right now is that booting gets stuck when on battery or USB-C power. Messages over serial console aren't illuminating: just hangs at starting kernel.

Interested to know if anyone else can reproduce that. It doesn't effect the Buster images.

You can increase the kernel message logging.. by putting `verbosity=7` in `/boot/armbianEnv.txt`
Rock64, H64, PBP Running Armbian
  Reply
#56
The (main) challenge I have had with Armbian on the PBP is the power consumption during sleep / suspend. It isn't that different than when running with the screen on! I think previously on Manjaro (after getting it to work) it would go to the "red" LED when in suspend, and would require the power key to "wake up" but the consumption (during suspend) was "good" (it could "sleep" for a day without going "flat").

But with Armbian all LED go out, it does disconnect wifi (so isn't just "screen off") but will wake when hitting a key. Letting it sit overnight will likely fully drain the battery.

Is there a way to change the suspend / sleep behavior via armbian config or some other config file?
  Reply
#57
(04-18-2021, 03:39 AM)rik-shaw Wrote: The (main) challenge I have had with Armbian on the PBP is the power consumption during sleep / suspend. It isn't that different than when running with the screen on! I think previously on Manjaro (after getting it to work) it would go to the "red" LED when in suspend, and would require the power key to "wake up" but the consumption (during suspend) was "good" (it could "sleep" for a day without going "flat").

But with Armbian all LED go out, it does disconnect wifi (so isn't just "screen off") but will wake when hitting a key. Letting it sit overnight will likely fully drain the battery.

Is there a way to change the suspend / sleep behavior via armbian config or some other config file?

Sleep is delegated to systemd.  See /etc/systemd/sleep.conf

If you find a better configuration please share.

https://www.freedesktop.org/software/sys....conf.html

At the time of implementation hardware sleep of any kind was unreliable so this mode we're using is just kernel-based sleep.
Rock64, H64, PBP Running Armbian
  Reply
#58
(04-18-2021, 05:47 AM)lanefu Wrote: Sleep is delegated to systemd.  See /etc/systemd/sleep.conf

If you find a better configuration please share.

https://www.freedesktop.org/software/sys....conf.html

At the time of implementation hardware sleep of any kind was unreliable so this mode we're using is just kernel-based sleep.

Thanks for the quick reply! Note that in `/etc/systemd/sleep.conf` I had this at the end:

Code:
SuspandState=freeze


I corrected the typo (Susp*a*nd), and will test a bit more. The man page doesn't give me a lot of detail on the power saving differences between the different options, but it seems that `mem` means it will look at /sys/power/mem_sleep so I'll have to dig around and do some more testing of the various options.

Note that I FULLY support reliability :-) so can understand it may not be reasonably possible to find a better powersaving in sleep, since there are complaints about it disabling sound, possibly wifi, not waking at all, etc. Armbian really is great for the PBP, btw. I am currently on 5.10.21, and use Cinnamon (4.8 via PPA that we maintain) which is really quite performant (older Cinnamon up through 4.6 was sluggish).
  Reply
#59
FWIW,, I won't use a distro that doesn't have 'good' sleep,,
because then a boot from SD is a viable option
Yes, the boot is slow,, but 3 s to 'sleep' it,, 10-11s to wake, another 10 for wifi
s3, ram to mem, s2ram is about 7% / day
So you can pick it up 2-3 days later and not have to hunt for charger
Damn few distros can manage this, requires 3 things
a specific patched kernel, bsp uboot, right systemd settings
Only 3 that I am aware of, manjaro (kern 5.8). elementary, fedora32
The audio can have a unbind, bind cycle to restore it
oops, forgot,,also NO nvme, pci driver cannot sleep
  Reply
#60
(04-18-2021, 12:30 PM)wdt Wrote: Damn few distros can manage this, requires 3 things
a specific patched kernel, bsp uboot, right systemd settings
Only 3 that I am aware of, manjaro (kern 5.8). elementary, fedora32

@wdt thanks for your reply. I have had a hard time consolidating the necessary information to get sleep running well. I have Manjaro on a SD card for testing, but it updated itself to 5.11.x and loses about 50% of battery in 11 hours (just did an overnight test), so I will see how to put back the patched 5.8 kernel to see if that makes it more reasonable like you mention (<10% per day).

Can you make any comment on what kernel elementary uses Since I am using Armbian Focal it would be the easiest for me to match elementary. I don't think they "patch their own kernel" so it would just be a matter of tracking down what they are using.

So, kernel aside, is there a clear guide on the bsp uboot and systemd settings needed? It seems this info would best be consolidated at the PBP wiki page, but no reference to it there I think. Digging through various forum entries makes it confusing to know what the "current" and "authoritative" approach is. Would you be willing to edit there so there is a central place documenting what is needed to get deep sleep to work correctly? https://wiki.pine64.org/index.php/Pinebook_Pro
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian on Pinebook Pro u974615 7 972 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 1,516 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,125 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 2,193 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 88,434 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 1,211 11-23-2023, 07:37 AM
Last Post: KC9UDX
  USB 3 port not working with Armbian zaius 3 842 11-13-2023, 01:54 PM
Last Post: zaius
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 5,234 08-31-2023, 04:20 PM
Last Post: TRS-80
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 1,471 08-08-2023, 04:58 AM
Last Post: moobythegoldensock
  Install deepin OS on pinebook pro wangyukunshan 4 1,562 08-07-2023, 01:12 PM
Last Post: myself600

Forum Jump:


Users browsing this thread: 3 Guest(s)