disable battery consumption when device (tablet) has screen off - Android Q&A, Help & Troubleshooting

hello,
i don't need it for a phone bu for a tablet that is used once per day or less, i would be awesome :
when I press power button of the tablet to make the screen off it would be great if :
- plane mode is activated in same time (no more wifi)
- all background application (mail,etc.) are disabled
As a workaround I could use the "low power" mode that disable all background application but this kind of mode always come with less performance and I don't want it. I want 100% of cpu and speed but when I don't use the tablet, I don't want a lot of app to run and kill my battery.
do you have an app or a setting for this ?

I use Naptime, this app force the doze mode. Though first you need grant a permission with ADB.

thanks I will try it. I read that this app accelerate the doze mode that exist already in android, right ? there is already a doze mode integrated ? how many time do we need to wait so that this doze mode activates ? maybe it doesn't exist in previous version of android, right ?

This app forces the phone to go into doze mode in minutes instead of hours. Since android 6 came out they put the doze mode. The truth is that this works great, now my phone only spends 0.5 percent per hour when the screen is off.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And in naptime labs settings

Thanks, do I need root or developer mode or something like that to be able to do adb command (one tablet is root and adb is enabled), the other one don't. Maybe I have to unlock something in my lenovo tablet to perform adb ?

You need enable usb debugging in developer mode options, you need root only if you want suspend google play services.
The application gives you the command to type in adb.

thanks, naptime installed, there is a whitelist notification, do I need to put naptime in the whitelist of application that are not optimized ?

Related

how to add battery percentage

hey i have the lg g8s and i trying to add on battery percentage
i already enable th system ui and i keep getting this error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
it says
"
sorry...
adb shell settings put system status_bar_show_battery_percent 0
something went wrong while setting this toggle.
try executing the following command from a computer
"
i tried to manualy enable by setting this commands in the adb command shell
adb shell content insert --uri content://settings/system --bind name:s:status_bar_show_battery_percent --bind value:i:1
adb reboot
and it didnt work..
Up
Plz help me out :highfive:
Hey,
I won't be able to help you a lot more but still manage somehow to explain why it's like that.
On finished products, LG deactivated the option to show the battery percentage directly on the status bar as there was not enough space.
Let me give you an explanation based on what I've seen on an unfinished G8s ThinQ prototype: when '100%' is shown, the middle of the second zero was cut and the percentage hidden.
I think the best way to do it now is by using an app giving you the info in a way you want (Play Store or F-Droid (if you want open-source) will help you find out).
There's an option to show or not the battery percentage when you open the notification panel, just next to the network status, etc.
If someone manage to set it up in a right way, let's explain here and I'll send it to my colleagues in order to let the koreans make an OTA update for everyone (I hope they will do it)
PS: on this prototype, even the back design wasn't the good one because the main purpose of this one is to check for the dimensions, the screen, the notch with all visible sensors and the OS with Air Motion/HandID.
I would like to ask if there are any news ... and then ... I wanted to report this image ... not bad as a solution !?

Android apps on PC

If I can find out here awesome, but I'm trying to find answers about Virtualization settings on a Windows 10 PC (Gigabyte MB).
You ma;y or may not know that trying to ask a question at Gigabyte comes at a cost (time and BS facts about your system).
I digress, I am trying to run an Android emulator (tried a few and they all ask for Virtualization to be enabled in BIOS).
In BIOS, I go to CPU advanced settings and enable whatever it is that Gigabyte calls it (something else).
I reboot my system and then run which ever program ie.. LDPlayerm BlueStacks., etc... and it still says VT disabled.
How do I enable it on my Motherboard?
Gigabyte AORUS Gaming 7 Wifi with the most recent firmware I could find (F51d).
If not an answer here can you point me to a site that I might be able to get help.
Thank You in advance.
Frustrated in Mexico - James
Bottomline is I want to run a mock GPS as I live in Tijuana Mexico and work in San Diego CA.
Nobody needs to know that I am not in San Diego when I am surfing. Even with my VPN a lot
of sites still know I am not in the states. This is more than frustrating. I thought VPN was suppose
to keep anonymous, that is not anonymous. Again I ramble.
Thanx for your time, hope somebody can help.
How To Enable HAV ( Hardware Assisted Virtualization ) on PC
@jpr9845
Check for CPU-virtualization is possible. You do this by running 3rd-party app LeoMoon CPU-V"
If you get result as shown
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
then you can enable VT in computer's UEFI.
f you have Windows Hyper-V (an optional feature of Windows) enabled, turn it off and reboot the system.
Also make the Memory Integrity feature is turned off as well
Now enable VT in computer's UEFI:
Go to Windows Settings
Click on Update & Security
Now click on Recovery
Click Restart now under Advanced startup.
Go to Troubleshoot
Click on Advanced Options
Now click on UEFI Firmware Settings
Click Restart.
https://mashtips.com/wp-content/uploads/2019/06/Windows-10-Advanced-Startup-Settings.jpg[img]
Look for something like an Advanced menu or tab. You’ll most likely find the setting you need to turn on under this. In addition to all the other things that can be different, this can also be labeled differently. It could be Advanced Mode, or simply Configuration like it is on my Lenovo Ideapad.
Finally, look for the setting which has Virtualization is its name and turn it on. Sometimes it’s named completely vaguely. For instance, Vanderloop. Depending upon your processor and other factors, these are the names commonly used.
[color=blue]
AMD-V,
VT-X
Vanderpool
SVM [/color]
[/list]

