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
  cpupower-gui profiles and battery life biketool 3 475 10-17-2024, 09:59 AM
Last Post: biketool
  Battery life suggestion aular2 2 863 08-05-2024, 09:06 PM
Last Post: aular2
  Linux Kernel development Uturn 10 3,623 11-09-2023, 08:46 AM
Last Post: Kevin Kofler
  rough estimate of expected microSD installation life? andrewp907 7 4,746 06-10-2023, 07:55 PM
Last Post: Kevin Kofler
  Differences bwteeen megi's kernel e sunxi64 user641 2 1,787 03-12-2023, 06:39 PM
Last Post: Kevin Kofler
  PinePhone Pro battery life Barugon 17 18,180 07-29-2022, 09:23 AM
Last Post: prog-amateur
  postmarketOS fixed battery issues Deadladyofclowntown 1 1,905 06-23-2022, 02:44 PM
Last Post: zer0sig
  Phone won't suspend, battery drains quickly nelstomlinson 12 9,138 04-05-2022, 06:11 AM
Last Post: Anna
  The modem switch affects the connection to battery? JohnDoe 2 2,600 03-30-2022, 12:02 AM
Last Post: JohnDoe
  improve battery life on pine phone beta? taoschx 0 1,276 02-28-2022, 06:24 AM
Last Post: taoschx

Forum Jump:


Users browsing this thread: 1 Guest(s)