Code Monkey home page Code Monkey logo

Comments (10)

klausmcm avatar klausmcm commented on August 23, 2024

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.

Himura2la avatar Himura2la commented on August 23, 2024

@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.

Himura2la avatar Himura2la commented on August 23, 2024

@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.

sm4rk0 avatar sm4rk0 commented on August 23, 2024

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.

klausmcm avatar klausmcm commented on August 23, 2024

@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.

Himura2la avatar Himura2la commented on August 23, 2024

@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.

bayern1 avatar bayern1 commented on August 23, 2024

@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.

dh29 avatar dh29 commented on August 23, 2024

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.

bayern1 avatar bayern1 commented on August 23, 2024

@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.

ihrubab avatar ihrubab commented on August 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.