yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab Q&A, Help & Troubleshooting] TomaszM1:
If I have nothing in /system/bin/... is mean that ROM what I'm running don't have that possibilites?
[Galaxy Tab Q&A, Help & Troubleshooting] heyI9000:
Cm 10.1.2

Hi,

i have an samsung galaxy s i9000 with a custom rom CM 10.1.2.

do you know what file uses Cm 10.1.2 instead of playlpm, because this file it is not present on the /system/bin/directory

Thanks in advance

Regards
[Galaxy Tab Q&A, Help & Troubleshooting] geheimke:
Hi,

I have the same problem with the mini 2 with cm 10 can't find this file playlpm

Thanks in advance if some find a solution ;)

Regards
[Galaxy Tab Q&A, Help & Troubleshooting] victorbrca:
It also doesn't work for me on my Galaxy Tab GT-P1000 with CM10. I can execute the script, which reboots the device, and unplugging the power with the device on reboots it.

I even tried setting the script to use 'toolbox restart', but that didn't do it.
[Galaxy Tab Q&A, Help & Troubleshooting] stadros83:
If someone knows the solution to make this work with Cyanogemod I want it :D !!
[Galaxy Tab Q&A, Help & Troubleshooting] TomaszM1:
hello

If I have nothing in /system/bin so I am looking for any ROM which one havethis files, or which one work with application Auto Boot on charge https://play.google.com/store/apps/details?id=auto.boot

Currently I have custom Hellkat ROM, but no files and the application won't work as well.

My tablet is permanently mounted in the car and I need to run autostart during charger plug. I want put top cover but after this will have no access to power button.

Any one knows sustom Rom to manage this?
[Galaxy Tab Q&A, Help & Troubleshooting] hugoinfante83:
Hi All,

Do you know how to make this happen to other brands?

I am looking for this feature for my LG Lucid 2, but so far I didn't find anything. Even in the play store, all the apps only works with samsung.

Thanks

Hugo
[Galaxy Tab Q&A, Help & Troubleshooting] caiocost:
I did all the steps and tried all the playlpm variables and nothing happens after the battery screen =(

when i put the "sleep 20" 20 seconds after i plug the ac on, it just vibrates, then nothing =(

im trying to do that on a samsung galaxy y

Anyone can help?? :rolleyes:
[Galaxy Tab Q&A, Help & Troubleshooting] ghz01:
Thanks!!!

This one did it for me, I've just installed the GROM BT audio to my stereo, next i will be installing the tablet :cool:

Thanks !!!
[Galaxy Tab Q&A, Help & Troubleshooting] clkasd:
solution

The solution above does not work on some devices.All you need to do is find the file you need(battery animation).In my case I was using galaxy s4 and the file name was different but its job is the same.It was "lpm" so I have changed this file and device started when charger connected.

You can find detailed info at http://developwear.com/blog/2014/07/03/autobootstart-android-when-charger-is-connected//
[Galaxy Tab Q&A, Help & Troubleshooting] dudupeters:
I've tested this solution (/system/bin/lpm) in tablets GT-P530, GT-P531, GT-P535 and Galaxy S5. Works great.
[Galaxy Tab Q&A, Help & Troubleshooting] blatec:
Tested with Galaxy tab 4

Hi

I have changed the /system/bin/lpm file in my Galaxy Tab 4 as described for /system/bin/playlpm.

Now it boots on charge, but in recovery mode!!

any idea?

best regards

blatec
[Galaxy Tab Q&A, Help & Troubleshooting] Max6891:
solution for non-samsung devices?

Hi evertybody,

I have a simple chinese low cost nextbook tablet(Android 4.2.2) which I want to make auto boot on external power plug in. It doesnt have such file in system/bin dir but I guess this file could have another name or it could be nested in another directory so I want to filter files in order to find the right one. The problem is that I dont know how it should look by default.

Any advice would be appreciated.
[Galaxy Tab Q&A, Help & Troubleshooting] clkasd:
Are you sure that your device is rooted ?
[Galaxy Tab Q&A, Help & Troubleshooting] Max6891:
Yes. I have rooted it via cydia impactor and it has auto installed SuperSU (Chainfire) . I have also checked root status via different root checkers from gplay.

I have found a way of auto power on when plugged in - it requires to

1) run adb reboot-bootloader

2) run fastboot oem unlock

