PureOS byzantium on the phone?

Having just learned how to upgrade PureOS amber to byzantium on a Librem laptop, now I am wondering if the corresponding change can be done on the Librem 5 (Birch). The change from amber to byzantium means getting newer versions of lots of packages, which may be needed for some things (in my case right now, trying to make a development version of the Geary email client work via a flatpak, seems to almost work but fails because of too old versions of libsecret and xdg-desktop-portal, I think).

On a laptop, all that is needed to change from amber to byzantium is to change the three lines in the /etc/apt/sources.list file as described here:

https://tracker.pureos.net/w/recommendations/upgrade_from_amber_to_byzantium./

and then after that change, basically just do “apt update” and “apt upgrade”.

So in principle I would like to just do the same thing on the phone, changing “amber” to “byzantium” in the /etc/apt/sources.list file and thereby getting newer versions of things. However, I think there is a problem here because on the Librem 5 the /etc/apt/sources.list file looks like this:

deb https://repo.pureos.net/pureos amber main
deb https://repo.pureos.net/pureos amber-updates main
deb https://repo.pureos.net/pureos amber-security main
deb https://repo.pureos.net/pureos amber-phone main

So in addition to the amber, amber-updates, and amber-security lines which can be changed to byzantium, byzantium-updates, and byzantium-security, there is also “amber-phone” and as far as I can tell there is not (yet?) any “byzantium-phone” to change that to, at least it does not look that way here: https://repo.pureos.net/pureos/dists/

Is it at all possible to at least partially update to PureOS byzantium on the phone, and if so, how to do that?

Of course I can (and probably will) try to simply replace “amber” by “byzantium” on three lines in /etc/apt/sources.list and leave the “amber-phone” line intact, but I have a hunch that there will then be problems with some “amber-phone” packages not being compatible with the newer byzantium packages.

Is there perhaps some experimental “byzantium-phone” archive that I could try?

Alternatively, is there a way to pick some individual packages from byzantium and let everything else stay at the amber versions?

Other possibilities?

This is related to what @dos explained here https://puri.sm/posts/what-is-mobile-pureos/ but that was a while ago, I’m hoping that byzantium on the phone is at least closer to being possible now compared to how it was back then.

3 Likes

In a way amber-phone is byzantium because it contains a recent kernel (5.7) and the latest versions of the mobile software. The only advantage of using byzantium is getting recent versions of the software which isn’t adapted for mobile.

It would be an interesting experiment to try using byzantium and then using pinning to give the amber-phone packages higher priority, and see what happens.

1 Like

How does that work? I was wondering about that, what happens if the same package exists in different places, which one will apt choose.

The package with the higher pinning number gets installed by default. If you don’t want to mess with the pinning configuration, you can manually select which repo to use with the -t option, like this:
sudo apt install -t amber-phone package

See: https://wiki.debian.org/AptConfiguration

3 Likes

There was a first work in that sense:

But like the post says it still required some hacks.

Also if you just need a few dependencies, you can maybe get away with manually downloading and installing said dependency in your Librem 5.

https://software.pureos.net/suites

5 Likes

Up to your idea I’ve just successfully tested something similar on my PinePhone so I could recommend this input:

Package: *
Pin: release a=amber-phone
Pin-Priority: 700

Package: *
Pin: release o=PureOS
Pin-Priority: 500

for 00-pureos-priority (name purposely changed/adjusted) file that might reside (if you allow this) inside /preferences.d folder.

apt-cache policy output should (after apt update) work fine, but not sure as this was shortly tested and coarse work of mine.

NOTE: As @amosbatto already proposed: You need to understand that such configuration should not be recommended by default for all packages, take care. And please read output from apt list --upgradeable -a before you proceed with apt upgrade. Anyway, as I don’t expect, optimistically :slightly_smiling_face:, that there will be some package(s) to be upgraded, please let us know if so, if anything changed.

1 Like

H I
When will be available PureOS Byzantium to Librem 5 :smiley:??

1 Like

I can not wait more to get Byzatium and I finally could install byzantium on my Librem 5 by following the correct steps to upgrading… so autototation work, flashlight not work yet, but mostly is work and a fully updated the whole systems.

2 Likes

PureOS Byzantium by Purism. Freescale proccesor. Big thanks to all L5 developers.

2 Likes

needs a software patch. Other things are being worked first in Byzantium

4 Likes

Is this a regression? It works in Amber.

I assume so, it worked for me too before upgrading to Byzantium.

The issue is that we have not yet ported to Byzantium the necessary patches for the flashlight to work. We are working on several aspects of byzantium to be able to release it, and simply have not yet got to port that patch.

8 Likes

I guess it should be added in this thread that PureOS byzantium can be flashed onto the Librem 5 – note that this removes anything that was on it before, all data is lost – using the librem5-flash-image script in the librem5-devkit-tools repository (see https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html). To get byzantium, simply use the --dist byzantium option like this:

sudo ./scripts/librem5-flash-image --dist byzantium

Or in my case because I have a Birch device, I use this command where “librem5r2” means Birch or Chestnut:

sudo ./scripts/librem5-flash-image --dist byzantium --board librem5r2

So that’s a convenient way if you want to try out PureOS byzantium, as long as you don’t mind reflashing and thereby losing all your settings and data from your old installation. You can see the different options for the flashing script using this command:

./scripts/librem5-flash-image -h
7 Likes

So other than the flashlight issue, how is it working? There was video about Byzantium on the Librem 5 quite a while back and I was expecting to see it upgrade automatically or instructions for everyone to upgrade to get posted. That hasn’t happened. Did you encounter many other issues?

Thanks.

I admit not using byzantium very much, I mostly tried it to test some specific things now and then, but one other thing that is annoying is that some things do not fit, see:

and

(the second issue was closed as a duplicate of the first, but it has a few more pictures)

I think this is not a big deal from a developer perspective, they know what it takes to fix it and it will be fixed, but right now it’s an annoyance.

Another thing is that there seems to be a longer delay when opening the Settings app on byzantium compared to amber, I’m guessing it might be simply because more different settings are available so it takes longer to prepare things. Still, it is annoying to have to wait for several seconds when opening Settings. I don’t have an exact measurement but I think it’s about 2 or 3 seconds on amber, and that increased to about 4 or 5 seconds on byzantium.

2 Likes

The only major bug I’ve noticed on Byzantium (except for the flashlight) are some rendering issues in Firefox. Sometimes when scrolling down a page the lower part of the page simply does not render at all until I scroll even further down.

EDIT: Another bug I forgot, my battery indicator often gets stuck showing “charging” even if it’s not.

3 Likes

Is that still happening now? I had hoped it was fixed.

There is this issue about it:

Do you have a way to reliably reproduce it?

A consistent way to reproduce it no, but it’s pretty common.
This is what has been recently been printed in dmesg:

[30175.612038] max17042 3-0036: SOC threshold INTR
[32484.193628] max17042 3-0036: SOC threshold INTR
[32884.775670] edt_ft5x06 2-0038: Unable to fetch data, error: -6
[32934.770914] max17042 3-0036: SOC threshold INTR
[33001.728581] edt_ft5x06 2-0038: Unable to fetch data, error: -6
[33045.781323] edt_ft5x06 2-0038: Unable to fetch data, error: -6

I am using the included charger.

Yet.

/Post much be at least 10 characters/

1 Like