MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

USB Charging Commander

42 posts in this topic

Posted · Report post

Just what I was looking for - upgraded my ZTE racer and noticed the lack of this feature.
I used to tether my old MDA vario all the time to my laptop, and it def killed the battery.
So looking forward to trying this out on CM7.

If you could get it to properly integrate into the settings etc that would of course be even better ...either way, thanks for providing the app :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

I confirm this application not working on rooted galaxy s2 with A 2.3 :(
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

I usually dont have this much problem figuring something like this out BUT....

I cant seem to get it to work either. I have a rooted Nexus S, and when I click to Disable USB charging it says "Updated OK," but when I go 'adb shell dumpsys battery' in the command prompt it has the USB charging listed as "True" and after 5 minutes the level has gone up by 2.

And if someone is looking for a reason why this program can be helpful - running logs for battery, cpu, and memory usage over long periods of time for application testing and verification. The battery info is all screwy when the USB is charging the device, but its necessary to have the usb connected into the computer to receive all the logs. Hence my opinion is that this program is gold and i would easily pay for it.

If I can get it to work...

Any thoughts or tips? Edited by zachtmobile
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='zachtmobile' timestamp='1321399959' post='1845618']
I usually dont have this much problem figuring something like this out BUT....

I cant seem to get it to work either. I have a rooted Nexus S, and when I click to Disable USB charging it says "Updated OK," but when I go 'adb shell dumpsys battery' in the command prompt it has the USB charging listed as "True" and after 5 minutes the level has gone up by 2.

And if someone is looking for a reason why this program can be helpful - running logs for battery, cpu, and memory usage over long periods of time for application testing and verification. The battery info is all screwy when the USB is charging the device, but its necessary to have the usb connected into the computer to receive all the logs. Hence my opinion is that this program is gold and i would easily pay for it.

If I can get it to work...

Any thoughts or tips?
[/quote]

Speaking for Blade community, the designation of battery device specific files solely rest with the Blade's kernel in question (at the time, it was 2.6.32 kernel for blade).

As you say you have Nexus S, the kernel would be different, no doubt, poke around in /sys directory on your handset to see for any clues. :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='t0mm13b' timestamp='1321479693' post='1846080']
Speaking for Blade community, the designation of battery device specific files solely rest with the Blade's kernel in question (at the time, it was 2.6.32 kernel for blade).

As you say you have Nexus S, the kernel would be different, no doubt, poke around in /sys directory on your handset to see for any clues. :)
[/quote]

i have been in the sys directory for a few days looking for clues when I stumbled upon this thread. Would anyone have any idea at which file Charging commander looks at, or what key words I should be looking for to change the property?
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='zachtmobile' timestamp='1321487305' post='1846130']
i have been in the sys directory for a few days looking for clues when I stumbled upon this thread. Would anyone have any idea at which file Charging commander looks at, or what key words I should be looking for to change the property?
[/quote]

Try: /sys/module/msm_battery/parameters/usb_chg_enable, well, that is on the blade.
0

Share this post


Link to post
Share on other sites

Posted · Report post

I can certainly point out another use for this tool. I just bought a power pack for my I9100, and it seems to lack an ON/OFF switch.. so its ALWAYS charging. Is this tool could work with my device it would certainly save some unnecesary charge cycles on those power packs, so the used would CHOOSE when the charge is needed...
0

Share this post


Link to post
Share on other sites

Posted · Report post

