Skip to content

Instantly share code, notes, and snippets.

@jhawthorn
Created July 26, 2010 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhawthorn/490188 to your computer and use it in GitHub Desktop.
Save jhawthorn/490188 to your computer and use it in GitHub Desktop.
UPDATE: Seems to be fixed.
With the commit at http://github.com/carz2/cm-kernel/commit/e337c700209ae09ce80e60d7e3c5306b57a9f709
My phone now charges properly while plugged in.
The value in /sys/class/power_supply/battery/charging_enabled has changed to 1.
=============================================================================
Problems with the kernel for HTC magics with the 6.35 radio
Kernel used is a compile of http://github.com/carz2/cm-kernel
ROM used is CM6-RC1
There are two problems with this kernel, first is that camera doesn't work. Second is that it won't charge while on.
This sounds pretty silly, but when the phone is on and plugged in (either via USB or the AC adapter) rather than charging, the battery discharges rapidly, much faster than the phone would when unplugged. carz12 has stated that he also has this problem in the xda forums (http://forum.xda-developers.com/search.php?searchid=40980990).
When using the phone not plugged in, I get 3 days on battery. Plugging in the phone while turned off will charge the phone normally.
Values in /sys/class/power_supply/battery
batt_current: 4
batt_id: 1
batt_temp: 315
batt_vol: 3992
charging_enabled: 0
charging_source: 1
full_bat: 1340000
health: Good
present: 1
status: Charging
I'd love to give any more information if I could. I can be contacted as @jhawthorn on twitter or jhawthorn on freenode.
@wesgarner
Copy link

forked the gist to my stuff so I won't forget lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment