Powersave mode extrem
-
It's a feature, taken from the click documentation:
4.3.2 Specification • Only system packages (i.e. .debs) may declare hooks. Click packages must be declarativeinclude code executed outside AppArmor confinement, which precludes declaring hooks. -
@Moem If you're still experiencing increased battery drain when using Wi-Fi,
go to Wi-Fi -> Network Settings -> Saved Networks and tap “Forget” to remove all saved networks. Then reconnect to your home Wi-Fi network.I also had a few stale connections here—sometimes even two Wi-Fi icons in the status bar.
-
If you're still experiencing increased battery drain when using Wi-Fi,
go to Wi-Fi -> Network Settings -> Saved Networks and tap “Forget” to remove all saved networks.Thanks... the truth of the matter is that I've just migrated to a different device. So there are no saved networks. But also I don't know the state of my current battery.
-
@Moem
After clearing the saved Wi-Fi connections, power consumption is minimal.
-
@Linus67 so what was the conclusion here for light users? Powersave or scaling? Suspension setting on or off? Thanks
-
@moodroid The “Prevent background suspension” setting should be set to OFF. As described in the Ubuntu Touch Wiki.
By “Power Save,” I mean the following:
- Set CPU cores to half load
- Turn off Wi-Fi
- Turn off mobile data
- Turn off Bluetooth
- Turn off location services
- Enable 2G (optional)
With these settings, the device enters deep sleep mode and consumes less than 22 mA. (1-2% battery consumption at night) If this is not the case, you will need to check for faulty services or configurations that are preventing deep sleep mode. In my case, I created a script with a log file that records the power consumption of the idle device in a text file. It was always over 200 mA. Only after cleaning up faulty services linked to installations did the consumption drop to ~22 mA.
The battery on my 9-year-old Pixel 3a now lasts about 4 days with moderate use. I call it “NOKIA 3210 mode.” You can be reached via text and phone for days on a single battery charge. If needed, you can also take pictures, check emails and calendar events, send texts, or make calls, and all other features of a modern smartphone are available. (Navigation, internet, NextCloud, cloud music...)
-
@Linus67 thanks - that’s great. So when you say set cpu cores to half load, how do I do that? Is that the powersave governor?
-
This is my current script
#!/bin/bash # ==================================================================== # NOKIA 3210 MODUS: CPU throttling + All offline services (Pixel 3a 24.04-1.3 rc) # ==================================================================== if [ "$EUID" -ne 0 ]; then echo "ERROR: Please run the script using: sudo $0" exit 1 fi echo "Enable Nokia 3210 mode..." # 1. Force CPU cores into power-saving mode for governor in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do if [ -f "$governor" ]; then echo "powersave" > "$governor" fi done echo "[✓] CPU throttling enabled." # 2. Turn off Wi-Fi nmcli radio wifi off echo "[✓] Wi-Fi disabled." # 3. Turn off location tracking (GPS) sudo dbus-send --system --type=method_call --print-reply --dest=com.lomiri.location.Service /com/lomiri/location/Service org.freedesktop.DBus.Properties.Set string:com.lomiri.location.Service string:IsOnline variant:boolean:false echo "[✓] Location tracking disabled." # 4. Turn off Bluetooth rfkill block bluetooth echo "[✓] Bluetooth disabled." # 5. Turn off mobile data sudo -u phablet DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/32011/bus" dbus-send --session --type=method_call --print-reply --dest=com.lomiri.connectivity1 /com/lomiri/connectivity1/Private org.freedesktop.DBus.Properties.Set string:com.lomiri.connectivity1.Private string:MobileDataEnabled variant:boolean:false echo "[✓] Mobile data disabled." # 6. Greenline-Service stop at user level XDG_RUNTIME_DIR=/run/user/32011 sudo -u phablet systemctl --user stop greenline.service 2>/dev/null echo "[✓] greenline.service stopped." echo "------------------------------------------------" echo "Success! CPU, wireless modules and GPS are in sleep mode." sleep 3These script lines have been compiled from various sources and optimized for my Pixel 3a running UT 24.04-1.3 rc. Many thanks to the experts in this forum for their helpful tips on some of the commands.
-
note: Block 6 can be removed if “Greenline” (Alpha Build) is not installed.
# 6. Greenline-Service stop at user level XDG_RUNTIME_DIR=/run/user/32011 sudo -u phablet systemctl --user stop greenline.service 2>/dev/null echo "[✓] greenline.service stopped." -
@Linus67 Thanks very much. Will try it out…
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login