Samsung Galaxy Note N7000, it does`'t work :-)


0

Share this post


Link to post
Share on other sites

Posted · Report post

Could you post the final bug free .apk for the app here?

I am still testing o the very first .apk posted on it thread and it shows the charging on the Status bar.

0

Share this post


Link to post
Share on other sites

Posted · Report post

look good going to try them soon
0

Share this post


Link to post
Share on other sites

Posted · Report post

i use gingerbread on xperia... sadly its still charging......

is this project dead?
0

Share this post


Link to post
Share on other sites

Posted · Report post

I am going to leave this here for the benefit of others who wishes to use this into their own handset - this will vary across different kernels.

Someone emailed me, and was trying to fit it within their LG Optimus 3D (P920), this is what I replied to this person,

[quote][font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)]Was looking at the Gerrett-RoadRunnerKernel-[/background][/size][/font][font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)]Cosmo[/background][/size][/font][font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)]s, in[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] drivers/mfd/twl_core.c which *I* think is where the battery[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] regulator is...[/background][/size][/font]

[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] And judging by the module itself, it looks like redirecting a value[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] to a sysfile is not a requirement here (that is in relation to the[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] MSM architecture in which USB Charge Commander does it in that[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] fashion), rather, more so, ioctl calls would have to be made, as[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] there's read/write functions in there, used in conjunction with[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] drivers/mfd/twl6030-gpadc.c (*/static long[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] twl6030_gpadc_ioctl(struct file *filp, unsigned int cmd, unsigned[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] long arg) /*)but this part caught my eye within twl_core.c[/background][/size][/font]

[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] In the function *static void _init_twl6030_settings * there's this:[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] /* CHARGERUSB_CTRL3 */[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] twl_i2c_write_u8(TWL6030_[/background][/size][/font][font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)]MODU[/background][/size][/font][font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)]LE_ID1, 0x21, 0xEA);[/background][/size][/font]

[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] so I'd imagine an ioctl call to write a value to 0x21 (perhaps that[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] is a command you pass into the ioctl?), a value probably an inverse[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] of 0xEA to indicate no charge? (I am not 100% certain as am not[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] familiar with OMAP architecture - and please don't try write to it[/background][/size][/font]
[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] directly for my fear due to limited knowledge of the said[/background][/size][/font]

[font=arial, sans-serif][size=3][background=rgba(255, 255, 255, 0.917969)] architecture and perhaps risking damaging the battery)[/background][/size][/font][/quote]

So it will depend on your chipset and kernel. This Optimus as in this case, in which I received that in email was my actual reply above. USB Charge Commander only works with the msm architecture - specifically, msm7227 which uses the MSM battery driver built into the kernel which from there, bore the idea of USB Charge Commander.

All in all, you need to look through the kernel sources depending on your chipset and possibly would require an ioctl call to the driver itself to disable it for your handset.

Now, disclaimer follows - please do not try this on your handset and assume that in my reply to the person, that is to be taken as a given for your handset.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='modacococo' timestamp='1337415749' post='1956214']
i use gingerbread on xperia... sadly its still charging......

is this project dead?
[/quote]

I have an Xperia Mini... I will check it out shortly and get back to you on this :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='t0mm13b' timestamp='1337436147' post='1956402']
I have an Xperia Mini... I will check it out shortly and get back to you on this :)
[/quote]

My one is Xperia Mini Pro :)

Did you get this working?
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='modacococo' timestamp='1344669766' post='2004047']
My one is Xperia Mini Pro :)

Did you get this working?
[/quote]

No, did not get it to work - semc board uses different layout altogether unlike MSM7227.

Still trying to figure it out :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

Xperia Play. Android 2.3.4

Sadly not working :(

I've been ages looking for something like these. My windows phone had this option integrated and I find it useful when connecting so many times the phone to the computer, cause I assume, you reduce considerably your battery life.

Thanks to the author anyway :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='jas2002' timestamp='1361096912' post='2090776']
Xperia Play. Android 2.3.4

Sadly not working :(

I've been ages looking for something like these. My windows phone had this option integrated and I find it useful when connecting so many times the phone to the computer, cause I assume, you reduce considerably your battery life.

Thanks to the author anyway :)
[/quote]

SEMC chipsets uses a different battery driver so it will take some hacking around to get it to work proper with it.

The project was designated exclusively for the Blade.

[i]So asking questions for other non-Zte Blade handsets won't suffice[/i] ;)
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.