Soft Restart question (Restart without powering off) - Android Software/Hacking General [Developers Only]

There is a way to "soft restart" phones. If I change a system setting, my phone's homescreen will go blank, and "redraw" all the icons... etc. I was wondering if any developers know the shell command used. I am working on an application, and I need that command.
Thanks.

Related

Soft Reset Command?

Hey all, just got my TP2 and I'm really enjoying it. Its a hell of a lot nicer than the Titan and i760 that I've been swapping between the past two years. Quick question though:
Is there a command somewhere in WM6.1 that will allow me to soft-reset the device? I really don't want to wear out the plastic cover on the back by taking it on and off over and over again to press the reset button.
Thanks in advance,
Dustin
Someone correct me if I am wrong but I believe if you power it down with the red "end call" button and then power it back up with the same button it is equivalent to a soft reset. But if you are looking for a shortcut in windows to do that you can try the various task managers out there like pbar, wisbar lite, ect. They have soft reset options with a very small footprint on the memory.
You are correct. And technically speaking, using the power on/off commits all changes to memory.
I used SPB Mobile Shell 2.0 on my old phones that had a shortcut for it, but I wasn't sure if HTC had an equivalent. I'm really debating on switching back to SPB, but I hear that MS 3.0 isn't perfectly functional with the TP2 yet.
Thanks for your help!
Check this out. It gives you the option to soft reset on the norification when you hold down the power button. I like it.
psSHUTXP
http://forum.ppcgeeks.com/showthread.php?t=78019&page=6
Try ActionScreen
ActionScreen does this by popping up a selection screen when you hold down the power button for 3 seconds. There are many actions to choose from and one of them is Soft Reset. I've been running it for a few days and it seems to work fine and be unobtrusive.
ActionScreen: http://forum.xda-developers.com/showthread.php?t=547432
I think there is a option on the setting manual "wipe all memory" or something like that.
On mine, by holding down the "End Call" button for 3 or 4 seconds, I get a prompt with the following options.
Display Off
Turn Off
Soft Reset
Hard Reset (icon on upper right (a little scary))
Plus icons for
Device Lock Settings
Setting timer actions
Setting Today Icon for this prompt
The prompts displays as Touch Pro 2 Shut Down Option
I have quite a bit of 3rd party software, but I believe this is native to the device. Try it and see what happens.
I don't get those, but I am on a custom rom. I have:
Turn Airplane Mode On
Lock Device
Terminate Data Connection
Set Vibrate
Settings...
sorry double post.
As mentioned these are the two most common:
psSHUTXP and XDAshutdown.
I used XDAshutdown.
Here is the thread:
http://forum.xda-developers.com/showthread.php?t=544016
Here is the best skin IMO.
http://forum.xda-developers.com/showpost.php?p=4582904&postcount=310
I have attached all here
For applying skins for XDA shutdown:
Over write the files in this folder assuming you installed to a storage card:
\Storage Card\Program Files\xdaShutdown

Surface Pro Sleep?

