[LG G8X] Switch between power save modes

dumitrudan608

New member
Hi,

I have some macros that run when I go to sleep and when i wake up in the morning on my LG G8x. You can pretty much guess what they do (toggle Wifi, Data, Bluetooth, Vibration, etc).
I want to also set the Battery saver to "Maximum" (Choises are Off, Extended and Maximum) when I go to sleep and "Off" when i wake up.

Is there any way I can access these settings from Macrodroid?

I was thinking of pulling quick settings, (UI interaction) long press on Battery saver, (UI interaction) press on Maximum, but I could not find a way to pull down quick settings.
If you have any other more direct ideas, they would be much appreciated.
 

FrameXX

Well-known member
Have your tried looking for those values in Add action>Device Settings>System Settings ?
If that settings would be there it would be more propably hidden in Secure or Global settings.

I was thinking of pulling quick settings, (UI interaction) long press on Battery saver
You can open battery settings directly with Intent action

Try this one:

Action=android.intent.action.MAIN
Package Name=com.android.settings
Class Name=com.android.settings/com.android.settings.Settings$BatterySaverSettingsActivity

Alternatively this one:

Action=android.intent.action.MAIN
Package Name=com.android.settings
Class Name=com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity

OR you can use launch shortcut action, choose settings and choose battery as a schortcut.
 

dumitrudan608

New member
Battery saver action is built in. Or MacroDroid can toggle data and so on
The battery saver on LG G8x really works and does allot of stuff, like CPU slowdown, and other things you usually need root to do them. On my Note 8 and 3, the battery saver was a joke, it just turned everything black and white, did not do squat for battery, on LG G8x I reached 4 days on "Maximum" battery, with 27% to spare, so it's real. I'm just thinking I could save some battery life and turn it on at night.
 

dumitrudan608

New member
If that settings would be there it would be more propably hidden in Secure or Global settings.


You can open battery settings directly with Intent action

Try this one:

Action=android.intent.action.MAIN
Package Name=com.android.settings
Class Name=com.android.settings/com.android.settings.Settings$BatterySaverSettingsActivity

Alternatively this one:

Action=android.intent.action.MAIN
Package Name=com.android.settings
Class Name=com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity

OR you can use launch shortcut action, choose settings and choose battery as a schortcut.
Man this is awesome, you opened my eyes to allot of possibilities.
The 2 intent options unfortunately failed for me, I get this error message: "Unable to find explicit activity class {com.android.settings/com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity}; have you declared this activity in your AndroidManifest.xml?"

What I used successfully is this (the "wait" is necessary because of the animations):
1623189825766.png

Maybe I'm asking to much info, but this info is hard to find, google was not helpful, but I have 2 more questions:

1. Is there a way to check if power save is on, so I can create a toggle on/off dynamic?
2. Can you think of a more direct way for me to toggle them? (if you need more info/print screens let me know)
 

nginx27

New member
Man this is awesome, you opened my eyes to allot of possibilities.
The 2 intent options unfortunately failed for me, I get this error message: "Unable to find explicit activity class {com.android.settings/com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity}; have you declared this activity in your AndroidManifest.xml?"

What I used successfully is this (the "wait" is necessary because of the animations):
View attachment 492

Maybe I'm asking to much info, but this info is hard to find, google was not helpful, but I have 2 more questions:

1. Is there a way to check if power save is on, so I can create a toggle on/off dynamic?
2. Can you think of a more direct way for me to toggle them? (if you need more info/print screens let me know)
If you have root access, you can check it's state and also toggle it. Or maybe there's another way that I'm not aware of
 

FrameXX

Well-known member
Man this is awesome, you opened my eyes to allot of possibilities.
The 2 intent options unfortunately failed for me, I get this error message: "Unable to find explicit activity class {com.android.settings/com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity}; have you declared this activity in your AndroidManifest.xml?"

What I used successfully is this (the "wait" is necessary because of the animations):
View attachment 492

Maybe I'm asking to much info, but this info is hard to find, google was not helpful, but I have 2 more questions:

1. Is there a way to check if power save is on, so I can create a toggle on/off dynamic?
2. Can you think of a more direct way for me to toggle them? (if you need more info/print screens let me know)

Try out Shortcut Maker.
 
Top