(treble_experimentations) How to Set Scheduled Power On/OFF? - Treble-Enabled Device Questions and Answers

I used miui before and I can set scheduled Power On/OFF.
When i go to bed at 11:00 pm, the phone automatically power off.
When I get up at 7:00 am, the phone automatically power on.
How should i set it up in AOSP?
In settings i didn't find any option about scheduled power ON/OFF
I use AOSP 12.1 v414 system-squeak-arm64-ab-gapps.img.xz, My phone is Redmi K40(alioth)
By the way, When I set an alarm clock and I manually power off, the alarm clock in the power off state does not automatically power on and ring like miui. How should I set up to achieve this functionality?

NEED HELP!!!!!

Related

Activating Sleep Mode

Hi
I am not able to get the device to go into sleep mode (blank display) by touching the power button unless its at the lock screen. Depressing the power button does nothing, other than to activate the quick menu unless pressed for a few seconds. The only time I am able to get the device to sleep via the power button is when the screen has timed out (based on settings) and before the screen in unlocked, otherwise I just have to wait for the screen to timeout.
I cant seem to find anything that would prevent the device going to sleep via the power off button, any suggestions?
Does this happen all the time or only while the phone is charging, as there is a setting that keeps the screen awake while the phone is charging:
Settings>Applications>Development
happens all the time, and I am aware of the stay awake feature during charging
If you're using a custom rom it may have something to do with that. Maybe the key isn't mapped or set correctly. Other then that, that's a pretty odd issues.
jfran said:
Hi
I am not able to get the device to go into sleep mode (blank display) by touching the power button unless its at the lock screen. Depressing the power button does nothing, other than to activate the quick menu unless pressed for a few seconds. The only time I am able to get the device to sleep via the power button is when the screen has timed out (based on settings) and before the screen in unlocked, otherwise I just have to wait for the screen to timeout.
I cant seem to find anything that would prevent the device going to sleep via the power off button, any suggestions?
Click to expand...
Click to collapse
Sounds like some buggy program is keeping a wake_lock longer than it should. (The way games and ebook readers keep the screen lit/phone awake).
Had you installed anything new before this started?

Where is the silent mode???