3) run fastboot oem off-mode-charge 0

I have tried doing it manually and through cydia impactor but in both cases it the command thread for #2 and #3 seems to be in an infinite sleep - just displays "..." in command line shell and cydia impactor simply gets frozen for a couple of minutes then throws timeout exception

In regards to the adb drivers and etc - device is visible through both 'adb devices' and 'fastboot devices' commands. Real mystery...
[Galaxy Tab Q&A, Help & Troubleshooting] Sveins:
Problem editing lpm file on S5

Hello, I have a rooted S5 and open the lpm file, deleting everything in the file and enter the boot info from above. The problem is that I get an errormessage when I am trying to save the file, so I cant save it. Im using this app to edit: ES file explorer.

Graithful for a solution :)
[Galaxy Tab Q&A, Help & Troubleshooting] Sveins:
Recovery mode

Same problem here, booting in recovery mode, did you find a solution to this?
[Galaxy Tab Q&A, Help & Troubleshooting] Basher51:
How about you try with just '/system/bin/reboot' , just this one line of code?

I was testing on my MTK device with

#!/system/bin/sh

su

/system/bin/reboot

and was not able to achieve bootup when my device was shutdown and docked.On using the above one line of code,made my tab boot up.So try that,may be it might help you.
[Galaxy Tab Q&A, Help & Troubleshooting] roolis:
hey mate,i have tab 2 GT-P3100 7.0 with 4.2.2,i am going to install it in my car instead of radio,but need auto boot on,is this the only method you found working?i cant find NoMoarPowah anymore,didnt try to edit file yet,want to get everything before starting,any help?
[Galaxy Tab Q&A, Help & Troubleshooting] Basher51:
Hi,

1) I have an MTK device for which the battery charging file is called ipod.I included the below code in it.

#!/system/bin/sh
sleep 20
/system/bin/reboot

However, my tab didnt boot-up (when it was shutdown and docked),instead it was just stuck at the charging logo.I then used just

/system/bin/reboot

and found that my tab was booting up.This means when I used the first code,it was getting stuck at

#!/system/bin/sh

.What could be the reason?

2) When I use:

sleep 20
/system/bin/reboot

my device does not wait for 20 seconds,instead it reboots instantly(irrespective of the value of the sleep I give).What is it that I'm doing wrong.

Pls assist.Thanks !

---------- Post added at 03:42 AM ---------- Previous post was at 02:47 AM ----------

Found the reason my commands were not executing.

The reason was because,I was editing on my notepad++ on windows,until I came across this answer on SO -

" Make sure your text editor is not putting a /r /n and only a /n for every new line. This is typical if you are writing the script on windows.

Use notepad++ (windows) and go to edit|EOL convention|UNIX then save it. If you are stuck with it on the computer, i have read from here [talk.maemo.org/showthread.php?t=67836] that you can use [tr -d "\r" < oldname.sh > newname.sh] to remove the problem. if you want to see if it has the problem use [od -c yourscript.sh] and /r will occur before any /n. "

So I changed my convention as per the above answer and ran my code and got the desired result.
[Galaxy Tab Q&A, Help & Troubleshooting] Basher51:
Adding sleep is a nice idea. However,when I add a sleep of say 600(10 min sleep), in this case I see that the screen remains on for the whole 10 minutes before it boots up.How do I turn the screen off during this 10min time gap? Pls assist.Thanks !
[Galaxy Tab Q&A, Help & Troubleshooting] mannyy:
Same problem here, booting in recovery mode in TAB PRO 8.4 !!!! :crying::crying:
[Galaxy Tab Q&A, Help & Troubleshooting] jitu89:
code Doesn't work for Samsung GT-S5282

Pre-Information

Phone Model:Samsung GT-S5282 with Android 4.1.2

