Charger Enable/Disable Control File on Stock Firmware? - LG V40 Questions & Answers

I am posting here rather than in general questions because it seems much more likely that folks working with kernels, ROMs, and the like will know this. Sorry if it really should be under general questions.
I want to use this app <https://play.google.com/store/apps/details?id=com.slash.batterychargelimit&hl=en> (or I will do it myself using Tasker) to limit the amount of charging of my phone to 80%. The app works (and my own Tasker routine works) on my old Samsung Note 3 phone by writing a 1 or 0 to the file /sys/class/power_supply/battery/batt_state_mode. This prevents/enables the phone to accept power from A/C for charging the battery.
Obviously, not all phones have something like this or they use a different file name/path. The above app searches for and finds the file /sys/class/power_supply/battery/battery_charging_enabled on my V40. It seems like this would be the file to use based upon its name and path. But changing the value contained in the file does nothing expected. I have monitored its contents and it shows 1 until the phone reaches 100% and then it turns to 0.
So my question is, does anyone know if my V40 using stock firmware have a file to allow this app (or my Tasker routine) to turn charging on/off? Thanks for any pointers.
Answered myself:
After some significant searching and trial/error I found that the correct file for my LG V40 (and perhaps other LG models) - at least for the USB charger (no idea about wireless) - is /sys/devices/platform/lge-unified-nodes/charging_enable: 1 (enabled), 0 (disabled).
A good source of files to check on is shown here <https://github.com/VR-25/acc/blob/master/acc/switches.txt>. This is documentation for a Magisk module called Advanced Charging Controller (acc) that does basically the same as this app. I am not endorsing this as I have not tried it. Indeed, I am not using the mentioned app either. I have rolled my own using Tasker. No need to have yet another service running when Tasker's is always running on my device.
Cheers

Related

[Q] Stock A855, SuperOneClick'd and Droid Overclock

