[Gen9 Android Development] trevd:
[MENTION=4636351]Quallenauge[/MENTION]

Its seems the plot thickens I left my tablet connected to my computer all day in CWM Mode ( don't do that by the way :) ) I've just built a new

version with the 3.58 kernel flashed it booted up.... My Power is at 5% ( to be expected )

So I thought I smash some juice into it via the wall charger, I'm getting not charging message but obviously it's powered also the same result from a usb computer connection. Dmesg reports

<3>[ 0.823028] Unknown charger detected! 0
<7>[ 0.823028] STATE_NONE -> STATE_VBUS

Which is obviously the reason no charge but my question is why is it unknown in the first place. :confused:

Here's a full dmesg [ http://paste.ubuntu.com/5623658/ ] just for reference, obviously the highlight are the Unknown Charger, The Spinlock crash and also what's a VVDHF regulator? it looks media related, but I'm unable to get one of those as well. :D

twl6040-codec twl6040-codec: couldn't get VDDHF regulator -19

Update:

I was going to try boot with 3.0.21 and see what goes on but I thought I'd turn it off first and boot it with the wall charger plugged in straight away.... lo and behold it is now reporting charging which sounds like exactly the same bug as [MENTION=3279100]cobje[/MENTION] has reported. I just hadn't noticed it before, So it appears to be across all devices.

I'll have a delve into it try building with that file you suggested from the stock kernel.

:good:

Edit : Here's another Dmesg where it's plugged in and picks up as charging at first then unplugged - plugged back in which results in charging failure [ http://paste.ubuntu.com/5623711/ ]

Also boot with usb computer plugged in first off works as well

Edit : Dmesg of recovery start up after choosing reboot recovery option in Android http://paste.ubuntu.com/5623726/

Edit : Well more a though if you run my hotplugd binary , although used for usb modeswitching also reports kernel uevents to the logcat. When I used to boot with the old 3.0.21 kernel this used to go absolutely mental on boot and just report a endless stream of battery message until I unplugged the usb and the when I reconnected it would settle down. I've disable hotplugd on boot in my last build, I wonder If that behaviour is just another side of the same coin?

( All my question are Rhetorical BTW, I don't expect an answer :D Just using a public internet forum to think aloud LOL )

Edit : More interesting fun... this time via logcat

D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [5,3579,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [5,3569,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [20,3569,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [20,3574,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [20,3569,480]
W/SocketClient( 115): write error (Broken pipe)
W/ThrottleService( 398): unable to find stats for iface ppp1
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [20,3579,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [20,3574,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 398): [20,3588,480]
D/hotplugd( 1041): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1041):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }

The the jump from 5 to 20 on the battery level.... I'll leave it running live as I'm getting periodic updates from it :)

Update: Seems the jump effective is "how it rolls"

D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [20,3657,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [20,3671,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [20,3666,460]
D/dalvikvm( 1107): GC_CONCURRENT freed 50K, 38% free 4755K/7588K, paused 8ms+3ms, total 64ms
D/dalvikvm( 396): JIT code cache reset in 7 ms (1048332 bytes 1/0)
D/dalvikvm( 396): GC_CONCURRENT freed 1591K, 27% free 8029K/10984K, paused 7ms+12ms, total 89ms
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [20,3676,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [20,3647,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3676,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3666,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }

then it'll do a little back-and-forth dance around the same values, for exampe

I/battery_level( 396): [50,3662,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3671,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3686,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3652,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3671,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3686,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3671,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3676,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3681,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3666,460]

I expect this do a jump up by 20-30 after a while

Update : It's been a while and we did get another jump, Clueless at the minute to what this actually means or even if it's relevant

I/battery_level( 396): [50,3750,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3759,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3750,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3745,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [50,3764,460]
D/dalvikvm( 396): GC_CONCURRENT freed 1297K, 29% free 8002K/11116K, paused 9ms+5ms, total 89ms
W/ThrottleService( 396): unable to find stats for iface ppp1
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [75,3750,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [75,3754,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [75,3730,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }
I/battery_level( 396): [75,3750,460]
D/hotplugd( 1345): { action:'change' sub:'power_supply', type:'', name:'', vendor: product:
D/hotplugd( 1345):	path:'/devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl6030_bci/power_supply/twl6030_battery' }