root status :Roote with Recovery Method and installed superSu

Hi i have edited this code

#!/system/bin/sh

/system/bin/reboot

In my /system/bin/playlpm file and also set the permission to 775 .but phone did not restart when plugged in with charger

Please can any one tell which fill to edit to restart the phone when charger plugging in Samsung GT-S5282 Model

I have try ed to search on Google but did not find any thing Working on my Model Kindly Help

thank You
[Galaxy Tab Q&A, Help & Troubleshooting] baconismidog:
Galaxy Tab 3 -rebooting into recovery

I do not have the playlpm file but I found the lpm file. I altered as described (with the 20 second pause) and it reboots after 20 seconds - into recovery.

I've looked at all the files in /bin with similar sizes to lpm and none of them seem to be what I'm after (some sort of loop referring to an image).

Any hints would be appreciated.
[Galaxy Tab Q&A, Help & Troubleshooting] Dagon84:
Hi, on all my device i'm missing the playlpm and lpm file.

I would like to have this feature on the Samsung Galaxy Tab 2 7" 3g - OmniRom 4.4.2, but also on my Lenovo p780 [MTK] - AOSP 4.4.3 and on the Samsung Galaxy Mini 2 - CyanoGenMod 11 this file are missing.

I have a file called PM, but i'm not sure if is this one that i'm looking for or not.

Any help is appreciate.
[Galaxy Tab Q&A, Help & Troubleshooting] imdm2013:
Hello,

I am working on a research project in which I need my phone to turn on when when connected to a charger. I came across your work and went ahead and rooted my phone in order to access the system folder. I am using an HTC evo 4g, which does not have a playlpm folder nor anything with lpm in the title. I am trying to find which file to replace. which leads me to my question; how were you able to find that the playlpm folder was the folder you needed to modify?

Thank you for your help!
[Galaxy Tab Q&A, Help & Troubleshooting] daveyp225:
my galaxy s3 also reboots into recovery like many others here. so far no fix i guess
[Galaxy Tab Q&A, Help & Troubleshooting] adrian.aitken:
See Basher51's post above - the file you want to change is 'iPod' - works on my Lenovo S6000 and remember to click the Thanks button on his post.

Many thanks

Adrian
[Galaxy Tab Q&A, Help & Troubleshooting] jla59:
I have a Huawei U8681 with custom CWM recovery and it was also going into recovery after I replaced my charging binary with the suggested script. I simply added another newline "\n" at the end of the reboot command and then the reboot was normal. On the Huawei U8681 and U8680 the charging binary is called "charge"

So to create the script on the U8681:

printf '#!/system/bin/sh\nreboot\n' > charge
[Galaxy Tab Q&A, Help & Troubleshooting] daveyp225:
i tried this and also tried three different recoveries. Philz, CWM 6.x, and CWM Touch 5.x. Still rebooting into recovery. Thanks anyway. Although im not sure where you are putting this script, im just replacing the lpm file
[Galaxy Tab Q&A, Help & Troubleshooting] akatarmo:
Hi guys.

I also need my Samsung S3 (Android 4.3) starst when plugged in. But this code does not work for me.

In system/bin/playlpm

Code:

#!/system/bin/sh

/system/bin/reboot

Someome with Samsung S3 has gotten it to work?

Thanks !

---------- Post added at 06:48 PM ---------- Previous post was at 06:01 PM ----------

I answer myself.

I was editing the file from the phone with the ES Editor. But I accepted the recommendation of Basher51 (post 45) and download the Notepad ++. When you save the file in

UNIX format

, the miracle occurs !!!

Now my S3 starts when external power source is plugged. Thanks mdm2013, thanks Basher51 !!!
[Galaxy Tab Q&A, Help & Troubleshooting] cbone85:
need help

Can anyome explain how to find the playom file? Ive tried on my galaxy tab 3 with ROM Toolbox but im not sure how to open playpm and then where the code is....so lost
[Galaxy Tab Q&A, Help & Troubleshooting] akhats:
Could you figure out how to auto boot your htc phone?