perhaps somebody here could be tolerant enough to assist or direct me to concise clear info to such a likely passe situation.
Phone again, stock from VZW and fully updated.
Barnacle installed from market.
I have a few questions;
1)Superoneclick seemed to only install "superuser" on my phone. Does this mean the busy box and abd things, of which I have no idea what to do with, is only accessible via my win7 64 bit pc while the phone is connected to it via usb?
2)How do I optimize this phone with stock rom and remove "bloatware" as well as eliminate intrusive programs? Are there any threads which ID these as well as their functions?
3) Jrummy Droid Overclock installed, several versions in fact, and the best I could do was make the phone extremely laborious and finally reverted back to stock settings before uninstalling. I did have to click the "experimental" box to make it able to scale the stock rom.
Any thread or info as to some failproof settings to make this stock thing work much better/faster?
4) Can this phone, usb tether the data connection without any paid apps or limitations regarding secure sites and such?
Interestingly enough, I'm finding the search functions on this forum to be impossible on my handheld and just about the same from my pc. From the handheld, it wanted me to assemble pix which my touchscreen or keyboard didn't seem to allow.
From the pc, 'no matches found' or something to that affect.
Also, when I was having problems recalling my login info, had almost given up deciding instead to reregister, I got a denial message based on having a verizon wireless IP. Weird.
I'm rereading the beginners info and it would be nice to be able to simply make my stock rom'd droid better.
Feel free to tell me if I'm pissing in the wind and need to just do different roms and or kernals. However, I'd like to just keep it simple for now.
You are able to download Busybox straight from the Android Market: https://market.android.com/details?id=stericson.busybox&feature=search_result
You can tether your phone to create a wireless hotspot, but I'm not 100% sure about USB tether.
skadude66 said:
You are able to download Busybox straight from the Android Market: https://market.android.com/details?id=stericson.busybox&feature=search_result
You can tether your phone to create a wireless hotspot, but I'm not 100% sure about USB tether.
Click to expand...
Click to collapse
Yes and thanks, I snagged barnacle for that. It works fine although I'm either too green to make it secure, or the WEP stuff is broken.
That is why I'd like the option to have a more secure hardwire tether.
I know I can do pda.net and some other apps, it seems to me that it should be able to do that perhaps just with some tweaks.
So when I extracted superoneclick on my pc, I see busybox and such in that file. I just did the one click and nothing else, not even on my phone.
It is interesting how fast such basic topics become inundated with miles of confusing info to bewilder a virtual computer twit.
It looks like what you want to do is basically create a wireless hotspot with your phone? Because I use Wireless Tether for Root Users and I am able to encrypt it and set up a secure connection.
Here's what I pulled from the Barnacle website:
How do I use WEP?
Barnacle support 40 and 104-bit WEP. In Settings find Wireless Security and enable WEP, then type in the key. For 40-bit WEP, type in 5 ASCII characters or 10 hex digits. For 104-bit WEP, type in 13 ASCII characters or 26 hex digits. Passphrase is not supported.
Click to expand...
Click to collapse
skadude66 said:
It looks like what you want to do is basically create a wireless hotspot with your phone? Because I use Wireless Tether for Root Users and I am able to encrypt it and set up a secure connection.
Here's what I pulled from the Barnacle website:
How do I use WEP?
Barnacle support 40 and 104-bit WEP. In Settings find Wireless Security and enable WEP, then type in the key. For 40-bit WEP, type in 5 ASCII characters or 10 hex digits. For 104-bit WEP, type in 13 ASCII characters or 26 hex digits. Passphrase is not supported.
Click to expand...
Click to collapse
Phone Settings? "no "Wireless Security" to be found nor did I readily find anything to do with WEP under the Wireless sections.
Barnacle? Again, no "Wireless Security" section found. There is a "Wireless Encryption" settings section. I did enable it with the app stopped and set a five digit alpha code. Restarted Barnacle and my pc completely disregarded it, connected to it with no input required and the signal still shows as unsecured and public.
I'm pleased that it tethers, I would like to make it secure and I would also like to easily usb it to any laptop or pc sans having to load software on them unless said pc/device was older and didn't automatically recognize this phone, as this new win 7 pc did, where upon loading some drivers would be seem reasonable.
I'm not pc/droid knowledgeable enough to know if this is dreaming but, it seems reasonable that it's usb output could be toggled and be seen as a modem connection.
I'm sure it can, but people use Wireless tethering more than a physical USB tethering.
I've never actually used this, but I've heard of people using it when they need to tether via USB: https://market.android.com/details?id=com.mstream.easytether_beta&feature=search_result
Yes and thanks, I truly appreciate your efforts to help and your tolerance for my ignorance.
I am aware of those various usb tethering programs and I suppose my question is why must software be loaded on a device capable of seeing other usb plugged connections and run them 'plug and play'?
I'll see if somebody with barnacle can assist me with the WEP issue. I've tried it several ways and have had no success. Possibly related, my droid no longer will send MMS. It still receives them, just no longer sends. I wish I could say if that occurred after rooting or after attempting overclocking, but, it happened after one or both.
Wait, does the Easy Tether not require software to be installled on usb tethered device? I was sure it did and after reading the page, it doesn't mention it.
It's still bizarre that I can wirelessly tether now that soc rooted it, but I still have to buy an app to usb tether it, and I was pretty sure, install stuff on device to be tethered.
No problem, anytime!
Honestly, I don't know much about Easy Tether, I've heard about it, but have not delved much deeper into it.
What ROM are you using (if any)? I know that I had some issues with CM7 and a little bit less with Cronos right now, where I send a text message and it hangs with "Sending..." for hours at a time.
How much did you overclock your phone by? What vsel?
Sent from my Milestone using XDA Premium App
phone is stock other than being rooted
I used JRummy's Droid Overclock as it is supposed to overclock a stock rom'd A855 droid.
I tried several several many settings, mostly what was recommended, but none of them seemed to make it better, and if they did, I couldn't seem to make them stick upon rebooting.
Kept all attempts at or below 800MHz.
I'm sure it's my lack of understanding and likely there are some simple settings that will speed it up with just a few clicks as well as save thru a fast and speedy reboot.

