Questions tagged [power-saving]

For questions about optimising apps to save mobile power, or to manage the inbuilt power saving features within a device for an application. Needs to be used with relevant technology tags e.g. android Not to focus on the device end, but the application end of the technology.

Filter by
Sorted by
Tagged with
1 vote
1 answer
201 views

How to reset system idle timer in Windows 11 (SetThreadExecutionState(ES_SYSTEM_REQUIRED) doesn't work)

Earlier, when we call SetThreadExecutionState(ES_SYSTEM_REQUIRED) without ES_CONTINUOUS, it reset the system idle timer. But in Windows 11, that doesn't work anymore. I need the reset the idle timer, ...
Anton111111's user avatar
0 votes
1 answer
120 views

SetThreadExecutionState with just ES_CONTINUOUS don't enable sleep on Windows 11

I call SetThreadExecutionState(ES_SYSTEM_REQUIRED | ES_CONTINUOUS) and my PC doesn't sleep while a task is working. It's what I want. When the task has finished, I call SetThreadExecutionState(...
Anton111111's user avatar
0 votes
1 answer
90 views

Block X events when DPMS is active

I am trying to block the function XNextEvent from returning when DPMS is actively blanking the screen, so that I do not receive keyboard or mouse inputs while my screen is black. I want to block the ...
agregate's user avatar
  • 163
0 votes
0 answers
49 views

How can I prevent Windows OS from entering any energy saving mode while my Java application runs?

I wrote a small application that is mostly listening to a message feed on a TCP connection. This application suffers from a connection drop (and so missing important messages) whenever the PC goes ...
Kai's user avatar
  • 2,165
1 vote
0 answers
77 views

PhpStorm: excluding drives from "open file or project" dialog

I'm having several external USB drives connected to my PC (which are not required for my work with PhpStorm) and I'm wondering: is it possible to exclude drives from the "open file or project&...
Fuxi's user avatar
  • 7,641
2 votes
1 answer
327 views

How to get the thread execution state?

On Windows, each thread has an execution state which can be set by calling SetThreadExecutionState. For example, if a thread calls: SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED) then ...
MoaByter's user avatar
2 votes
0 answers
67 views

Android - How to detect "Power Save mode" in Huawei or other devices? [duplicate]

I’m making some optimizations on my app for devices with "power saving mode" enabled. Here's the sample code: import android.content.Context; import android.os.PowerManager; import android....
Ayaka_Ago's user avatar
1 vote
0 answers
513 views

How to change the cpu scaling_governor value via udev at the booting time

everyone. I’m tring to use udev to set my cpu's scaling_governor value from powersave to performance. And here is my udev rule file: [root@node1 ~]$ cat /etc/udev/rules.d/50-scaling-governor.rules ...
Phoenix Chao's user avatar
2 votes
1 answer
870 views

streaming UDP packets with esp32 access point cause massive packet loss

I'm currently running my esp32 wroom as Access Point to stream UDP packets (~100 packets per second, 1Ko per packet) to different smartphones. At close range, I lost about 30% of the packets at steady ...
magic_streamer's user avatar
0 votes
1 answer
56 views

Canvas fullscreen on mobile devices causes power down

How can i make a Canvas Element fullscreen and bypass the power saving feature of the mobile device. My canvas is playing a video but the mobile phone go's into power saving mode after a few seconds. ...
David Clews's user avatar
1 vote
0 answers
350 views

Adding my flutter app to ultra power saving mode in android

Is there a way I can allow my app to be added to the default ultra power saving mode in android? If not, can I get permission from the user? Adding REQUEST_IGNORE_BATTERY_OPTIMIZATIONS to my ...
Cyber's user avatar
  • 100
1 vote
1 answer
204 views

Is Vulkan suitable for software that uses the least possible resources?

I am writing a status bar that should take as little resources as possible i.e. should save power and does not steal cpu-/io-/gpu-time from more important processes and keep memory usage at an ...
Natrix's user avatar
  • 113
1 vote
0 answers
56 views

How can I detect if iOS & Android are in Powersave mode and add a CSS class to the body?

Background videos do not work on mobile devices with Powersaving mode active. I want to detect when the page is running on a device with Powersaving active and add a Body Class so I can hide doing ...
Orlando Fernando Marconi's user avatar
3 votes
1 answer
72 views

How to track (if possible) an Android device (latest versions) in the background at regular intervals?

Premise The user should always be informed of the use of his sensitive data (like collecting the location in the background), this question aims to better understand the latest limitations introduced ...
Mattia's user avatar
  • 31
0 votes
0 answers
58 views

Can I prevent a Windows computer from going to sleep under certain conditions?

I have a Windows 10 computer that's typically used for rendering. It is therefore vital that the computer does not go into any kind of power-saving mode while either the CPUs or GPU is running at high ...
Ef Em's user avatar
  • 1
1 vote
0 answers
1k views

Power consumption in Raspberry pi zero w

I am using Raspberry Pi zero w for my project which is going to be operated on 2600mah battery. Pi is interfaced with CSI camera, Telit GPS, ADC. Also configured Pi as Access Point and BLE peripheral. ...
fw08's user avatar
  • 124
1 vote
0 answers
435 views

How To Check Low Battery Mode Setting While App Is In Background

My app has functionality that works while the device is in the background. I've come across a problem where I need to change functionality if the user turns off/on Low Power Mode, but I'm not sure how ...
Rosalee Hacker's user avatar
1 vote
1 answer
338 views

Hot to auto-start an Azure Virtual Machine on public IP access?

On Azure, it seems possible to Auto-stop your VM based on CPU utilization For this to be effectively used for cost-saving, I need the VM to be auto-started on the next access to its public IP address....
gatopeich's user avatar
  • 3,415
3 votes
1 answer
5k views

How to change battery optimization settings manually AFTER requesting to ignore battery optimizations?

I use the following code to request ignore battery optimzation for an app. I can successfully request the permission. I am able to detect if the app is on the system's whitelist using ...
Air's user avatar
  • 51
2 votes
0 answers
475 views

Android 9: how to get locations with power saving mode and screen off

As documented officially, Android 9 makes a number of improvements to battery saver mode. For example, location services may be disabled when the screen is off. See https://developer.android.com/about/...
adou600's user avatar
  • 191
2 votes
2 answers
3k views

How to keep GPS receiver location updates when the app is in background ( Google Play Service Location API)

Sorry this is a long question, but I'm hoping that one of you experts out there can help a novice who is going quietly mad!! I have an Android app which uses a background service to get GPS fixes (...
Chris S's user avatar
  • 83
0 votes
0 answers
189 views

How to detect hibernate/power saving key was pressed C#

i have a keyboard(CHERRY KC 1000), it has some multimedia keys like calculator, mail, browser and a powersaving/hibernating key (it depends which setting is made in energysaving settings in windows. ...
Cezary88's user avatar
0 votes
1 answer
315 views

Programmatically load battery saver screen on Samsung J3

I want to load battery saver menu from an activity programmatically on Samsung J3 device with android lollipop. I have tried the following snippet: Intent intent=new Intent(Settings....
Sabid Habib's user avatar
1 vote
0 answers
54 views

How to get started developing an app that changes all the colors of the device to black and white (like a filter)

How can start develop an android app that changes all the colors of the device to black and white (after asking for confirmation and provide a way to return to normal mode) If you are familiar with ...
Mauricio Gracia Gutierrez's user avatar
13 votes
2 answers
1k views

Why is the p-state status MSR on ryzen not changing?

I am trying to detect the current p-state of my cpu. I have noticed that the p-state status MSR (C001_0063) always returns 2 on my ryzen 1700x system, even if the core is clearly not in that state. I ...
Jester's user avatar
  • 57.1k
0 votes
0 answers
331 views

Android app not visible on power save mode samsung s8

When I switch on power save mode on my samsung s8, My app is not visible to use which we are developing now,When we press Plus + button facebook and whatsup and etc are there. What I am missing what ...
Guruprasad's user avatar
4 votes
1 answer
2k views

How does idle(halt) state different then sleep state in Processor states?

As there are 4 processor state C0-C4. but i'm not getting a difference between idle state and sleep state? will idle state maintain a cache coherent? will sleep state maintain a cache coherent? And ...
Sumit Gemini's user avatar
  • 1,836
1 vote
0 answers
284 views

Webview not play audio, microphone when power save and turn off screen

My app using WebRTC to phone call, so I used webview to load sipjs connect to server make phone call sucessful. But it have a bug: Making phone call in power save and turn off screen, webview not ...
Minh Tri Nguyen's user avatar
1 vote
0 answers
369 views

Never receive FCM notification if the phone was in energy saving mode at the time it was sent

I am developing an Android app whose main use is to be notified instantly of certain events. I have a Huawei phone. The app works well with FCM I receive notifications in foreground and background, ...
Leonardo Javier's user avatar
2 votes
1 answer
1k views

Battery impact of polling for location updates less often?

I've read a lot of conflicting information on this. Suppose I use the Fused Location API in PRIORITY_HIGH_ACCURACY mode, does it make much difference if I set the interval to, say, 10 minutes vs 1 ...
Zuhayr's user avatar
  • 342
0 votes
1 answer
204 views

Initiating VSTS Hosted Build agent in sleep/hibernate mode

I'm using the free visual studio (Now Team Services) VSTS hosted build by definition needs an always-on box. It's shown with a green box under available agents. I have a machine at home which I ...
user281921's user avatar
16 votes
1 answer
4k views

Disabling or detecting the app specific power saving mode

Samsung devices (well, at least some of them) add all installed apps to an "App Power Saving Mode" list which affects the background services listening to some crucial info for the app. Some apps, ...
iamkaan's user avatar
  • 1,495
0 votes
1 answer
3k views

How to turn the screen blanking/sleep mode off under CentOS 7?

After a few minutes my freshly installed minimal CentOS installation blanks the screen and disconnects the WiFi. The system wakes back up, when I hit any key. I am under the suspicion that this is ...
user3482779's user avatar
3 votes
0 answers
940 views

What is system API for stoping Doze for an App on Android Marshmallow

I am looking for android system API implementation for avoiding Doze for particular application. Rather requesting user to confirm adding in whitelisted app for doze.
Kdads's user avatar
  • 31
13 votes
1 answer
3k views

How to check if the Battery Saver Mode is enabled on Android < 5.0?

As I know, there are some devices with version < 5.0 that have the Power Saver option. An answer provided in this similar question is not correct and doesn't explain anything. On Android 5.0+ we ...
user avatar
4 votes
0 answers
705 views

How to find the intent name to start App Power Saving Mode settings activity?

I have an Android alarm clock app. It is allowed to ring in Doze mode and is not effected by Android App Optimization because it uses AlarmManager.setAlarmClock(). It is rock solid reliable EXCEPT ...
user1908060's user avatar
24 votes
3 answers
12k views

How do I make my android app appear in Ultra Power Saving Mode

Some samsung devices have an Ultra Power Saving Mode which turns off wifi, turns the screen grayscale and limits usage to a few basic apps. It however does allow you to add some apps which can then ...
abel's user avatar
  • 2,333
2 votes
1 answer
90 views

Is there a battery saving methode when reading GPS sensor in time intervals?

I'm developing an android app which collect GPS sensor data in time intervals programatically (one per 5min). So it drains the battery badly. Is there any way to optimize the power consumption? Is ...
lakshitha madusanka's user avatar
11 votes
1 answer
3k views

Avoid app throttling when Electron is in background

Consider the following example: setInterval(function() { console.log(new Date()); }); If I run it with electron example.js under OS X, it opens up an icon in my dockbar and starts printing out ...
Matteo Monti's user avatar
  • 8,432
7 votes
1 answer
1k views

How can I force the monitor into power saving mode immediately in C#?

I have two monitors (HP EliteDisplay E190i), both are connected to two computers (2x VGA + DP). These monitors also support DVI, so instead of having a stupid toggle button, every time I wish to ...
Adi Gerber's user avatar
0 votes
1 answer
60 views

need an idea to save power consumed by app that do continuous recording

I have an application that depends on recording all sounds and analyses it and notify me when it records a specific tone. So this app consuming battery power as it works all time to detect the sound ...
Mohamed Awad's user avatar
9 votes
2 answers
2k views

CLLocationManager running in background & power saving

I am working on an iOS tracer. It must run and receive locations even if the app is not in foreground, i.e. I use the background mode "Location updates". However, it would be fine to safe battery if ...
Cimlman's user avatar
  • 3,484
4 votes
1 answer
2k views

Determine when app comes out of idle mode in Android M

Android M has a new feature called App Standby where an app is put into an idle state when it's not being utilized (see docs) and, among other things, its network access is disabled. I can't seem to ...
Reuben Tanner's user avatar
0 votes
1 answer
2k views

what permission in manifest to put application in power saving android

what permission in manifest to put application in power saving android. when user turn on power saving mode and try to add my application in list of applications that can run in this mode. it tried ...
mostafa hashim's user avatar
0 votes
2 answers
1k views

Broadcast Receiver for Ultra Power Saving Mode

Is it possible to have a broadcast receiver when user turns off Ultra Power Saving Mode (Samsung) or Ultra Stamina Mode (Sony) and so with Ultra modes implemented by different device vendors? I have ...
Adil Bhatty's user avatar
  • 17.2k
0 votes
0 answers
477 views

how to turn off power save mode in ILCE-QX1 camera using SDK?

I am using the Sony SDK to develop a solution using the ILCE-QX1 camera. I need to keep the camera powered up at all times but sometimes the camera will power down if the network connection has a ...
chris's user avatar
  • 51
-1 votes
1 answer
404 views

USB Wireless adapters enabling Power Saving Mode

I am being confused on all terminology referring to it, so here is my request: Name at least one USB Wireless Adapter whose Wi-Fi chipset is supported by a wireless driver enabling AP mode, Monitor ...
JahMyst's user avatar
  • 1,626
1 vote
0 answers
548 views

Power save mode Android Lollipop

Is there any way (with root or not) to enable or disable programmatically the android lollipop power save mode? I can't find any documentation about it.
greywolf82's user avatar
1 vote
0 answers
64 views

emacs 24.4.1 cannot create frame when monitor is off

I used version 24.3.1 before. Some my script run emacsclient -c by the schedule when monitor is off to save power: everything was ok. But there is a problem with new version 24.4.1 - emacs freezes ...
artscan's user avatar
  • 2,340
1 vote
0 answers
61 views

Disabling Windows Graphical Features

I'm currently writing a system tool for devices, such as laptops and tablets, that will activate (or deactivate) certain features within the Windows OS dependent on the current power level, and ...
Liam Kelly's user avatar