[Q] Reboot task - Atrix 4G General

I want to reboot the Atrix with Tasker task but the "!reboot -p" command doesn't work.
What is the correct command for a reboot?
Thanks

MaluNoPeleke said:
I want to reboot the Atrix with Tasker task but the "!reboot -p" command doesn't work.
What is the correct command for a reboot?
Thanks
Click to expand...
Click to collapse
Assuming you're rooted... I just use Terminal Emulator and type "reboot".

Yeah, that works in the Emulator but not with the Locale/Tasker Execute Plugin.
Strange...

Related

terminal emulator

this may be a stupid question to some but it made sense to me.i cant do anything with adb at the moment.wont recognize device.is it possible to push something using terminal emulator instead if the file was placed in correct location?
Where are you trying to save to?
If you're rooted, you can put it anywhere you want, including system directories.
You can do that through the terminal emulator or with any file manager app such as Linda.
i would save to root of sd card as anything else.was just wondering if it was possible to "push"like adb using emulator things such as wifi driver for the custom kernels
how would these commands change using terminal emulator?
.) adb remount
2.) adb push bcm4329.ko /system/lib/modules
3.) adb reboot bootloader
4.) fastboot flash zimage zImage
5.) fastboot reboot
superg81 said:
how would these commands change using terminal emulator?
.) adb remount
2.) adb push bcm4329.ko /system/lib/modules
3.) adb reboot bootloader
4.) fastboot flash zimage zImage
5.) fastboot reboot
Click to expand...
Click to collapse
#1 would probably not be necessary. Or perhaps it would be instead: mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#2 mv /sdcard/bcm4329.ko /system/lib/modules
#3 Turn off the phone manually, then hold Volume Down while pressing Power
#4 I think this will work the same as long as you're in the correct folder (folder with the zimage file). You need to have the recovery image though to access the terminal. (See my signature for how to get it if you don't already have it.)
#5 Reboot manually
Paul22000 said:
Where are you trying to save to?
If you're rooted, you can put it anywhere you want, including system directories.
You can do that through the terminal emulator or with any file manager app such as Linda.
Click to expand...
Click to collapse
Paul, I have been reading your rooting guide as I am new to Android OS and have not yet pulled the trigger, but I really want to root my N1.
Shut Down?
I'm curious if it's possible to power-off the device using a terminal emulator command? Not reboot, but turn off. And of course able to turn on again normally using the power button.
Bryce2010 said:
I'm curious if it's possible to power-off the device using a terminal emulator command? Not reboot, but turn off. And of course able to turn on again normally using the power button.
Click to expand...
Click to collapse
"reboot -p" I believe
Paul22000 said:
"reboot -p" I believe
Click to expand...
Click to collapse
Thanks that did work, but the shut down was instant! Not like shutting down normally using the power button. Is it wise to turn it off like that? I've never had a problem with my power button but have read all the threads where it has started failing. This is one more way to take some of the use off of the power button, but if it's not good for the system to turn it off that way maybe I shouldn't?
Bryce2010 said:
Thanks that did work, but the shut down was instant! Not like shutting down normally using the power button. Is it wise to turn it off like that? I've never had a problem with my power button but have read all the threads where it has started failing. This is one more way to take some of the use off of the power button, but if it's not good for the system to turn it off that way maybe I shouldn't?
Click to expand...
Click to collapse
Not sure, but I was thinking that if you were looking to power off via the terminal, you didn't care about the repercussions heh. Why do you need to turn off via the terminal?
superg81 said:
how would these commands change using terminal emulator?
.) adb remount
2.) adb push bcm4329.ko /system/lib/modules
3.) adb reboot bootloader
4.) fastboot flash zimage zImage
5.) fastboot reboot
Click to expand...
Click to collapse
Did you ever get this working? I need to push the same file and adb would not work for me at a all.
baseballfanz said:
Did you ever get this working? I need to push the same file and adb would not work for me at a all.
Click to expand...
Click to collapse
How far did you get?
Where are you stuck?
I believe you need to do flash_image instead of fastboot flash...
Sent from my Nexus One using XDA App
this may work.
put the file on the root of your SD card
in terminal emulator
su
mount -o rw,remount /system
cp /sdcard/bcm4329.ko /system/lib/modules/bcm4329.ko
should work.
danger-rat said:
How far did you get?
Where are you stuck?
I believe you need to do flash_image instead of fastboot flash...
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
While I can hook up my phone and put in the command to show device,
my N1 come up with the id# but that's it.
Can't do remount or any other commands, same when I had the Captivate.
ksc6000 said:
this may work.
put the file on the root of your SD card
in terminal emulator
su
mount -o rw,remount /system
cp /sdcard/bcm4329.ko /system/lib/modules/bcm4329.ko
should work.
Click to expand...
Click to collapse
I went a different route, flashed Cyanogen 6, but if I ever need to go this route I've subscribed to this thread.
Thanks all for inputs