Could you figure out how to auto boot your htc phone? I have HTC One S and I want it to auto boot when connected to charger?

t
[Galaxy Tab Q&A, Help & Troubleshooting] seyon:
Samsung GIO S5660

Hi!

I'm looking for doing just the same thing by using a Samsung GIO.

My purpose for that is using sensors, gps and gsm for turning the phone in a advanced alarm+gps locator (and wifi enabled ap just to detect the position) to be incorporated in a electric bicycle. This device will be powered by the sun. :)

But I really do need this feature, to boot up the device when is being charged.

I've tried all the methods by using fastboot or to change the charging animation, it doesn't exist on this device, and I've tried some alternative roms.

So, if someone can help me on archieve this project, I'm sure that I will donate something :)
[Galaxy Tab Q&A, Help & Troubleshooting] baconismidog:
Airplane mode to the rescue

I ended up not needing this feature. I'm using a kyocera hydro and I just did the following. Lets assume that step 1 is turn it on, step 2 is turn it off and step 3 is don't waste a ton of battery.

I'm using it for a speedometer in my truck, so I'm using DigiHud Pro and it has a setting to turn on a power connected. So, that's step 1. To turn it off when I turn the truck off, I just push the power button (quick - to make it sleep not a real long press to turn it off) - there's step 2. For step 2 you can also use AutoSleeper but your mileage may vary, it doesn't work well on my hydro but it worked fine on my Galaxy S2. Now you're probably wondering how this helps you - you're trying to save battery.

The phone is on airplane mode. That's step 3.

Airplane mode doesn't necessarily turn off GPS. It kills the cellular carrier and wifi (although you can turn that back on if you want to) but after I tried airplane mode I realized that 90% of the battery usage is communicating / keep-alive signals / whatever with the carrier.

I can leave the truck for weeks at a time and the battery won't die. Airplane mode is where it's at if you want massive battery life and don't need/want to use cellular.

So, you can see from above that it seems that apps themselves can perform actions based on the condition charging/not charging (DigiHud Pro certainly can and it's AutoSleeper's only function). Airplane mode can be circumvented also since it's active on my phone but GPS is still alive and kicking. Not sure what you're trying to accomplish but you may want to venture into creating an app on your own. I've had really good luck contacting app developers from the Play Store. They're usually cool dudes by and large and I'm sure the AutoSleeper or DigiHud folks would give you a big hint on where to look to hook a feature into the charging/not charging hook.

Digihud Pro: id=org.mrchops.android.digihudpro

AutoSleeper: id=com.as.powerchecker

Airplane mode: Toggle Air: id=com.schwimmer.andrew.toggleair

(I'm too new to post links, so search the play store for those ids
[Galaxy Tab Q&A, Help & Troubleshooting] wizdaz:
Hello

I have a problem with the application TWRP - I did root for my Samsung Galaxy Tab 4 7'00 SM- T230 and modified the lpm file as described here in the forum. Everything works nicely . I plug charger in the tab and the T230 starts up but does not start normally only comes into TWRP screen . What to do to run normally ? I have uploaded the root and Prism - Barebones - T230 -NU - V4.0 mod. Someone tell me what to do to execute a device normally as after pressing the power on ??

Thank's alot for help

This is a movie what i mean:

youtu.be/DbiR0dxEJyw
[Galaxy Tab Q&A, Help & Troubleshooting] Gibbz1:
ive posted here too:

http://xdaforums.com/galaxy-s2/themes-apps/app-nomoarpowah-charging-screen-t1167608/page29

Does anyone know how to get this working on cyanogen mod 12.1?

Theres no lpm or playlpm, but there is a custom boot animation... Where is the file located however??
[Galaxy Tab Q&A, Help & Troubleshooting] TeJotaBe:
I have the same question!
[Galaxy Tab Q&A, Help & Troubleshooting] meheme:
hi. i m using lenovo a3000. who is help me for this topic :)
[Galaxy Tab Q&A, Help & Troubleshooting] portsample:
Yep, I am working through this problem (trying to boot Android on USB adapter pug in) as well on a Samsung "cousin" device, the S4 Active (Jactivelte). I have a post on the CM forum. There appears to be nothing on StackOverflow other than the obsolete solution already listed here. Has anyone else had luck with this?
[Galaxy Tab Q&A, Help & Troubleshooting] tronoftroy:
boot to recovery FIX