[Q] Bluetooth Issues After Stopping Sixaxis Controller

Hey all, so I recently spent some time learning up on these awesome forums, and at least for getting started I decided to just modify stock 2.2, I have just really wanted to be able to play games using my ps3 controller on my nook so I thought the easiest path was to root using the Universal Rev3, and the Unknown Apps, at least to get me started. I have a bluetooth keyboard I also use with this setup for school. Okay so that's the upfront details.
My issue is that, while my bluetooth is connecting fine with everything before I run sixaxis, and my controller works (yay, i got what i wanted!) while I'm running the program, it's when I stop sixaxis and it restores my bluetooth (or says it does... or gets stuck and never says it does) my bluetooth simply can't be switched back on until after I reboot... I've completely stopped and disabled and cleared the cache on the sixaxis app... and nothing, still won't turn back on. Now this is a cadillac issue, my controller works, my keyboard works, but I just have to reset. The problem is that I know it shouldn't be this way and if it has to be, I'll survive, but if not I'd love a way to make it work right, or at the very least see if there's an option to... "respring" (I know that's an iphone thing I just didn't know if there was a faster equivalent to a reboot without having to completely turn it off and back on)?
Anyone else had this problem? Any thoughts? Any options? Thanks for your time and information, have a great day!
"t's when I stop sixaxis and it restores my bluetooth (or says it does... or gets stuck and never says it does) my bluetooth simply can't be switched back on until after I reboot..."
Obviously, its at the fault of the app, because otherwise (sixaxis not installed/used) bluetooth would function properly and no restart would be required.
Therefore, sixaxis is not ending support of the controller properly, re-enabling bluetooth support, or whatever its trying to do for the device, android version, or whatever its problem is in code.
Probably good to let the app's dev know about it and find out if they say anything.
Since root access is required, it definitely requires some deeper access to android (the deeper the more problems are likely to occur). Some code doesn't even work for all devices and they could have gone that route with their app knowingly - whether it was a necessary side effect due to the type of app they created or specifically because of a workaround of what google allows devs to do with android.
Either way it is often an app with problems as reviews show.
sandsofmyst said:
"t's when I stop sixaxis and it restores my bluetooth (or says it does... or gets stuck and never says it does) my bluetooth simply can't be switched back on until after I reboot..."
Obviously, its at the fault of the app, because otherwise (sixaxis not installed/used) bluetooth would function properly and no restart would be required.
Therefore, sixaxis is not ending support of the controller properly, re-enabling bluetooth support, or whatever its trying to do for the device, android version, or whatever its problem is in code.
Probably good to let the app's dev know about it and find out if they say anything.
Since root access is required, it definitely requires some deeper access to android (the deeper the more problems are likely to occur). Some code doesn't even work for all devices and they could have gone that route with their app knowingly - whether it was a necessary side effect due to the type of app they created or specifically because of a workaround of what google allows devs to do with android.
Either way it is often an app with problems as reviews show.
Click to expand...
Click to collapse
Hey thanks a ton for the information. I had started to suspect that but since I'm a noob here I thought it was best to ask. Will contact the developer. But hey for now if all I have to do is a reset after a gaming session to make all things right, it's not so bad. Thanks again!
EDIT: Okay, so after doing some fiddling with my own Nook HD+ it looks like the Nook itself has trouble shutting down bluetooth! When I go into my battery use bluetooth is staying on permanently after initially turning it on. The time continues to run no matter what I do or shutdown with Android Task Manger. And it appears I'm not the only one. http://bookclubs.barnesandnoble.com...Bluetooth-won-t-turn-off-Nook-HD/td-p/1462091
Also since mine is rooted and has unknown sources installed I felt like I needed a control group. So I borrowed my wifes Nook HD+ which is completely stock, no mods at all... and it does the exact same thing... This is mind boggling. Could a few people turn their bluetooth on long enough to register in their battery monitor, then turn it off, and tell me if their time is still running for the bluetooth? It would really help me identify whether this a software problem with Nook software, or it's a hardware issue that they had amongst several models and they shipped with bad parts, etc. Thanks!
gregorcarbine said:
Could a few people turn their bluetooth on long enough to register in their battery monitor, then turn it off, and tell me if their time is still running for the bluetooth? It would really help me identify whether this a software problem with Nook software, or it's a hardware issue that they had amongst several models and they shipped with bad parts, etc. Thanks!
Click to expand...
Click to collapse
It could also be this or similar: https://code.google.com/p/android/issues/detail?id=69135
Quote, "Problem: When turning off the Jawbone, it causes the Bluetooth(BT) to misbehave and not turn off nor function."
...Though that's for android 4.4.2 and nook 2.2 is android 2.2... wow that's old... that could of course be it as well - if the problem is with android, it could have been fixed in a later android version.
In the end, it doesn't appear to have to do with the device itself, but perhaps with that android version's bluetooth package or an installed app. And which android version (if any) would work for you idk. I remember people saying cm and sixaxis didn't work with bluetooth on the nook in the past, so if that's still the case, don't know that either.
I'm not sure how far back many apps are going today with android versions but something like: https://play.google.com/store/apps/details?id=org.myklos.btautoconnect&hl=en
could possibly do something(?). But, I'm just reaching there for anything in the you never know category.
But hopefully that gives a better picture as to what it could be. Sorry, I can't give an actual [working] solution, though for all I know I gave a path to the only solution.