How I do this command?

In Blayo 0.7 rom written
kernel modules
Loading kernel modules is done by editing /data/local/modules file. If you want to enable for example ipv6 support, you have to edit this file adding "ipv6" (without absolute path and any suffixes) to it. The same goes for other modules too. Modules are added separated by spaces.
Click to expand...
Click to collapse
So how I edit this files?or how I can find their location?
Has this forum some information about editing Android system?
Using some file manager (astro, open intents, root explorer.. whatever you have installed), navigate to that modules file and open it in a text editor, then literally just type in 'ipv6' without the quotations, then save and exit. Reboot your phone and you're good to go.
If you feel intensely nerdy you could echo it in:
Code:
adb shell
echo "ipv6" >> /data/local/modules
reboot
el.dizzee said:
Using some file manager (astro, open intents, root explorer.. whatever you have installed), navigate to that modules file and open it in a text editor, then literally just type in 'ipv6' without the quotations, then save and exit. Reboot your phone and you're good to go.
Click to expand...
Click to collapse
I opened in a text editor but it doesn't show me nothing
I use root explorer
TheGrammarFreak said:
If you feel intensely nerdy you could echo it in:
Code:
adb shell
echo "ipv6" >> /data/local/modules
reboot
Click to expand...
Click to collapse
write "ipv6" quotes or not?
With quotes, I think. To check what you added to the file you'd just echo or cat the file back. If it's go quotes then you can overwrite the whole file by using a > instead of >>
TheGrammarFreak said:
With quotes, I think. To check what you added to the file you'd just echo or cat the file back. If it's go quotes then you can overwrite the whole file by using a > instead of >>
Click to expand...
Click to collapse
Sorry for this silly question but what the difference between echo or cat?
I think I will be on the first way because I don't really know how to use ADB right?
virus54 said:
Sorry for this silly question but what the difference between echo or cat?
I think I will be on the first way because I don't really know how to use ADB right?
Click to expand...
Click to collapse
Lol. Cat would be better in this case. And I did suggest this method with the preface "If you feel intensely nerdy you could ..."
ADB is easy though
Can you plz give me a guide with ADB?
I will try your way but there is may be something bad with my phone?
Download this (it's the ADB tools) to a known location. Then extract the zip to a known location. Open a command window in that location (for the sake of this guide: C:\ADB) So open CMD (start, run, type CMD, hit enter) In CMD type "cd C:\ADB". Plug your phone into the computer (make sure you're using CM). Debugging mode should be on (you'll get a notification in the status bar of your phone). Type "adb shell". You'll end up with a "#" and nothing else (if you get a "$" just type "su" and hit enter, and on the phone's screen accept the Superuser request).
Execute your comands
TheGrammarFreak said:
Download this (it's the ADB tools) to a known location. Then extract the zip to a known location. Open a command window in that location (for the sake of this guide: C:\ADB) So open CMD (start, run, type CMD, hit enter) In CMD type "cd C:\ADB". Plug your phone into the computer (make sure you're using CM). Debugging mode should be on (you'll get a notification in the status bar of your phone). Type "adb shell". You'll end up with a "#" and nothing else (if you get a "$" just type "su" and hit enter, and on the phone's screen accept the Superuser request).
Execute your comands
Click to expand...
Click to collapse
Thank you.
I succeed
what else I can do with ADB?
virus54 said:
Thank you.
I succeed
what else I can do with ADB?
Click to expand...
Click to collapse
Loads
10chars
thank you with your help i did it
virus54 said:
thank you with your help i did it
Click to expand...
Click to collapse
Sweet.
twitter.com/TheGrammarFreak
virus54 said:
I opened in a text editor but it doesn't show me nothing
I use root explorer
write "ipv6" quotes or not?
Click to expand...
Click to collapse
I guess I'm kinda late on the response, but yeah, it's supposed to be blank. And then all you have to to is add in "ipv6", WITHOUT the quotes, and then save and exit. But TGF's method works well too, didn't know to do that.
No problem I will look and learn too
better that i will enter as a 'Hex editor'?
because on "text editor" I cannot edit

[Q] Who can tell me how to run command?

I read a thread,it's DT for Cypress.
It says:
- run the following command
Code:insmod /system/lib/modules/ax8mt.ko
But I don't know how to run the command.Who can tell me what should I do?
sorry for my bad English and thanks for answering
Gourcuff said:
I read a thread,it's DT for Cypress.
It says:
- run the following command
Code:insmod /system/lib/modules/ax8mt.ko
But I don't know how to run the command.Who can tell me what should I do?
sorry for my bad English and thanks for answering
Click to expand...
Click to collapse
i think it says u run it using dmesg in shell
EDIT:
use command prompt
go to ur adb folder
type in:
adb shell dmseg
and don't forget to write the "su"
_________________________________________
end line -------> correct me if I'm wrong...
thanks for answering and I have solved the problem.
or if you want to be easy
using adb,, on page 3 u can see it
Please help me... I've got a similar problem.
I just enabled multitouch for my x8.
In order to enable it I use these commands at terminal emulator:
su (enter)
insmod /system/lib/modules/ax8mt.ko (enter)
I don't want to make multitouch running on startup (so I haven't changed my hw_config.sh) because of an annoying bug... the screen shuts down after several seconds as if I weren't touching it at all!
Can I create a *.sh file with these commands (su and insmod...) so that I can run it everytime I need to enable multitouch instead of writing them in the terminal?
I created and executed (with root explorer) a *.sh file with these exact lines but it didn't work. What did I do wrong? Should I write it differently in the *.sh file?

Pershoot Kernel question

Hi guys,
could anyone explain me please how to enable usb charging with Pershoot´s Kernel (boot-cm_2636.4_ux-oc-xtra-vfpv3-d16_fp-101811)?
I rly don´t get this:
adb shell echo 1 > /sys/class/power_supply/battery/force_usb_charging
Thank you very much.
Sure bud,
The script you posted is meant to be run in a command prompt using the tablet's ADB interface. To access this you need the Android SDK (that is the tool for app development) installed on your PC. You can look up how to do this all over the interweb.
To make your life easier though, download a terminal emulator app from the Market, there are plenty of free ones. Once you've done that open it and run the script as follows
su
echo 1 > /sys/class/power_supply/battery/force_usb_charging
The "su" command gives you root access just as "adb shell" would in command prompt.
The catch is the script is not persistent after reboot. So you will need to run it again if you reboot the tab. This doesn't really bother me cause I only use it for charging in the car and it takes like 30 seconds to type in the script.
Enjoy!
Thank you very much!
Now it´s working.
FillTheVoid said:
Sure bud,
The script you posted is meant to be run in a command prompt using the tablet's ADB interface. To access this you need the Android SDK (that is the tool for app development) installed on your PC. You can look up how to do this all over the interweb.
To make your life easier though, download a terminal emulator app from the Market, there are plenty of free ones. Once you've done that open it and run the script as follows
su
echo 1 > /sys/class/power_supply/battery/force_usb_charging
The "su" command gives you root access just as "adb shell" would in command prompt.
The catch is the script is not persistent after reboot. So you will need to run it again if you reboot the tab. This doesn't really bother me cause I only use it for charging in the car and it takes like 30 seconds to type in the script.
Enjoy!
Click to expand...
Click to collapse
how do you make it stick ?
I ask this question in another forum and the result was, it´s not possible (maybe wrong).
By the way, after I enable USB charge, my notebook can´t find my Tab anymore.
Mondfahrer said:
I ask this question in another forum and the result was, it´s not possible (maybe wrong).
By the way, after I enable USB charge, my notebook can´t find my Tab anymore.
Click to expand...
Click to collapse
I found a way to very easily get it running.
download terminal emulator.
Go to system preference of terminal emulator and there is an option to enter initial command to after you start terminal emulator.
so just type in:
su - root
echo 1 > /sys/class/power_supply/battery/force_usb_charging
Whenever you start teminal emulator, it will enable usb charging
I use this app to NTSF http://forum.xda-developers.com/showpost.php?p=13337600&postcount=6

Installing twrp using powershell

Flashed the factoy image 6.0 fine using the batch file.
But now need to flash twrp, i knew how to do it with a cmd prompt but windows updated to 10 and it's now [email protected]#$% F*&^%#%$ power shell so fastboot doesn't work.
Went into settings and clicked off power shell to switch back to cmd prompt, doesn't work,
So any idea how i can flash my twrp again!
[email protected]#$ windows and their power shell B*^^%$#%.
trsix said:
Flashed the factoy image 6.0 fine using the batch file.
But now need to flash twrp, i knew how to do it with a cmd prompt but windows updated to 10 and it's now [email protected]#$% F*&^%#%$ power shell so fastboot doesn't work.
Went into settings and clicked off power shell to switch back to cmd prompt, doesn't work,
So any idea how i can flash my twrp again!
[email protected]#$ windows and their power shell B*^^%$#%.
Click to expand...
Click to collapse
Cmd should be here
C:WINDOWS\system32\cmd.exe
You don't have it?
you cant use powershell for this. try this fix to bring back cmd on context menu https://www.windowscentral.com/add-open-command-window-here-back-context-menu-windows-10?amp
Tool
Fixed.
Used hard91's tool
https://forum.xda-developers.com/moto-g4-plus/development/motorola-moto-one-tool-v1-0-t3397163
trsix said:
Flashed the factoy image 6.0 fine using the batch file.
But now need to flash twrp, i knew how to do it with a cmd prompt but windows updated to 10 and it's now [email protected]#$% F*&^%#%$ power shell so fastboot doesn't work.
Went into settings and clicked off power shell to switch back to cmd prompt, doesn't work,
So any idea how i can flash my twrp again!
[email protected]#$ windows and their power shell B*^^%$#%.
Click to expand...
Click to collapse
Right click on start button, click cmd as administrative, direct to file loaction and you are set to flash.
nope
That"s ok if you know what to type for directory etc but a lot of people don;t
was easy when you could shift/mouse click to open the cmd box in the adb folder
DgnrtnX said:
Right click on start button, click cmd as administrative, direct to file loaction and you are set to flash.
Click to expand...
Click to collapse
With the latest Win10 update, that brings up PowerShell. You have to type cmd in the search box to open a command window.
lmacmil said:
With the latest Win10 update, that brings up PowerShell. You have to type cmd in the search box to open a command window.
Click to expand...
Click to collapse
The program itself is here, every time, since decades https://forum.xda-developers.com/mo...g-twrp-using-powershell-t3727761/post75019737
Fastboot doesn't work with powershell? Heck I use powershell almost every week flashing kernels, recovery's, etc.
lmacmil said:
With the latest Win10 update, that brings up PowerShell. You have to type cmd in the search box to open a command window.
Click to expand...
Click to collapse
Yes, but thats when only if you turn the option on from task bar or setting itself which refers as 'replace cmd with powershell'. Just turn it off and as i said you are set to go.
---------- Post added at 11:24 AM ---------- Previous post was at 11:14 AM ----------
trsix said:
That"s ok if you know what to type for directory etc but a lot of people don;t
was easy when you could shift/mouse click to open the cmd box in the adb folder
Click to expand...
Click to collapse
Ok so first of all, start cmd then for instance you are set for c drive and your files are in d drive the type "d:", then go to file manager and locate the file Location. Copy the location from address bar and paste it in cmd and cut the drive name from pasted line hit enter.
Type the regular command for flashing twrp and thats it.
---------- Post added at 11:51 AM ---------- Previous post was at 11:24 AM ----------
So there is a lot of confusion with regards with how to use cmd commands
Herr is a guide from YouTube how to replace powershell with cmd in context menu
Link : https://youtu.be/Ro7vJI6qqEU
DgnrtnX said:
Yes, but that's when only if you turn the option on from task bar or setting itself which refers as 'replace cmd with powershell'. Just turn it off and as i said you are set to go.
Click to expand...
Click to collapse
Apparently Poweshell is turned on by default because I never changed it. I have now changed it back. Thanks.
blowingoff said:
you cant use powershell for this. try this fix to bring back cmd on context menu https://www.windowscentral.com/add-open-command-window-here-back-context-menu-windows-10?amp
Click to expand...
Click to collapse
I flashed stock September security patch rom with PowerShell without a single problem by the way

Categories

Resources