Here is the Fix to get the script working properly.

For me im using the lpm file on my i545 ( S4 ).

so we need to set the permissions for the file.

chmod 0755 /system/bin/lpm

chown root.shell /system/bin/lpm

then all works as expected. :)
[Galaxy Tab Q&A, Help & Troubleshooting] wizdaz:
hi its dont work in samsung galaxy tab 4.

i put im my root tab 4 code:

mount -o remount,rw /system

and then i can put chmod 0755 to file lpm

next i change to root.shell permision file lpm but when i connect my charge in tab4 he start again TWRP bootloader...

lp - l /system/bin/

i have:

-rwxr-xr-x root shell 35 2016-02-10 22:39 lpm
[Galaxy Tab Q&A, Help & Troubleshooting] 13E7:
sony xperia

anyone has an idea how to make a sony device to boot on charge? there are no playlpm,lpm or ipod files. I want to install my z ultra into a nissan 350z as a tablet
[Galaxy Tab Q&A, Help & Troubleshooting] alvinhobh:
Animation file name for LG G pad 7.0

Like many of the previous post, my table also does not have a lpm or playlpm folder so I can modify the startup animation to auto boot the device when connected to the charger.

Tablet : LG G pad 7.0 LTE

Anyone knows the file name for the start up animation?

Thanks
[Galaxy Tab Q&A, Help & Troubleshooting] portsample:
charger.c

Like all of the above posts, I have had zero luck in getting my device (Samsung S4 i9295) to power-on when plugged in (boot when docked) while running any of the available non-Samsung based custom ROMs.

I have tried the following ROMs with no luck,

-Cyanogenmod v10.1 through 13,

-SlimRom, Jb through Lp

-AOSP 4.4.4.

These do not have /system/bin/lpr or similar files.

The following ROMs DO have LPR

-StockyROM

-WizCyan v7

Both StockyROM and WizCyan are based significantly on the Samsung ROM whereas CM, SlimRom and AOSP are manufacturer generic.

The following GitHub project addresses initiating automatic booting on docking at the kernel level,

https://github.com/shawe/android_system_core_bettercharger/blob/master/README.md

It appears that the kernel file being modified in the above project is,

/system/core/charger/charger.c

If anyone out there is interested in doing kernel tweaking I suspect that that may be where a solution to this problem lies.

My current solution is using a rooted stock 5.0.1 ROM for the i9295 with the following file and code replacing the compiled /system/bin/lpm file and the compiled file renamed to lpm.orig

#!/system/bin/sh

/system/bin/lpm.orig &

while [ true ]; do

sleep 1

ps | grep lpm.orig && sleep 3 && /system/bin/reboot

done
[Galaxy Tab Q&A, Help & Troubleshooting] iago_00:
Got an MTK device (Lenovo s5000h) running Android 4.4.2

Tried every script on this thread on the ipod file (set correct perms), but every time the tab gets stuck on the "Lenovo powered by android" screen and does not reboot.

any help ?
[Galaxy Tab Q&A, Help & Troubleshooting] caiocost:
Having the same problem here mate, stuck on alcatel logo, it used to work by simply replacing the lpm file for the reboot file on samsung models, but is not working on those mtk models :crying:
[Galaxy Tab Q&A, Help & Troubleshooting] jxtan11:
just add one step

rename 'reboot' file

copy 'toolbox' again, and rename to 'reboot'

then it should be fine.

work for new mtk android, vf695
[Galaxy Tab Q&A, Help & Troubleshooting] Slider-Override:
Any news on the CM13 ? Don't see the files in the folder :(
[Galaxy Tab Q&A, Help & Troubleshooting] BobbyDev:
Need Help

Hi jxtan11,

