Experimental Mobian kernel patch for extended battery life
#1
I'm currently testing a #Mobian kernel patch to improve battery life on the #PinephonePro and it's looking promising (about 3 hours of continuous use instead of 1 hour). If you'd like to try it out, assuming you are running Mobian, download the linked deb file onto your phone, install it, then shutdown your phone and remove battery, wait 10 minutes (to reset the battery meter), then boot into the new kernel. I recommend using this with Megi's uboot bootloader as you can then choose which kernel to boot into (6.16 is my patched one, 6.12 is the current Mobian one).

Note that suspend doesn't work in this kernel, I am looking into this. One additional bonus with this kernel is that if you uninstall the default Camera app, then install Camera from Flathub, it should work fine with both front and back cameras, you can take photos and scan QR codes and the image is not inverted on the back camera.

Let me know if you try it out.

https://cloud.nextcloudhosting.co.za/ind...7G4X6NGY8w
  Reply
#2
What exactly does this do to improve battery life? Where is the source code?
  Reply
#3
(08-07-2025, 09:45 PM)Kevin Kofler Wrote: What exactly does this do to improve battery life? Where is the source code?

It uses a "raw" state-of-charge value for the battery percentage, rather than the "smoothing algorithm" the battery driver uses, which I have discovered is flawed. See the README.md file in the linked folder for the patch and how to apply it, it's literally just a one character patch. Today I've added another patch to fix the suspend issue, so that automatic suspend now works again. I have been testing this and it's made a huge difference in battery life, making the PPP a daily drive-able phone for me! The battery issues were the only thing stopping me from switching from my Android to the PPP.
  Reply
#4
This rules. Thank you so much for doing this. I had been using my Pinephone Pro with the keyboard case to extend the battery life, but this change makes it easy to run it without the case. I really hope this ends up making it into the mainline kernel.
  Reply
#5
Nice .deb install and all, we are in testing mode now, just need to charge to 100% and we can see how well this works.
  Reply
#6
(08-30-2025, 07:48 AM)benpocalypse Wrote: This rules. Thank you so much for doing this. I had been using my Pinephone Pro with the keyboard case to extend the battery life, but this change makes it easy to run it without the case. I really hope this ends up making it into the mainline kernel.

Thanks for the feedback, this helps in terms of motivating upstreaming it  Big Grin
  Reply
#7
I installed the kernel today, rebooted, left it to charge.
I tried running a 720p x264 movie, I can find a bit of warm over the CPU and am down to 75% after maybe 20 min.
I feel like we need some good benchmarks and tests to run, CPU vs GPU(there is even an included 'AI accelerator' (3.0 TOPS Neural Processing Unit) core in the rockchip package).
have you done any research on how the throttling and CPU core cascading sleep scripts run?
I wish we had the whole Nokia Maemo Linux team around to consult like we did back in the Linux N series days.
is there an established way to calibrate the battery?
  Reply
#8
I'm not aware of a way to calibrate, other than to remove the battery for 10 minutes to reset the battery meter. You can compare what you would've seen battery percentage-wise previously by running this command:

Code:
sudo dmesg|grep "rk818-bat: changed"

Look for "dsoc=" value which is what you would have seen as battery percentage before this patch, and "rsoc=" which is what you currently see.
  Reply
#9
Hi, just wondering if you have added the usb audio to display out via usb c to your kernel. I was thinking of putting mobian trixie onto the emmc on the ppp and trying out your new kernel this weekend...
  Reply
#10
(09-03-2025, 03:51 PM)Jite Wrote: Hi, just wondering if you have added the usb audio to display out via usb c to your kernel. I was thinking of putting mobian trixie onto the emmc on the ppp and trying out your new kernel this weekend...

I tried adding the USB-C audio patch, but it didn't work. I could see a new dp-sound device in alsamixer, but nothing showed up in the Sound settings so I couldn't select it to send the audio out to HDMI. So I have not included this patch for now.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian vs Mobian henrythemouse 3 1,347 04-06-2025, 02:15 AM
Last Post: henrythemouse
  Battery Management on PinePhonePro: d50zesl0g@mozmail.com 4 1,763 03-02-2025, 11:52 AM
Last Post: d50zesl0g@mozmail.com
  Battery life thread: discussion, support and tips apink 12 8,457 03-01-2025, 10:39 AM
Last Post: d50zesl0g@mozmail.com
  July 1 upgrade of Mobian Bookworm boot loops. mburns 9 4,372 02-25-2025, 08:27 AM
Last Post: Kevin Kofler
  Reseting the Battery Fuel Gauge franzthiemann 8 2,729 01-24-2025, 08:19 AM
Last Post: teekay
Rainbow Plasma-Mobile on Mobian Trixie, task switcher issue pineconeuser 0 807 01-02-2025, 09:21 AM
Last Post: pineconeuser
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 3 2,705 10-28-2024, 10:46 AM
Last Post: Jite
  bookworm vs trixie discussion for mobian in pinephone pro. zetabeta 16 10,780 04-28-2024, 01:52 AM
Last Post: diederik
  Disable the GDM service in Mobian. mburns 0 1,226 11-25-2023, 10:19 PM
Last Post: mburns
  The Mobian Phosh Experience mburns 1 2,359 11-18-2023, 08:21 AM
Last Post: crocspot

Forum Jump:


Users browsing this thread: 3 Guest(s)