File transfer does not work (keeps falling back to "USB for charging" always)

File transfer does not work (keeps falling back to "USB for charging" always)
Hi,
as the title suggests for a very long time (>1 month) my file transfer does not work.
The only way I can transfer files from PC to the phone is reboot into recovery (TWRP) and there it works normally, but it's a pain in the a...rm.
I've also tried different ROMs with the same effect, although I remember it did work very briefly for one boot cycle before I finished setting everything up and now it doesn't work again.
My suspicion is that some hidden setting that I'm not aware of is in conflict with the file transfer feature. Or maybe Xiaomi doesn't like it when you deny Mi Cloud permissions etc. and that's the way they get back at you, IDK!
Nobody else experiences this? Cause I didn't find too many complaints about this in the forum.
Happy new year and a very good and successful start into 2020, everyone.
If you not sure what cause the problem, just switch to another rom or do a hard reset.
Sent from my MI 9 using Tapatalk
anthropaki said:
Hi,
as the title suggests for a very long time (>1 month) my file transfer does not work.
The only way I can transfer files from PC to the phone is reboot into recovery (TWRP) and there it works normally, but it's a pain in the a...rm.
I've also tried different ROMs with the same effect, although I remember it did work very briefly for one boot cycle before I finished setting everything up and now it doesn't work again.
My suspicion is that some hidden setting that I'm not aware of is in conflict with the file transfer feature. Or maybe Xiaomi doesn't like it when you deny Mi Cloud permissions etc. and that's the way they get back at you, IDK!
Nobody else experiences this? Cause I didn't find too many complaints about this in the forum.
Happy new year and a very good and successful start into 2020, everyone.
Click to expand...
Click to collapse
First, do you have the correct drivers installed on your PC to identify your device?
Second, you can always turn on USB Debugging and see if that allows you to use FTP.
Third, if you have turned on USB Debugging, you can use adb push.
If I wanted to transfer Roblox to my phone, I would do this
adb push C:\Users\SenseiCheekClapper\Downloads\Roblox.apk /sdcard
To make it a hell of a lot easier, just type adb push, drag the file into the terminal and it will autofill the file location, and then type /sdcard.
Sent from my MI 9 using Tapatalk
When I have had this problem it has always turned out to be the USB-cable that was the culprit. This phone is very picky when it comes to cable, both for file transfer and Android Auto, at least for me! The original cable doesn't always work all the time for me, but a good quality cable of another brand always works for me.