Hi
on HTC devices I was able to use the volume rocker to set the device to vibration and by pressing the volume down button again to mute my device completely.
This is not possible any more in ICS? I can only set the device to vibration. What about muting?
The thing I am wondering about is, that I can use the HTC widget to do that and sometimes my profile manager (setting profiles) also is able to enter silent mode. So sometimes I can see the crossed note icon in notification bar, but most often I only see the vibration icon.
What is that supposed to be?
Frank
The device goes from 7,6,5,4,3,2,1,SILENT,VIBRATE
LaroCroft said:
Hi
on HTC devices I was able to use the volume rocker to set the device to vibration and by pressing the volume down button again to mute my device completely.
This is not possible any more in ICS? I can only set the device to vibration. What about muting?
The thing I am wondering about is, that I can use the HTC widget to do that and sometimes my profile manager (setting profiles) also is able to enter silent mode. So sometimes I can see the crossed note icon in notification bar, but most often I only see the vibration icon.
What is that supposed to be?
Frank
Click to expand...
Click to collapse
If you hold volume down until it goes to vibrate mode, just press it up once and you will then have silent mode
No idea. But for me it works like a charm. volume rocker first all the way down - vibrate mode and once more and its silent mode (or vice versa, cant remember exactly). Same with the widget. Press it once, silent, two times, vibrate.
Not working for me... 3, 2, 1, vibrate. Volume down no more reaction. Volume up again, volume setting to 1.
But good to know that this should work. So maybe something is messing with the settings in background.
im not sure as i dont own the one x yet, but maybe it is like on the gnex with stock ICS that u need to go to the settings first and check the option: silent mode!
This is really weired.
Using the volume rocker to show the volume slider and then pressing the icon in front of the slider switches between the 3 modes as expected.
Using the volume rocker now, after playing with the settings, sometimes switches to silent mode but most of the time still only vibrant.
Sometimes I see a short silent mode icon in notification (just for the part of a second).
I have the HTC widget on home screen showing the mode. This often shows a different mode as the icon in the not.area.
So whats's wrong with my device???
I even uninstalled my profile manager for testing. No change...
Using the rocker it will go from loud to quiet then vibrate, now just press up on the rocker and it will go from vibrate to silent.
use the rocker then slide the thing down = sound off.
I attached 2 screenshots showing the illogical settings I get using the volume slider...
First image:
You can see the mute icon in not-area and the zero volume value in slider but the HTC widget shows vibrate
Second image:
Still muted but showing vibration profile here too
Why am I the only one having that problem???
OK, solved it. Resetted to factory default and restored step by step. Seems that the setting data storage was damaged. Skipped this on restore and everything is fine now!!!
I use the widget because I cannot get it to go into silent mode using the volume rockers (but then neither could my Xperia Arc on the stock ROM, so I guess that's normal)
LaroCroft said:
OK, solved it. Resetted to factory default and restored step by step. Seems that the setting data storage was damaged. Skipped this on restore and everything is fine now!!!
Click to expand...
Click to collapse
This also solved my issue.

[Q] Power button Always Locks since 4.1

Anyone experiencing this? I had the setting to be 30 minutes of idle would lock the phone (using the pattern lock).
After 4.1 my phone now locks whenever I use the power button with the same 30 minute idle setting. It's really annoying and defeats the purpose of having a timer lock the phone. The only option would be to let the phone screen timer idle out every time.
Not sure why this would change or if my phone is bugged.
There's a setting (in Security if memory serves) to lock the phone instantly if the power button is used. Did that get set during the update, perhaps?
smelenchuk said:
There's a setting (in Security if memory serves) to lock the phone instantly if the power button is used. Did that get set during the update, perhaps?
Click to expand...
Click to collapse
that options doesn't seem to have its own setting any more. It is however built into the lock screen timer - the top option is to have it lock at idle out or power button. From there it goes down in increments like 1m, 2m, 5m, 20m, 30m.
I have it set to 30minutes and also checked the security options - there isn't a separate option to lock with power button that I can find anymore.

Smart Stay Not Most Efficient Screen Timeout Method? Forcing Screen On?

Sometimes in poor lighting Smart Stay doesn't work. Wouldn't if be more battery efficient to disable screen timeout and Smart Stay and just manually turn the screen off with the power button when done using the phone?
My theory is ideally, for battery and ease of use, would be to have this combination (assuming you are diligent about turning the screen off manually of course.)
1) Disable Smart Stay
2) Turn Auto Screen Timeout up considerably to 5 or 10 minutes. This is assuming I don't need it to stay on longer than 5 or 10 minutes but still gives you a safety net if you forget to turn it off. (This is also assuming apps like video players are smart enough to keep the screen turned on - otherwise you would have to keep waking screen if say you were watching a movie in a dark plane cabin.)
3) Turn off screen when done using phone.
What's nice is even if timeout is set high to 10 minutes if you answer a call, screen still turns off automatically when bringing phone to face.
Second method:
1) Disable Smart Stay
2) Set timeout to 15 or 30 seconds.
3) Have some sort of button press to force screen on indefinitely, or ideally you can set it for a max amount of time like 10 min, like double press of power button? Is there an app to do this?
I think first method would be most battery efficient if you remembered to turn the screen off every time, second method is 'safer' Is there an app or stock setting to achieve second methods?
Guess I should try Screebl
https://play.google.com/store/apps/details?id=com.keyes.screebl.lite&hl=en
I'd still like an option to do a double press on the power button to force it on indefinitely.
Meh. Not liking Screebl too much for two reasons. Makes phone stay on while in my car or pocket if I forget to turn it off. But, if I am as diligent about manually powering off, it shouldn't make a diff, but, it will. Reason is, it complicates operation when you want to change a song now you have to manually turn phone off while driving after changing song. I suppose once I have bluetooth setup in my car I can have Llama disable Screeble when I have bluetooth car connection. Also don't like that there is no option to not have the notification bar icon.
In a 2 min GSAM test with phone just sitting at angle, it took 1% battery. Wonder how much Smart Stay would take. Maybe BBS will give that info?
Really still think best solution is to map double press of power button to disable screen timeout until power button is pressed again. That's all I need.
Getting closer. But unfortunately, there is no (hardware) search button on S3! Need this for long press of menu or back button?
https://play.google.com/store/apps/...xLDEsImNvbS5tYWxjb2xtLnNjcmVlbm9udG9nZ2xlciJd
Got it....
Screen Timeout Toggle
https://play.google.com/store/apps/details?id=com.chemdroid.screentimeouttoggle
Then for those using Nova Launcher
Settings > Gestures & Buttons > Long-press Menu > Apps > Screen Timeout Toggle
Now I can just long press menu button to toggle if screen is forced on or not. I'm actually having second thoughts about turning off Smart Stay though as I don't know for sure if part of the time I've been setting my phone down without pressing the power button! Guess I'll see...

Schedule power on/off

Which rom has schedule power on/off option like miui ?

Categories

Resources