Auto-suspend on battery doesn't work most of the time with PinePhone Keyboard accessory
Describe your issue
It appears to be the case that auto-suspend on battery doesn't work most of the time with PinePhone Keyboard accessory, because the phone is charging via the keyboard (which IMHO is by itself fine to show as such in the UI) but treats that as on AC power even when no external charger is plugged in (which I think is wrong). This also greatly diminishes the battery gains of the keyboard's added battery since the phone then suddenly burns through it non-stop even when on the run it was meant to be efficient and use suspend.
What's the expected behaviour?
What's the current behaviour?
Phone doesn't suspend when no AC power available even when suspend on battery is enabled (and suspend on AC is disabled).
How to reproduce your issue?
Use PinePhone keyboard case, enable suspend on battery in gnome-control-center and disable suspend on AC, then unplug all AC power and wait for suspend.
What device are you using?
PinePhone 1.2b 3G/Convergence Allwinner
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.06
-
v21.12
(supported until 2022-07-12) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway)
Other
-
No environment ("none" in pmbootstrap) -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm -
Sxmo (Xorg/Dwm) -
console UI -
framebufferphone
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device