You should have no dramas flashing Lineage22 over the top of Lineage23, so long as you wipe the data partition. I would be all but certain Sailfish won’t work if you try to go ahead with Lineage23.
Just make sure you end up in slot a with Lineage22 before flashing SFOS per the instructions. And I would very much encourage booting into Lineage22 once to confirm its working.
It seems like the general consensus is that there is not much work in making the official AAS “just work” on the community port - I wonder why in my admittedly brief testing that was not the case, I was certainly under the impression that the LOS22 base made things a bit harder.
Anyway, great to hear that Jolla is still on board. Not sure what the next steps are, I suppose I shall wait with baited breath like everyone else!
Marvelous news. I wonder how long until they’ll start offering it, though. X10V being my daily-driver, I’m quite reluctant to switch from the official port until AAS is available on the community port as well
As I have not yet got around to generating a new flashable image since the initial release, be sure to zypper ref && zypper dup and reboot to install the latest updates (ie. usb-moded, battery charge control, etc.).
Interesting stuff, thanks for the detailed report.
You note that there is no state change reported by mce. Is the contents of /sys/class/battchg_ext/smart_charging_interruption being changed as expected?
I wonder if there’s any other file that could be used instead for charge control, eg.
Feel free to fiddle with /etc/mce/70-battery-xqdc72.ini and see if you can get it working more reliably with some different file if you can find one. For some reason I have an inkling that the fp5/Nagara file might be present but not sure why.
Unfortunately as you and I have discussed before this is one of the few areas where Murray and Zambezi are substantially different, so I’m flying blind a bit here given I don’t own a Zambezi device to test on.
Thanks so much for the good tips. I’ll study logs more tonight hopefully. They are good ideas to check out, so thanks for taking the time to share them. Seems very strange that it all works well, then always something must overide, and charging continues. Weird it seems to consistently take 30 minutes.
I feel the nagara file cannot be present, as batterybuddy (with nagara changes included) reported missing control and didn’t work.
A little info from me regarding the charging mode threshold limitation:
The journal shows that the kernel or driver is running a watchdog that changes the status in the file /sys/class/battchg_ext/smart_charging_interruption from 1 to 0 after almost exactly half an hour.
@bardoftruth Thanks for checking this out too. Good to get some info. I just finished running another test, and found the same as you regarding the watchdog after 31 minutes. Not sure what to do about that - I wonder if the watchdog can be suspended, or overridden somehow, but I don’t know about these things.
Perhaps the ticket is to try elsewhere as you suggested. You are right about restrict_chg, but if you also change restrict_cur I think charging stops.
If I do both: echo 1 > /sys/class/qcom-battery/restrict_chg and echo 0 > /sys/class/qcom-battery/restrict_cur the charging is stopped completely.
Perhaps I should try sticking that in the/etc/mce/70-battery-xqdc72.ini, though not sure how to put two things in there.
To avoid unnecessary further digging by others, I just thought I should make a quick note:
So it’s possible sharks and mal have located a better (the correct?) file to be using. Possibly /sys/class/power_supply/battery/input_current_limit is the way to go. I’ll see how it goes tonight and report back.
Edit: Unfortunately the same behavior as earlier, after ~30 minutes charging resumed.
I think at this stage the options are to either edit the kernel source to get rid of / extend that timer indefinitely, or else write a hack so that mce can edit both /sys/class/qcom-battery/restrict_chg and /sys/class/qcom-battery/restrict_cur at once. I’m leaning toward the second option as I’m not sure I’m brave enough to modify the kernel sources if I don’t have to. Messing about in userspace is safer!