Comments (10)
I have this file on my flo here which has 0 before and 1 while being plugged in.
/sys/class/power_supply/ac/online
I'm on Paranoid Android 6.0.3.
from batterychargelimit.
@klausmcm thank you for investigation, I'll check it as soon as I have an access to my tablet. For now, can you please check whether this file has a write permission?
from batterychargelimit.
@klausmcm, Bad luck. It's read-only
127|root@flo:/sys/class/power_supply/ac # ls -l
lrwxrwxrwx root root 2017-10-20 20:53 device -> ../../../0-0055
-r--r--r-- root root 4096 2017-10-20 18:46 online
drwxr-xr-x root root 2017-10-20 18:46 power
lrwxrwxrwx root root 2017-10-20 20:53 subsystem -> ../../../../../class/power_supply
-r--r--r-- root root 4096 2017-10-20 18:46 type
-rw-r--r-- root root 4096 2017-10-20 18:46 uevent
from batterychargelimit.
My Moto X 2013 (ghost) also has the pm8921 and pm8921_charger
control file (ie. /sys/module/pm8921_charger/parameters/disabled
) works for me. Did you try it? What's the console output for this:
ls -l /sys/module/pm*/parameters/
from batterychargelimit.
@Himura2la I have the same issue. However, I also had this issue #46 on my Nexus 5. The app selects the correct control file on my Nexus 5 but the file is also only readable. I did chmod 644 /sys/class/power_supply/ac/charging_enabled
and the app works fine now. I believe the same would work for the Nexus 7.
@sm4rk0 this is the output for me
root@flo:/ # ls -l /sys/module/pm*/parameters/
/sys/module/pm8xxx_regulator/parameters/:
total 0
-rw------- 1 root root 4096 Oct 20 17:21 debug_mask
/sys/module/pm_8x60/parameters/:
total 0
-rw-rw-r-- 1 root root 4096 Oct 20 17:21 debug_mask
-rw-rw-r-- 1 root root 4096 Oct 20 17:21 sleep_time_override
from batterychargelimit.
@klausmcm adding a write permission may be a good decision for files that are obviously do switch the charger. online
looks more like an informative output... But the idea of @sm4rk0 looks great, I'tt check it soon
from batterychargelimit.
@klausmcm Hi! I have a Nexus 7, and I observed the exact same thing as you mentioned on Oct 19th. However when I try to change the file's content fron 1 to 0, the device just restarts itself, did that happen to you also?
from batterychargelimit.
I have a Nexus 7 flo (2013 WiFi). Can't get this app to work, which is a really pity as I wanted to leave the device on permanent wireless charge as I'm using it as a replacement for a Sonos CR100 controller, which Sonos are about to kill-off.
I'm running lineageos 14.1 (Android 7.1.2).
This is the output for root@flo:/ # ls -l /sys/module/pm*/parameters/
/sys/module/pm8xxx_regulator/parameters/:
total 0
-rw------- 1 root root 4096 Oct 20 17:21 debug_mask
/sys/module/pm_8x60/parameters/:
total 0
-rw-rw-r-- 1 root root 4096 Oct 20 17:21 debug_mask
-rw-rw-r-- 1 root root 4096 Oct 20 17:21 sleep_time_override
So nothing obvious...
Anybody have any other suggestions? I'm happy to try/evaluate anything.
from batterychargelimit.
@dh29 I had the exact same problem, there is an XDA thread that you could check to see what you can do to help. Basically they need to know where the 'control file' is in Nexus 7, so that they can do something about it
from batterychargelimit.
@klausmcm Hi! I have a Nexus 7, and I observed the exact same thing as you mentioned on Oct 19th. However when I try to change the file's content fron 1 to 0, the device just restarts itself, did that happen to you also?
I tried to use the /sys/class/power_supply/battery/charge_now and my Nexys 7 rebooted. Did you manage to find a solution to this problem?
from batterychargelimit.
Related Issues (20)
- Pixel 6 rooted do not stop automatic HOT 2
- Realme 6 Pro battery control file
- Realme GT 5G not working HOT 1
- Not working oneplus 8pro since update to Android 12 HOT 1
- feature request: close app notification when charger is disconnected. HOT 1
- not working on poco f3 HOT 1
- Feature Request: Disable Charge Limit temporary HOT 1
- 8
- Control file for Pixel 5a 5G
- Support for FiiO M11
- Charging connection and disconnection detection HOT 1
- it works on Samsung S20 Android 13 HOT 1
- Does not work with kernel SU ? HOT 1
- Support for Xiaomi 13 (fuxi)
- Support for Poco X5 Pro 5G (redwood) HOT 1
- Error not working on redmi note 11 MIUI 14 android 13 API33
- Support for Xiaomi 12 (Cupid) HOT 1
- Supporto for Armor X9 Pro HOT 1
- Not working on Galaxy S10 5G LOS 20 Android 13
- Please support MIPad 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from batterychargelimit.