I have the Insignia Flex 8" tablet from Best Buy (NS-P16AT08) which has the MTK8127B chipset and Android Lollipop 5.0. I would like it to turn on when plugged in to the wall charger. It looks like you are able to do this with a new MTK Android device!

I have looked in system/bin (with Root Explorer) and cannot find any file named playlpm, lpm, ipod, etc. Do you have any hints you can give me for how to find this file? Any help would be appreciated!
[Galaxy Tab Q&A, Help & Troubleshooting] Slider-Override:
same on CM13 iam sure they change again the filename :(
[Galaxy Tab Q&A, Help & Troubleshooting] BobbyDev:
Found the File!

I figured out the file name! It is called "kpoc_charger".

I hope this can help anyone using the Insignia Flex 8" tablet from Best Buy (NS-P16AT08).
[Galaxy Tab Q&A, Help & Troubleshooting] Slider-Override:
How you find this file?

Have a CM13 rom and have no of this files.

Is the original file a gif animation, or is there some code in it?

Than please somebody send me his original file, perhaps I can copy all my files to my PC, and check if any of my files has the same code in it like yours, to find the right?

Thanks
[Galaxy Tab Q&A, Help & Troubleshooting] abhverm:
For Lenovo A2010 phone,following worked:

1. Use file manager phone app from playstore like Total commander(on rooted phone) to goto folder /system/bin/

2. Copy file kpoc_charger and paste it there as kpoc_charger.bak

3. Now edit the original file kpoc_charger using total-commander, replace all lines with following code:

#!/system/bin/sh

/system/bin/reboot

4. Save it, goto properties and change UID:0 root, GID:2000 shell and permission as 755 (same as properties of other files in /system/bin folder).

5. Now shutdown phone and plug to charger.

6. Bazinga!!!! battery icon shows for a sec but phone sucessfully boots into os.
[Galaxy Tab Q&A, Help & Troubleshooting] pkk_84:
Boot on Charge Help needed for S2

Hi There, I'm trying to accomplish this in my SG S2 for use in car. I edited the file with Notepad++ , edited it as EOL Conversion --> Unix/OSX format and save it. However I ended up with no success.

I remove whole text in playlmp and replaced with the above commands (except the above commands nothing is there inside that script). Am I doing something wrong? Your help is much appreciated

Thanks

pkk
[Galaxy Tab Q&A, Help & Troubleshooting] Soft Dev:
Samsung s4 mini (model SPH-L520)

Did not work on Samsung s4 mini (model SPH-L520)

Any help please.
[Galaxy Tab Q&A, Help & Troubleshooting] choder:
AWSOME! Works now!
[Galaxy Tab Q&A, Help & Troubleshooting] Tormios:
Thanks,

It worked on Samsung S4 Mini i9190 (rooted stock)

just use playlpm file instead of lpm

Nothing else worked, only this solution
[Galaxy Tab Q&A, Help & Troubleshooting] lvcmenezes:
Hi,

I am also having the same problem all of you had, but for me it's quite different. I have a HUAWEI MediaPad T2 10.0 Pro and none of the mentioned files are contained by my device >.< Do you have any ideas in how I can find it? I have tried already to look for .rc files in order to find some "service" that could be related with such a file, no success so far. I have also tried to use fastboot ohm-off-mode charge but it says "INVALID COMMAND", how can I get it working for my device?

Thank you all in advance! =))
[Galaxy Tab Q&A, Help & Troubleshooting] hoezny:
I have Lenovo P70a (kitkat), I'm interested in this topic and I want to apply it in my Lenovo.

So far, I have identified the battery animation is in the kpoc_charger and Ipod files. kpoc_charger is responsible for controlling battery charging animation when quick boot feature is disabled, and ipod is responsible for controlling battery charging animation when quick boot is enabled. I've edited the kpoc_charger files as described in this thread (permission, notepad++, all script) but no results. But when I edit the ipod files and use quickboot feature it worked! It rebooted after the phone shutting down directly even when I didn't connect it to charger. Is there any way to solve this? I suppose it has to be some code to detect voltage from the charger before executing the reboot command. But honestly I don't know anything about coding. Anyone has an idea? thanks before.