Enable the Hidden Notification LED on the Google Nexus 6!

LED notification lights have existed on Android devices since the very beginnings … more

MX Player Ready to Rock on Lollipop

A good video player should be reliable and free. One of the XDA Community Apps, MX Player, meets both of … more

How to Disable Data Encryption on Nexus 6

In late September, Google decided to step on NSA’s toes and turn on encryption by default in … more

DJI Phantom 2 Vision+ Review – XDA TV

The holidays will be here in no time, so why not start thinking about gifts now? Youll be ahead … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Battery discharged by Nav app when Phone is connected to car charger

OP Zaphod_b_1

Zaphod_b_1
26th May 2011, 08:21 AM   |  #1  
Guest
Thanks Meter: 0
 
n/a posts
Hi @all,

in the German SGS2 Forum at Pocketpc.ch actually there's an interesting discussion (German language unfortunately) about an issue a user has found out regarding using a navigation app on the SGS2:

It seems that, even if the phone is connected to a car charger, the battery is being discharged while using a navigation app, Navigon 3.6.0. in this case.

As it also looks like that this is not an issue of the car charger (has a max power of 1000mA) - it seems to come from the phone itself because Sammy limits the charging power to 450mA while connected to USB or "misc" chargers and to 650mA for AC chargers. Below you can see a piece of the battery driver sourcecode one of the pocketpc.ch-users posted:

if (enable) { /* Enable charging */
switch (info->cable_type) {
case CABLE_TYPE_USB:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 450; /* mA */
break;
case CABLE_TYPE_AC:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 650; /* mA */
break;
case CABLE_TYPE_MISC:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 450; /* mA */
break;

My questions are now:
1) Can somebody here also confirm this behaviour?
2) Is there a workaround?
3) Would it be possible to compile the driver with new settings (i. e. 750mA) and install it without killing the phone?
4) Other suggestions?

Cheers

Zap

Edit: Using another car charger doesn't seem to help due to the limitation...
Last edited by Zaphod_b_1; 26th May 2011 at 08:29 AM.
26th May 2011, 08:28 AM   |  #2  
Senior Member
Flag Bristol
Thanks Meter: 77
 
579 posts
Join Date:Joined: Apr 2011
More
It is the charger. I had same issue with a cheap tesco charger. I read about the fact a standard USB is wired differently to Samsung official one. So even if your charger is rated as 1000 it wont use fast charge mode. I got an official one and now it charges not drains in sat navigation. It shows right now as charging AC plugged in my van. With a non Samsung it shows USB.

Hope that helps :)

Sent from my GT-I9100 using XDA Premium App
Last edited by skibadee; 26th May 2011 at 08:37 AM.
26th May 2011, 05:32 PM   |  #3  
BarryH_GEG's Avatar
Senior Member
Flag Spokane, Washington
Thanks Meter: 4,378
 
8,937 posts
Join Date:Joined: Jan 2009
I'm using a LG car charger and the battery stays positive also.
26th May 2011, 05:43 PM   |  #4  
Senior Member
Flag Duluth, GA
Thanks Meter: 36
 
747 posts
Join Date:Joined: Dec 2004
More
How does info->cable_type get set? Figure that out and you could probably hack your adapter or cable to fool the SGS2 into thinking it's an AC charger. On some other phones, if the two USB data pins (2 & 3 on the USB A connector) are tied together, that tells the phone it's an AC charger.
Zaphod_b_1
26th May 2011, 07:10 PM   |  #5  
Guest
Thanks Meter: 0
 
n/a posts
Thanks for your replys. Just to make something clear: I'm not the person who has this problem - I will get my SGS2 next week or so, but since Navigation is one of my main purposes for the phone I was really afraid to get a device unusable therefor. So I originated this thread since I think it is better to get more input than less input.

OK, so it seems that the first try to solve the issue should be changing the charger. After that there's to talk about some hacking ;). I will send an update as soon as there's some news. Is here anybody involved who can compile a driver with updated sourcecode and tell us how to install it? Unfortunately I'm not a Dev.

Suggestion: What about to list all car chargers the phone is working with correctly during Navigation? I think it should be enough to write down the ROM/Firmware/Kernel Version and the brand/type designation of the charger.

