PINE64
Megi's Kernel and Battery Life - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: Megi's Kernel and Battery Life (/showthread.php?tid=17339)



Megi's Kernel and Battery Life - biketool - 09-11-2022

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


RE: Megi's Kernel and Battery Life - britelite - 01-06-2023

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)?


RE: Megi's Kernel and Battery Life - zetabeta - 01-06-2023

(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"



RE: Megi's Kernel and Battery Life - Canyonless - 01-09-2023

All of the operating systems available right now use megi's kernel or a modified version of megi's kernel already.