Looking for an app.

Is there any app to set the priority of devices in a hotspot?
My not rooted S9 is working as an router, my pc is using USB tethering which has great pings till i enable the wireless hotspot that my family is using.
Is there any app to do that?
Alternatively, I would be happy with an app that could limit the Wireless Hotspot speed to around 50kbps, but would not impact the usb tethering.
Regards,
I'm not sure if that is even possible without rooting. Not all phones have a hotspot, so I assume the manufacturer preloads an app to manage the hotspot, and that would mean you would need a special app for every device, or at least every manufacturer. I doubt anyone would write an app with that kind of complexity for such a tiny group of people that actually need it. That's just my opinion and thoughts, I'm not saying it doesn't exist, I'm saying the chance it does is slim. I hope you find what you're looking for (or found, I just looked at the date). Good luck!
Edit 5 seconds after I posted: I noticed a typo, it's late, I'm tired lol.
Edit 30 seconds after edit #1: I noticed another one.

Question Nfc Tag and Do Not Disturb

Hi guys, I recently switched from a samsung s8 to a Pixel 7 and I wanted to be able to carry some "automations" with me with an NFC Tag.
The automatism is simple: I return home -> the wifi is activated and the ringtone becomes silent. I leave the house -> the wifi is deactivated and the ringtone returns to normal.
With the S8 I've never had any problems.. with the Pixel, when I get home, the ringtone goes silent, but Do Not Disturb is also activated. And there is no way to separate Quiet from Do Not Disturb! Both activate.
I tried with two different programs to modify the nfc tags: a very old version of "Trigger" and the most recent "NFC Tools". But both give the same result: if you activate Silent, you also activate Do Not Disturb! Obviously if I change the ringing mode by hand this doesn't happen.
Advice?! Has anyone encountered this problem?
DerekZool said:
Hi guys, I recently switched from a samsung s8 to a Pixel 7 and I wanted to be able to carry some "automations" with me with an NFC Tag.
The automatism is simple: I return home -> the wifi is activated and the ringtone becomes silent. I leave the house -> the wifi is deactivated and the ringtone returns to normal.
With the S8 I've never had any problems.. with the Pixel, when I get home, the ringtone goes silent, but Do Not Disturb is also activated. And there is no way to separate Quiet from Do Not Disturb! Both activate.
I tried with two different programs to modify the nfc tags: a very old version of "Trigger" and the most recent "NFC Tools". But both give the same result: if you activate Silent, you also activate Do Not Disturb! Obviously if I change the ringing mode by hand this doesn't happen.
Advice?! Has anyone encountered this problem?
Click to expand...
Click to collapse
Before "Trigger" and "NFC Tools", what app were you using?
If anything, I suggest you use -- if you were not using originally anyway -- MacroDroid. It seems to be capable of achieving what your goal is, although I wasn't able to get the NFC tool to set up myself (but that might just be my phone). Although I'm unsure if you really need to use NFC protocol to achieve this versus using geolocation/GPS; you could probably achieve the same thing with a gps trigger...And i'm sure there are other clever ways you can achieve the same goal using the very diverse program.
Worse comes to worst, you could possibly use Tasker -- although that app hasn't really been in active development in a while, I've seen around the forum that people still use it so at the very least it still functioning...
I used to use Trigger... but once it was set up I never used it again (except in the background). But that was 4 years ago.
I think I will try to use MacroDroid. I already use it to enable/disable rotation only on some programs.
Any advice on any modules?

Categories

Resources