Hi guys,
I had a quick question. On my surface pro, I've set the power button to put the device to sleep both on battery and on the power adaptor. But after a few minutes after pressing the button, it seems to turn off. Because when I press the power button, it shows the Surface logo again and boots fresh. Does anyone else have this problem and know how to fix it?
Second minor question. Can you scroll with the Wacom pen?
It does a full boot, not a hibernate restore? That would be odd. Check the event log for more info on what it's doing after you press the button.
As general advice, check your hibernate settings (is it enabled, when does it trigger, etc.)
Yea, well I'm not sure if it's a hibernate restore, but it does show the surface logo. And I checked the settings for power plan, and it says like, what to do with power button and I have itbset to sleep in all cases...not even hibernate.
also, how can I check the event logs and what should I look for
Showing the Surface logo just means that the system was in a powered-off state (hibernate counts). The easy (and obvious) way to tell if it's hibernate or full shutdown is whether your programs are still running when it comes up. Open a file in Notepad on the desktop or something...
To check Windows event logs
Right-click the Start button and choose Event Viewer (this is new in Win8, and handy).
Or, open the Start menu and type "event" (this has existed since Vista; still works on 8 for some things you need to select "Settings" on the right now, which is my biggest gripe with 8).
... do people still not know how to find things on Windows? The mind boggles.
Anyhow, check under Windows Logs -> System log for text like "sleep" or "hibernate" (you can use Ctrl+F to search). It may help to set a filter (option is on the right) of Event source: Kernel-Power, Power, and Power-Troubleshooter. Start at the top of the log (ensure it's sorted so this is most recent; it should be) and look for any indication of what happened.
Hey thanks! So looks like it is going in to hibernate, I checked that my apps were still open. so the question is, why hibernate and why not sleep? any other suggestions on how to troubleshoot this further?
Hibernate draws no power at all (literally, on devices with removable batteries, you can hibernate them and then remove power and battery and leave it on the shelf for a year, and it will resume where it left off when plugged in again). Sleep mode draws some power still; the RAM needs to be continually refreshed, and some system components will run in a low-power state to monitor for things like network wake-up messages.
You can use the Power Options in Windows (on the Desktop, right-click the battery icon, select Power Options, then chose "Change plan settings" for your selected power plan) to control the automatic hibernation behavior. It should be possible to turn it off, or at least set it to a long time. If you want to disable hibernation entirely, that can also be done but you'll need to use the command line. Open up an administrator command prompt (this can also be done from the Start button context menu) and type the following command:
powercfg -H off
Note that this will also free up some "disk" space on C: because hibernate works by writing the RAM out to disk. However, it will also mean that if the battery runs critical, the tablet will have no option but to shut down (currently, it will enter hibernate so you can pick up where you left off when you get to power).

The constantly turning on capacitive buttons...

The capacitive button lights....turn on...all the time. Every time I touch the screen, they flash on....then after half a second, back off. I touch the screen again, they flash at me. I was ready to move on from on screen buttons on my nexus 5...but the lights are so annoying. And even if you turn them off by going to power saver (which you shouldn't have to), then they don't vibrate! And there's nothing printed on the phone at all...so you're just pressing a blank corner of the phone.
Even if they do give the option to turn the lights off in the future, there won't be anything labeling the button to press. Ugh.
I guess you have to pick your poison. You don't want the lights on but at the same time you don't want to touch a blank corner of the bottom of the phone
twoeleven99 said:
I guess you have to pick your poison. You don't want the lights on but at the same time you don't want to touch a blank corner of the bottom of the phone
Click to expand...
Click to collapse
They could have printed something on the phone...but for the sake of making the phone prettier and more iphone like, they didn't. Not to mention the power save mode throttles cpu too...so that's hardly a long term solution. Not keeping a $700 phone in hopes that they'll add an option to turn the lights off.
That sounds really annoying. I have a galaxy s4 on stock touchwiz lollipop and the capacitive button lights don't turn on unless they are pressed. It's always been like that on the s4 and it's the same on my tab 10.1. The only time I've seen the lights turn on whenever I touch the screen is on some aosp roms. Maybe this is a bug on the s6.
I can turn the key lights off on my AT&T S6. Settings, Display, Touch key light duration, always off.
yeah only the ATT s6's have the setting for turning off the lights.
Every other version has had the setting removed. And now the bloody lights turn on anytime you interact with the phone...even if you're not touching the buttons!
But none of the versions have any label printed there right?so even if they add the option to turn off the lights, you won't even have labels to pish will you?
But you know where the buttons are and what they do why do you need them to be labeled?
twoeleven99 said:
But you know where the buttons are and what they do why do you need them to be labeled?
Click to expand...
Click to collapse
OCD mainly. I shouldn't have to push a general area of the phone and have it do something. Heck, half the promo shots of the phone make it look like there is a light printing of the buttons, but in reality it's blank.
If the ATT version has the option to disable or set a timer, it's definitely software bound. Probably will be added to future updates, hoping so.
I'm sure it could be tweaked with software. Hell, they wouldn't really bother me that much if they just faded in and out.
adb fix for capacitive buttons
0dBu said:
I'm sure it could be tweaked with software. Hell, they wouldn't really bother me that much if they just faded in and out.
Click to expand...
Click to collapse
Hi, using my Note 3 and adb I figured out the fix for this. On the Note 3 these settings were under Settings/Display/Touch Key Light. Assuming you have ADB installed and the phone put into developer mode (root is not required, this is 'standard' stuff) + usb debugging to on, take the following steps (tested on an S6 Edge):
* on the PC running adb, connect it to the device and use the command 'adb usb'. Perform the requested action to allow the PC access to the S6 (Edge)
* next, use the following commands to change the light-out period:
"adb shell settings put system button_key_light 0" -> always disable the capacitive button lights
"adb shell settings put system button_key_light -1" -> always enable the capacitive button lights
"adb shell settings put system button_key_light 1500" -> always disable the capacitive button lights after 1.5 seconds
"adb shell settings put system button_key_light 6000" -> always disable the capacitive button lights after 6.0 seconds
"adb shell settings get system button_key_light" -> get the current setting (standard: 1500, ie. 1.5 seconds)
Good luck,
Sander761 (I posted this same instruction on Tweakers.net in Dutch btw)
Interesting, thank you.
So it's either disable the capacitive backlights or enable them? I'm not sure about the S5, but I know the S3 and S4 will only turn on the backlights for the buttons if you actually press them, and they will stay off when you are touching the screen. It's much better that way.
mupet0000 said:
So it's either disable the capacitive backlights or enable them? I'm not sure about the S5, but I know the S3 and S4 will only turn on the backlights for the buttons if you actually press them, and they will stay off when you are touching the screen. It's much better that way.
Click to expand...
Click to collapse
I get the exact same behaviour on my S6 as I get on my Note 3: if I touch them they will light up, if I touch the screen they will stay off. So I don't think that has changed.
I can assure you that at least on a T-Mobile GS6 when you touch the screen the capacitive buttons light up.
0dBu said:
I can assure you that at least on a T-Mobile GS6 when you touch the screen the capacitive buttons light up.
Click to expand...
Click to collapse
Confirming as true.
sander761 said:
Hi, using my Note 3 and adb I figured out the fix for this. On the Note 3 these settings were under Settings/Display/Touch Key Light. Assuming you have ADB installed and the phone put into developer mode (root is not required, this is 'standard' stuff) + usb debugging to on, take the following steps (tested on an S6 Edge):
* on the PC running adb, connect it to the device and use the command 'adb usb'. Perform the requested action to allow the PC access to the S6 (Edge)
* next, use the following commands to change the light-out period:
"adb shell settings put system button_key_light 0" -> always disable the capacitive button lights
"adb shell settings put system button_key_light -1" -> always enable the capacitive button lights
"adb shell settings put system button_key_light 1500" -> always disable the capacitive button lights after 1.5 seconds
"adb shell settings put system button_key_light 6000" -> always disable the capacitive button lights after 6.0 seconds
"adb shell settings get system button_key_light" -> get the current setting (standard: 1500, ie. 1.5 seconds)
Good luck,
Sander761 (I posted this same instruction on Tweakers.net in Dutch btw)
Click to expand...
Click to collapse
Thanks for the fix, disabled them. Sad there isn't a way to have them only go on when you press them.
I'm sure it can be customized to only light up if pressed on a custom rom. If there are enough requests maybe a dev making roms for us can implement it
sander761 said:
I get the exact same behaviour on my S6 as I get on my Note 3: if I touch them they will light up, if I touch the screen they will stay off. So I don't think that has changed.
Click to expand...
Click to collapse
This is the behaviour we all want I think. Which variant do you have?
mupet0000 said:
This is the behaviour we all want I think. Which variant do you have?
Click to expand...
Click to collapse
I have the European variant S6 Edge SM-925F, build LRX22G.G925FXXU1AOCV. But just to confirm: my behaviour is that *once the display is on*, using the touchscreen (except cap. button area) does not light the buttons. When unlocking the device, the buttons always light up briefly (unless you turned them off, of course). If that is the wanted behaviour, I guess this is the build you want

Is there a way to turn off Capacitive Buttons light ?

I bought the Phab2 Pro and one of the first things I noticed is that the light of the navigation bar (back, home, recent buttons), is always on, and the settings option to disable it, it's gone.
I tried to manage it with some apps and they don't work.
Also tried trampling with the adb usb debugging "adb shell settings put system button_key_light 0" and it doesn't work, but change it for screen_brighteness for example and it works perfectly.
I just want to turn it off because it's really annoying when I'm watching videos or just playing landscape. Anyone knows a way?

Enabling Android 10's screen recording on the Edge

Fail.
I looked for the feature flags in the developer menu, but, they were gone. SHo nuff, removed at or after Android 10 beta 3 I learned. So, it was up to adb.
Code:
adb shell settings put global settings_screenshot_long_press true
The proceedure failed quietly, which, of course, merely means no errors, just; nuh.
I tried the feature out by then pressing power button for the menu, and trying to long-press screenshot. The utility on the phone popped up instantly, so, long-press was out. I turned the utility off to which the normal screenshot routine took over. Again, no long-press action at all, just instant screenshot.
Meh. It's the moto kung-fu, right? ANyone bother with this? ANy success?

Categories

Resources