Megi's Kernel and Battery Life
#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


Messages In This Thread
Megi's Kernel and Battery Life - by biketool - 09-11-2022, 01:37 PM
RE: Megi's Kernel and Battery Life - by britelite - 01-06-2023, 10:06 AM
RE: Megi's Kernel and Battery Life - by zetabeta - 01-06-2023, 11:40 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)