Megi's Kernel and Battery Life
#1
I am an everyday driver pinephone 3-32gb w/mobian user.
The reboots and modem cutouts during the day are survivable, but the battery life is difficult at best.
If I rent a car and the poser or USB port is dead it means only satellite navigation at the end of a trip.  No video or surfing on the train unless there is a USB port or mains jack.  Even listening to an audio book can easily knock me to below 50% after two-three hours and will continue to until the hardware audio acceleration and buffer is improved.  Even 10 minutes checking webmail can easily burn 15%.
Most often the answer is Megi's kernel, but as this is an everyday driver phone I want something at least as stable as I already have.
If Megi's kernel is better why is it not adopted by Mobian or other distros?
What is the downside aside form being outside the normal software upgrades?
Back in the Nokia/Maemo days the testing repos for Maemo5 had the power kernel with all of the extra community tweaks to turbocharge the distro and it included missing hardware optimizations, all just an apt-get install away from a reliable alternate to the Nokia kernel.

To those already running Megi's kernel and other tweaks what is your difference in battery life as well as system performance, what about system reliability?

https://xnux.eu/howtos/build-pinephone-kernel.html

https://github.com/megous/linux/tree/orange-pi-5.16
  Reply
#2
I haven't tried Megi but I was debating just adding a fat stack of batteries, I wonder if anyone else has thought about this?

Like, a power bank or two attachments in addition to the external keyboard (which is also kind of a power bank)?
  Reply
#3
(09-11-2022, 01:37 PM)biketool Wrote: ...
The reboots and modem cutouts during the day are survivable, but the battery life is difficult at best.
...
take a look at latter part of udev rule, number in a file needs to higher than in default udev file for modem.

Code:
# possible file location /lib/udev/rules.d/98-prevent-flipping-frames.rules
# for preventing flipping frames bug, could waste battery
KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/autosuspend_delay_ms}="-1"
KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/control}="on"

KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{min_freq}="432000000"
KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{max_freq}="432000000"
KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{target_freq}="432000000"

# for modem disconnections, !wastes battery!
ACTION!="add", GOTO="eg25_end-edit"
SUBSYSTEM!="usb", GOTO="eg25_end-edit"
DRIVER!="usb", GOTO="eg25_end-edit"
ENV{DEVTYPE}!="usb_device", GOTO="eg25_end-edit"

# (not) Default attributes values
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="on"
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/autosuspend_delay_ms}="3000"
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/wakeup}="enabled"
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="0"

LABEL="eg25_end-edit"
  Reply
#4
All of the operating systems available right now use megi's kernel or a modified version of megi's kernel already.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Kernel development Uturn 10 1,562 11-09-2023, 08:46 AM
Last Post: Kevin Kofler
  rough estimate of expected microSD installation life? andrewp907 7 3,326 06-10-2023, 07:55 PM
Last Post: Kevin Kofler
  Differences bwteeen megi's kernel e sunxi64 user641 2 1,248 03-12-2023, 06:39 PM
Last Post: Kevin Kofler
  PinePhone Pro battery life Barugon 17 14,944 07-29-2022, 09:23 AM
Last Post: prog-amateur
  postmarketOS fixed battery issues Deadladyofclowntown 1 1,443 06-23-2022, 02:44 PM
Last Post: zer0sig
  Phone won't suspend, battery drains quickly nelstomlinson 12 6,718 04-05-2022, 06:11 AM
Last Post: Anna
  The modem switch affects the connection to battery? JohnDoe 2 1,888 03-30-2022, 12:02 AM
Last Post: JohnDoe
  improve battery life on pine phone beta? taoschx 0 1,022 02-28-2022, 06:24 AM
Last Post: taoschx
  Guide to power off the Pinephone on low battery Ulfnic 1 1,475 02-06-2022, 05:16 AM
Last Post: Ulfnic
Question Is there a way to increase the battery life of the PinePhone? Avisando 18 11,602 01-22-2022, 11:55 PM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)