Stable tutorial for first-timer to maintain an Essential PH-1?

Hello, I've never gone beyond entering developer mode on any of my phones, looking around carefully, then turning that mode off. I own two PH-1 phones, one is in full time service, and I would like to know of a tutorial / step-by-step to do what I need to do to maintain this phone with the images (ROMs?) that are being maintained and updated. I don't need the phone to do anything other-worldly, just keep it updated.
This is the only forum on here I'm allowed to post to, because I've been a listen-only member for a couple years but have never posted. I've just started using Ubunto 20.04 on a new laptop so I can get away from Windows, but I still have a Win7Pro laptop.
Thanks for your recommendations on how to get started -- safely started -- and how to learn what I need to learn.
Also, I just read some of the read-me-first stickys, and please allow this to also be my "Say Hi" email...
"MP"
PS -- I get a captcha, check it, get the green checkmark, but I see *no* image... I'm using firefox w/ NoScript (all scripts enabled for this tab), on an Ubuntu 20.04 laptop.
So no one cares to reply? Did anyone read it besides myself? Whiskeytangofoxtrot
@Messypotamia
If phone's Android OS isn't an A/B-partition-layout-system - what I believe because its Stock ROM is Android 7.1. - then updating a phone's Android requires phone's boot-loader is unlocked. This must get enabled within phone's Developer options - keyword: OEM unlock - what simply sets phone's unlock ability flag to 1 . Additionally it's necessary that ADB ( read: Android Debug Bridge ) gets enabled in phone's Developer options - keyword: USB debugging.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Rooting the Light Phone 2

Hey all!
I have a Light Phone 2 which uses Android 8.1. It's a neat little device that I'd love to tinker with. There is a detailed guide explaining the build process ontop of Android 8.1. The TL;DR is the Light Phone uses LightOS which is another word for an app that site on Android 8.1 that has lower-level access, similar to how the settings app works.
There is a medium post outlining the build process entitled Building LightOS with React Native. I cannot link to it as I do not qualify for the 10 post minimum. So you'll have to google it.
I can get to the Android recovery screen. Although from there I can't do anything. As adb is locked to only sideload and mounting the system produces no results on my Linux machine.
I realize very few people have this device and can comment from experience but does anyone have any idea how to go about rooting this phone? Or getting it to a state to begin tinkering?
Thanks!
@kennethashley
Before starting to try to root phone's Android test whether you can enable these 2 options in Android's Settings -> Developer options:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If YES then you have to find a Custom Recovery matching your device what is prerequisite to flash any Rooting software.
jwoegerbauer said:
@kennethashley
Before starting to try to root phone's Android test whether you can enable these 2 options in Android's Settings -> Developer options:
If YES then you have to find a Custom Recovery matching your device what is prerequisite to flash any Rooting software.
Click to expand...
Click to collapse
Unfortunately, that is the thing, the phone does not have these settings available. I was hoping there would be a way to do this directly from the recovery menu
@kennethashley You can access the recovery menu by power and volume up at the same time. When you reach the screen that says "no command" press power first, then volume up, then quickly release volume up first then power. There, you should be able to put the phone into recovery mode.
you can then put the phone into fastboot mode and use adb tooling to enable oem unlocking so you can root the device.
This dude did it on reddit: reddit.com/r/LightPhone/comments/jqtfu4/heres_how_to_get_a_shell_on_the_lightphone2_and/

How to disable "deep sleep mode" as screen turns off?

Hello there.
*Having an POCO X3 PRO 256GB/8RAM (vayu).
*Installed Android 13.
*Custom ROM crDroid 9.4.
*ROOT by magisk.
*meefik/busybox ver. 1.34.1
*schedutil CPU governor. A default for my ROM.
So, i'm trying to run Debian on my phone by using chroot, not proot.
I want to achieve good Debian speed performance.
I was trying to use Linux Deploy app. However, it was an app, and it was easy to set "unrestriced" mode of battery usage, and let Debian in chroot do his job while screen is off, but this app is deprecated, i have faced a lot of issues and bugs, head developer is working on other projects.
Then i've found an interesting script: Linux Chroot Installer & Bootscript Magisk Module.
I started to explore this thing, and I liked it. This script did his job, he installed a new Debian.
Some commands via "adb shell", and i've installed ssh and samba servers.
Using 3-linear script, Debian launches on phone startup and sets high priority(nice -n command) for samba and sshd server processes.
BUT:
*When screen is on - performance of Debian is okay. Samba is transferring files fast, ssh is working with minimal latency.
*When screen is off - performance is very low, although android settings of battery saving is off. BTW, CPU clocks is not that low, and seems like CPU is trying to do his best, but not enough.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So, i want to continue using of this script. It gives me a lot of customizations. But it's not an android app, that would allow me to set unrestricted battery usage for this Debian, all the job is need to be done by CLI. And at this moment, i don't know how to allow Android power system use more resources while screen is off.
I've searched some topics, but couldn't find some useful.
CPU governors - tried changing 3 of them, but did not helped.
A hardcoded deep sleep mode?
What is your suggestions to prevent activation of "deep sleep mode" as screen goes off?
Thank you.

Categories

Resources