Cheers

Zap
Last edited by Zaphod_b_1; 26th May 2011 at 07:20 PM.
26th May 2011, 09:29 PM   |  #6  
Member
Flag Rotterdam
Thanks Meter: 1
 
36 posts
Join Date:Joined: Apr 2006
More
Quote:
Originally Posted by 3waygeek

How does info->cable_type get set? Figure that out and you could probably hack your adapter or cable to fool the SGS2 into thinking it's an AC charger. On some other phones, if the two USB data pins (2 & 3 on the USB A connector) are tied together, that tells the phone it's an AC charger.

I was using a Samsung Omnia II before getting the S2, and that one wouldn't even charge at all with a regular micro-USB cable on generic USB wall, car or emergency chargers. Using a modded cable with the USB data pins shorted, the phone will charge on any charger (probably shouldn't connect it to a PC though, as the phone will draw to much current).

I just did a short test with the Galaxy S II together with my generic wall charger. With a regular micro-USB cable it says Charging (USB), with the modded cable it says Charging (AC). So, the same trick still works...
26th May 2011, 09:57 PM   |  #7  
Senior Member
Flag Duluth, GA
Thanks Meter: 36
 
747 posts
Join Date:Joined: Dec 2004
More
Quote:
Originally Posted by rsenden

I just did a short test with the Galaxy S II together with my generic wall charger. With a regular micro-USB cable it says Charging (USB), with the modded cable it says Charging (AC). So, the same trick still works...

Cool; it'd probably be better to make the mod to the charger; that way, you should be able to use any USB cable.
26th May 2011, 10:39 PM   |  #8  
Senior Member
Flag Los Angeles, CA
Thanks Meter: 396
 
5,578 posts
Join Date:Joined: Apr 2010
i've posted this code here already, and yes if someone were to test out a few higher values and compile their own kernel, you may be able to get closer to 950mA or so. i would do it myself when i get the device. my hunch is there was a heat issue so samsung capped it at 650mA. who knows for sure though, it may just be their philosophy of how they want their devices charged. there is some truth to the claim that a slower charge gives more robust voltage stability = better battery life over the long term.

Code:
static int sec_bat_enable_charging_main(struct sec_bat_info *info, bool enable)
{
	struct power_supply *psy = power_supply_get_by_name(info->charger_name);
	union power_supply_propval val_type, val_chg_current, val_topoff;
	int ret;

	if (!psy) {
		dev_err(info->dev, "%s: fail to get charger ps\n", __func__);
		return -ENODEV;
	}

	info->batt_full_status = BATT_NOT_FULL;

	if (enable) {		/* Enable charging */
		switch (info->cable_type) {
		case CABLE_TYPE_USB:
			val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
			val_chg_current.intval = 450;	/* mA */
			break;
		case CABLE_TYPE_AC:
			val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
			val_chg_current.intval = 650;	/* mA */
			break;
		case CABLE_TYPE_MISC:
			val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
			val_chg_current.intval = 450;	/* mA */
			break;
26th May 2011, 10:43 PM   |  #9  
Senior Member
Flag Bergen
Thanks Meter: 19
 
506 posts
Join Date:Joined: Jul 2007
More
Quote:
Originally Posted by RogerPodacter

i've posted this code here already, and yes if someone were to test out a few higher values and compile their own kernel, you may be able to get closer to 950mA or so. i would do it myself when i get the device. my hunch is there was a heat issue so samsung capped it at 650mA. who knows for sure though, it may just be their philosophy of how they want their devices charged. there is some truth to the claim that a slower charge gives more robust voltage stability = better battery life over the long term.

I'm pretty sure it could be bumped up to 950mA without any issues. As it is right now the phone is downright cold when charging compared to earlier phones I've had.
26th May 2011, 11:28 PM   |  #10  
Member
Thanks Meter: 5
 
47 posts
Join Date:Joined: Dec 2009
I am using a 2amp usb adapter with an HTC lead which is not a data lead but charge only and this is the best way to use nav and charge, it worked well with my HD2 because with the standard data cable didn't charge while with nav either.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes