FORUMS

Google No Longer Sending Calendar SMS Notifications

In a not entirely surprising move, Google announced that it’s putting an … more

Enable Multi-Window Mode on M Developer Preview

What was not mentioned in yeterday’s keynote was Android M’s multi-window … more

I/O Summary: Google Cardboard Virtual Reality

One year ago, Google introduced cardboard. Amazingly enough, that was all it took to fire … more

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he … more

Fix Lollipop Charging

Thanks Meter: 457
 
By werty100, Senior Member on 26th February 2015, 03:57 PM
Post Reply Subscribe to Thread Email Thread
Hi i have a posible fix for charging off mode on lolliopop we need to integrate this in kernel:
" androidboot.mode=charger"
In the file board-tuna-power.c but i dont know how to
 
 
6th March 2015, 12:00 AM |#2  
Loureiro's Avatar
Senior Member
Flag Alentejo
Thanks Meter: 305
 
More
Quote:
Originally Posted by werty100

Hi i have a posible fix for charging off mode on lolliopop we need to integrate this in kernel:
" androidboot.mode=charger"
In the file board-tuna-power.c but i dont know how to

MWisBest's tuna kernel repository has the file board-tuna-power.c with this function

Code:
static int __init tuna_charger_mode_setup(char *str)
{
	if (!str)		/* No mode string */
		return 0;

	is_charging_mode = !strcmp(str, "charger");

	pr_debug("Charge mode string = \"%s\" charger mode = %d\n", str,
		is_charging_mode);

	return 1;
}

__setup("androidboot.mode=", tuna_charger_mode_setup);
it looks good to me
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes