Fix Fake 0% Battery(charged with USB power) Shutdown
#1
Since we use towboot we can access our filesystem and fix stuff as needed
After an upgrade which seems to throw a fake 0% and shutdown command at bootup no matter what the battery charge level or plugged in status is;
I am looking for the file which flags shutdown at 0% battery, my battery is charged but now the OS thinks it is dead and will not see charging even done under towboot blue light mountable disk mode.
I have looked at (edited out my local machine to show location in PPp mobian trixie) these files
Code:
/etc/systemd/logind.conf
/usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.power.gschema.xml
/root/usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.power.gschema.xml
/root/usr/share/polkit-1/actions/org.gnome.settings-daemon.plugins.power.policy

If I were to change the name of systemd-poweroff.service
could I temporarily 'break' the poweroff even if that is like using a 10Kg hammer on my system to get a live phone to run updates?
Code:
/root/usr/lib/systemd/system/systemd-poweroff.service
plan is to move-rename systemd-poweroff.service to AAAsystemd-poweroff.service run backups and then rename it back
(EDIT)
I did the above and rebooted, now I show 57% after charging from my computer while editing files, I will run updates and fix AAAsystemd-poweroff.service
no apt system updates yet, system is charging so I will wait until tomorrow and hope the un-glitch doesn't re-glitch.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone visibly losing power while plugged in Hiraghm 2 97 Yesterday, 12:30 PM
Last Post: Kevin Kofler
  cpupower-gui profiles and battery life biketool 5 1,751 03-28-2025, 05:38 AM
Last Post: biketool
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 758 12-04-2024, 10:53 PM
Last Post: tracyanne
  Battery life suggestion aular2 2 1,709 08-05-2024, 09:06 PM
Last Post: aular2
  control power management aular 0 1,168 12-16-2023, 12:16 PM
Last Post: aular
  Is it normal for the pinephone to "discharge" after fully charged on multiple OS? Shad190 2 1,924 05-10-2023, 10:37 PM
Last Post: Shad190
  Megi's Kernel and Battery Life biketool 3 3,408 01-09-2023, 11:33 PM
Last Post: Canyonless
  Pinephone power consumption figures? girl 5 4,689 11-01-2022, 09:21 AM
Last Post: tunnelstrong
Thumbs Down Pro Explorer wont power off Shut down Ctrl_Amiga_1070 3 2,992 09-11-2022, 12:10 AM
Last Post: dcc
  PinePhone Pro battery life Barugon 17 20,632 07-29-2022, 09:23 AM
Last Post: prog-amateur

Forum Jump:


Users browsing this thread: 1 Guest(s)