yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] The Gingerbread Man:
Preciously! I don't even own a nexus 4, but that's true universally over any modern battery powered device that isn't in a state of constant charging. For instance on my nexus 7 I can get 3 hours perhaps playing intensive games like GTA vice city, there has been times when I have played Amiga emulator and achieved 8-9 hours screen on time(want proof search through n7 Franco thread dec-feb to be very approximate).

[MENTION=281093]who[/MENTION] ever said its a pissing contest your absolitly right. You could for instance tell your device to never turn screen off and leave it on a 100% black screen, go to work and find its still got life.

So it all comes down to usage patterns, screen brightness and network type and signal strength for your main factors in battery life, then take into consideration underclock, perhaps undervolt, sync frequencies and potential wake locks involved with any apps you might have and youl soon see your usage and set up in probably unique to you for your set of usage and above criteria.
[Nexus 4 Original Android Development] franciscofranco:
Working on a new major update for FKU, this is the first shot: https://plus.google.com/u/0/106873500108976028532/posts/LgQvXhUc9De

Gorgeous right? I'll be pushing betas every now and then because the next update is going to be huge, probably going to take a while to finish.
[Nexus 4 Original Android Development] Savant:
Looks great and can't wait for it.
[Nexus 4 Original Android Development] scream4cheese:
The icons are nice. *thumbs up*
[Nexus 4 Original Android Development] Cuzz1369:
Definitely looks good. While you are updating i noticed today that my cpu temp was in F instead of C randomly at different points. This was under the status tab.
[Nexus 4 Original Android Development] rysup:
Are you sure you didn't tap it accidentally?
[Nexus 4 Original Android Development] Cuzz1369:
I did tap it acouple times but then it went off on its own randomly a few times. could have just been a delay.
[Nexus 4 Original Android Development] sir*mez:
Wow!

I have reached the 7 hour on screen time milestone, wow! With the latest 155 kernel. :cool:
[Nexus 4 Original Android Development] oSandmaNo:
Franco kernel does affect battery life a lot!

On stock I get only 3-4 hours screen time but on his magical kernel I get like 5-6 hours :)
[Nexus 4 Original Android Development] Reatret:
I can never reach 3 hours screen on!
[Nexus 4 Original Android Development] Arstoien:
Facebook website sucks compared to the app. Just greenify it and kill it whenever you leave it, works great and doesn't run for a second in background. Google Now though, even with all location settings off, keeps a decent wakelock and drains battery.

And yeah, you're very right about wiping when you see your battery life has been decreased. After I wiped and installed the same apps (from tb backups) I've got significantly less wakelocks and better battery life. Can't explain it but there it is.

Sent from my Nexus 4
[Nexus 4 Original Android Development] Luigiesin:
+1

Sent from my Rock & Roll Nexus 4 \m/

ROM: PA 3.60

Kernel: Franco r1222-Linaro

T-Mobile
[Nexus 4 Original Android Development] Puzzlegirl:
I'm already married! Sorry ;)
[Nexus 4 Original Android Development] JNewms:
I'm loving the icons! That'll be a sweet update.

Franco Minuum Nexus 4
[Nexus 4 Original Android Development] Redneck Trash:
Maybe she has a sister.
[Nexus 4 Original Android Development] aventu:
This works until the screen goes off and it freezes. Is *policy_cpu1 necessary? It has the same destination.

edit: It freezes because of cpufreq_cpu_get(1), no idea why

Do you have a Github or mirror for your ramdisk now?
[Nexus 4 Original Android Development] steviewevie:
If I could get four hours of SOT whilst playing Ingress, now *that* would be cool ;)

Sent from my Nexus 4
[Nexus 4 Original Android Development] 1234568:
I was getting bored of always checking for updates, flashing, etc, so I decided to return my phone to stock and just use it as Google and LG intended. After 1 week I'm back on Franco kernel. The difference in battery life is night and day. Thank you Franco.

To anyone wondering about the benefits of this kernel. Just give it a go!
[Nexus 4 Original Android Development] combatdeity:
Why would you return to stock?

Wouldn't flashing a milestone make more sense?
[Nexus 4 Original Android Development] aventu:
Here is a new modded r155 build with the little interactive input_boost_freq improvement and a different touchboost:

I reduced the input_boost_freq to 702MHz, but it affects 2 cores for 1 second. My thought is that this change could reduce the usage of unnecessary high frequencies even more. I can't prove that, therefore the test build. It also provides more ui performance. I haven't tested the cmw zip, please let me know if something doesn't work.

As I said, I recommend 702MHz for input_boost_freq, with 1Ghz you have equal performance as mpdecision based kernels, but still better battery, because of the shorter touchboost and.. ja.. francomagic.

edit: whops, there was something wrong with the zip, fixed it
[Nexus 4 Original Android Development] jdmcivic:
think there's something wrong with loading colour profiles on your version.
[Nexus 4 Original Android Development] aventu:
you're right.. :eek: that's strange
[Nexus 4 Original Android Development] franciscofranco:
Good :) can you post the diff?
[Nexus 4 Original Android Development] franciscofranco:
No, there is nothing wrong, I load profiles everyday dozens of times.
[Nexus 4 Original Android Development] gravitysandwich:
Voltage profiles coming? In the next update?

Please?
[Nexus 4 Original Android Development] ciprianruse88:
Franco, you bought a sgs4? I see GT-i9500 on your taptalk signature...

Sent from my Nexus 4
[Nexus 4 Original Android Development] gravitysandwich:
Yes, but he said no development for it. He also said its stock/unrooted.
[Nexus 4 Original Android Development] ciprianruse88:
Great :thumbup: I was very close of switching my N4 for a sgs4.:)

Sent from my Nexus 4
[Nexus 4 Original Android Development] jdmcivic:
nooo. im referring to reborn90's version.
[Nexus 4 Original Android Development] gravitysandwich:
There's more info on his Google + page if you want his review on it.
[Nexus 4 Original Android Development] aventu:
The important stuff:

diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index 4446d3f..1bb14cc 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -97,7 +97,7 @@ static unsigned long above_hispeed_delay_val;
* The CPU will be boosted to this frequency when the screen is
* touched. input_boost needs to be enabled.
*/
-#define DEFAULT_INPUT_BOOST_FREQ 1188000
+#define DEFAULT_INPUT_BOOST_FREQ 702000
static int input_boost_freq;

/*
@@ -254,13 +254,13 @@ static void cpufreq_interactive_timer(unsigned long data)

/* we want cpu0 to be the only core blocked for freq changes while
we are touching the screen for UI interaction */
- if (is_touching && pcpu->policy->cpu == 0)
+ if (is_touching && (pcpu->policy->cpu == 0 || pcpu->policy->cpu == 1))
{
if (ktime_to_ms(ktime_get()) - freq_boosted_time >= 1000)
is_touching = false;

- if (new_freq < input_boost_freq)
- return;
+ if (new_freq < input_boost_freq || pcpu->policy->cur < input_boost_freq)
+ new_freq = input_boost_freq;
}

I'm not completely happy with this solution for the 2 core touchbosst, because core1 will be boosted later than core0. I still have problems with the direct touchboost from /drivers/input/touchscreen/lge_touch_core.c as I mentioned earlier.

I have this problem too with my build.. maybe a problem with the ramdisk? I exracted it from the r155 kernel.
[Nexus 4 Original Android Development] 1234568:
Now I realise how much of a difference franco kernel makes I will do exactly that. As I say, I was trying to simplify things as much as possible. As custom kernels don't persist through rom flashes I decided to try stock kernel and remove franco.kernel app. Now I realise franco kernel is invaluable. Sitting happily on M2, patiently waiting for M3.
[Nexus 4 Original Android Development] franciscofranco:
Yes.

Yes, but its not for development, its unrooted and 100% stock.

Show me your diff from the lge_touch_core.c so see if I can spot why it ****s up. Maybe its because the cpu1 goes offline during screen off, and the policy_cpu_get(1) loses its context and boom. Try to add something like if(cpu_online(1)) if (policy_cpu1->cur < TOUCH bla bla bla)
[Nexus 4 Original Android Development] yokuyuki:
It would but the fact that you use the GPS constantly while playing Ingress and you're outside so brightness is pretty much maxed out drains the battery insanely fast.
[Nexus 4 Original Android Development] yethz:
BT works fine with me...

• Sent from Nexus 4 via Tapatalk

• Rom: AXI0M (6/13) / Kernel: Franco #155
[Nexus 4 Original Android Development] eluspo:
What gapps are using kuya?
[Nexus 4 Original Android Development] X DoZ3R:
Anyone checked this? How was the ui performance? :)

Tapatalk 2-vel küldve az én Nexus 4-ről
[Nexus 4 Original Android Development] aventu:
I tried:

if (policy->cur < TOUCH_BOOST_FREQ)
{
__cpufreq_driver_target(policy, TOUCH_BOOST_FREQ,
CPUFREQ_RELATION_H);
}

if (cpu_online(1))
{
policy = cpufreq_cpu_get(1);

if (policy->cur < TOUCH_BOOST_FREQ)
{
__cpufreq_driver_target(policy, TOUCH_BOOST_FREQ,
CPUFREQ_RELATION_H);
}
}

Screen will stay black, but the logcat keeps running like nothing happend. And there's this strange bug with color profiles. Could you make your ramdisk public, maybe in an other repository?
[Nexus 4 Original Android Development] Utini:
What usage would voltage profiles bring? Either i undervolt all the time to a safe value or not at all?
[Nexus 4 Original Android Development] steviewevie:
For the last few days, once a day I keep getting the attached notification. I am on the latest, r155.

Sent from my Nexus 4
[Nexus 4 Original Android Development] aventu:
To restore it seperately, a custom voltage profile is quite some work.
[Nexus 4 Original Android Development] Cuzz1369:
Its an easy way to restore a voltages after clearing app data.

Carbonized and francofied N4
[Nexus 4 Original Android Development] mitchdickson:
But safe voltages are not always consistent from version to version.

Sent from my iPad 4
[Nexus 4 Original Android Development] Krunk83:
Noob question here; When people say they undervolt by 100 is that just by pressing the UV -25 setting four times?
[Nexus 4 Original Android Development] ratcav:
I think so
[Nexus 4 Original Android Development] ruterjunior:
some times reboot my phone...

dont use over or under clock or another values
[Nexus 4 Original Android Development] :
I experienced the same a few days ago, especially when after or during a call my restarts like crazy. But after reflashing ROM, GApps & this kernel, everything seems well and good.

Sent from my Nexus 4
[Nexus 4 Original Android Development] ruterjunior:
here had no apparent reason, he resetou twice one unused, and another when I modified the kernel configuration in the official app....

but this kernel is good...
[Nexus 4 Original Android Development] Cuzz1369:
I know that. But some people like boot loops. Lol

Carbonized and francofied N4
[Nexus 4 Original Android Development] franciscofranco:
That is totally wrong. You need two different pointers, one for cpu0 and another for cpu1.

Weird. I think thats due to Koush's ION library. I changed to something different on the version I'm working on and its been working fine.
[Nexus 4 Original Android Development] hospital349:
franco.Kernel WIKI is now available. [MENTION=3292224]franciscofranco[/MENTION] - consider it a gift. Enjoy! :good:
[Nexus 4 Original Android Development] SweetwaterBurns:
I get a similar message before I login to the wifi network at work. It's an open access point, but you have to login via a Web page that comes up the first time you connect(similar to Starbucks'/McDonald's/college's networks)

Edit:

Franco, it's been happening since before you switched to koush 's library, btw.
[Nexus 4 Original Android Development] pitjago74:
Well keep doing like that,good job Fran,gracias:D

Gracias

Has comprado contenido de Francisco Franco en Google Play.

Número de pedido: 12999763169054705758.1361348802326082

Fecha del pedido: 19-jun-2013 17:30:42 CEST

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] aventu:
If have tried that before.

static struct cpufreq_policy *policy;
static struct cpufreq_policy *policy1;

/*
* Touch work function
*/
static void touch_work_func(struct work_struct *work)
{
struct lge_touch_data *ts =
container_of(work, struct lge_touch_data, work);
int int_pin = 0;
int next_work = 0;
int ret;
//static unsigned int x = 0;
//static unsigned int y = 0;
//static bool xy_lock = false;

//policy = cpufreq_cpu_get(0);

if (policy->cur < TOUCH_BOOST_FREQ)
{
__cpufreq_driver_target(policy, TOUCH_BOOST_FREQ,
CPUFREQ_RELATION_H);
}

if (cpu_online(1))
{
policy1 = cpufreq_cpu_get(1);

if (policy1->cur < TOUCH_BOOST_FREQ)
{
__cpufreq_driver_target(policy1, TOUCH_BOOST_FREQ,
CPUFREQ_RELATION_H);
}
}

Policy and policy1 are "pointing" on the same structure, aren't they?
[Nexus 4 Original Android Development] schnuffdroid:
a little noop question here:

when i open the app drawer and instantly begin to scroll down my apps, there's sometimes a little lag here using nova launcher.

where in the interactive governor setting do i screw to eliminate this lag?

i've already liftet hispeed_freq. to 1350 and input_boost_freq to 1188.

what am doing wrong here? :confused:

*nexus4*aokp*franco*
[Nexus 4 Original Android Development] Cuzz1369:
No lag here. Are you on r155?

Carbonized and francofied N4
[Nexus 4 Original Android Development] schnuffdroid:
i'm on 154 atm, but i have this lags no matter what kernel version i use.

there wasn't a lag when the phone was new and all was freshly set up...:D

maybe it's time to whipe everything and start from scratch, i'll do this with aokp ms2 and franco ms3 soon!:cool::D:thumbup:

*nexus4*aokp*franco*
[Nexus 4 Original Android Development] yethz:
Gapps 4.2.2 Minimal from BaNkS...

• Sent from Nexus 4 via Tapatalk

• Rom: AXI0M (6/13) / Kernel: Franco #155
[Nexus 4 Original Android Development] franciscofranco:
Yes they are, but you have policies for each cpu. Check interactive governor code. Maybe we can do something using per-cpu interface. I'll hook it up after Milestone 3 release.
[Nexus 4 Original Android Development] franciscofranco:
I just pushed a new beta .apk. These beta versions will be out every now and then for a while until I finish all the functionalities that I want to add for final v10.1.

This is what I changed on this beta:

* Nav drawer with icons, easily spotting where you want to go with a nice eye candy

* Changed from Koush's ION http client to OkHTTP from Jack Wharton, which implements the newest HTTP protocol from Google called SPDY. I won't enter in details about that algorithm, just Google it. But its faster

* Whole new Kernel downloading experience: no more custom dialog appearing after tapping auto-flash or downloading zip for a few reasons: with the dialog if the user rotated the device the activity is restart thus losing the context and bye dialog, and then it FC'ed. I had to block the sensor for this to work, but its a very jerky implementation. And second the dialog was not cancellable, and if you wanted to move away and use the app you couldn't. Now with this new implementation the Download process goes directly to the notification bar and you can multi-task at will and still use the app or whatever. For now if you tap Auto-Flash it will download the boot.img and after its downloaded it flashes and reboots the device. It will show info in the notification bar. It also downloads the zip to the sdcard to the default path or your custom path

* Now hitting auto-flash will download the boot.img directly to the kernel_backups on the SDCARD so that you can reuse it later without having to backup first

* Default SDCARD directories of power_modes and color_profiles are now under sdcard/franco.kernel_updater for consistency, so you'll have to copy your modes/profiles to the new default directories yourself, or start fresh.

* Fixed bugs from previous versions

Don't worry if you notice some inconsistencies across the app specially in some custom dialogs (upper case buttons, lower case buttons) as I'm remodelling a lot at the same time and its not obviously near finished.

The community post link is here if you want to participate there as well: https://plus.google.com/u/0/106873500108976028532/posts/5FYADkjrLER

To participate in the beta program you have to join the community and apply on this link: https://play.google.com/apps/testing/com.franco.kernel

As usually all feedback and bug reporting is appreciated.
[Nexus 4 Original Android Development] Net.silb:
And the update is up! :D

[MENTION=3292224]franciscofranco[/MENTION] Why don't you post a r156 with 0 changes so we can test the revamped update system?

Now some quick first glance feedback:

1) It seems inconsistent that in the Kernel Backup/Restore there is an icon next to Backup but in all the other menus there are no icons like that. I would just get rid of that.

2) Instead of the FK icon appearing in the top left of the action bar, I think the icon of the current section should appear.
[Nexus 4 Original Android Development] Stretlow:
There's definitely micro lag on this kernel that's not present on others (i prefer 148) but no one touches Franco for battery so its a trade off in my opinion

some will try to convince you its not there, but it is.

Have a pop at 148 see if it helps.

[MENTION=470754]Franco[/MENTION], please don't take this as impugning your work, its purely my observations and opinions.

Stret
[Nexus 4 Original Android Development] franciscofranco:
I agree on both points, thanks.

I might throw a r156 because I made some IO improvements a few days ago plus that little interactive change suggested by reborn88 and it could possibly be the last before M3. Finishing a mission on Assassins Creed 2 then releasing.
[Nexus 4 Original Android Development] Net.silb:
But why are you playing on the GS4 and not N4?! My N4 is offended now because of this! ;)
[Nexus 4 Original Android Development] gravitysandwich:
I've never seen this sot before, Franco you are the best. Running pa with this kernel, and the xlouder+beats mod. I've been playing music basically the whole time at 3/4 volume (I have over ear headphones so they need volume) lots of texting xda Google +, youtube and browsing. All auto brightness, first half is 3g then switched to 2g only.I usually get 3.5 hrs sot with the older builds! All stock settings with UV -150. I also was using the phone outside for 25 min or so. I don't wanna get *****ed at for posting these sot's but this is something I've never experienced, really happy with this. :thumbup:

Edit: lol @ the status bar is black. had a little system ui crash there
[Nexus 4 Original Android Development] Bill Gamble:
Derp

The "Kernel Backup/Restore" screen is not displaying the contents of /sdcard/kernel_backups. There are about 8 files in my directory, but the screen is blank.

Edit: read changelog, my derp, nevermind
[Nexus 4 Original Android Development] Net.silb:
[MENTION=3292224]franciscofranco[/MENTION]

If you're already playing around with the app, let me remind you that I made few suggestions a while back:
[Nexus 4 Original Android Development] tlf55:
+1 to that !
[Nexus 4 Original Android Development] nexusmaniac:
All of the Franco kernel files are now located in /sdcard/ franco.kernel_updater
[Nexus 4 Original Android Development] Are.Two:
Nevermind.
[Nexus 4 Original Android Development] Cuzz1369:
He addressed that in the changelog

Carbonized and francofied N4
[Nexus 4 Original Android Development] dsmpampis:
Hey guys my signal strength is very weak! I don't had the same issues with 154.

Tapatalked with my Nexus⁴ powered by ParanoidAndroid 3+
[Nexus 4 Original Android Development] franciscofranco:
I remember those, but I need to add Kernel sysfs entries for that, which I will add for M3.
[Nexus 4 Original Android Development] Shano56:
Like the new notification for downloading new kernels. Noticed one quirk, if you swipe the notification away while downloading, it comes back immediately. I suggest either making it permanent til downloading is complete, or stop it from coming back up. This was when downloading .zip btw. Great work man!

You should go back to r154 then, the patches are experimental
[Nexus 4 Original Android Development] franciscofranco:
Yeah, I forgot to do that :)
[Nexus 4 Original Android Development] pnut22r:
What Rom?
[Nexus 4 Original Android Development] Are.Two:
I don't know how I missed that. Thanks!
[Nexus 4 Original Android Development] dsmpampis:
With r154 and r155 to be honest I use my phone for WhatsApp, browsing, mails and a little bit of gaming.

Tapatalked with my Nexus⁴ powered by ParanoidAndroid 3+
[Nexus 4 Original Android Development] diabolicalangle:
What theme?
[Nexus 4 Original Android Development] dsmpampis:
Alloy blue

Tapatalked with my Nexus⁴ powered by ParanoidAndroid 3+
[Nexus 4 Original Android Development] ROFLkopter:
Auto brightness, 3G always on, GPS off

A wild Weedle appears!

Sent from a Paranoid Nexus 4 with XDA Premium
[Nexus 4 Original Android Development] sir*mez:
Linaro CM10.1 + Bionic from [MENTION=3908838]trailblazerz11[/MENTION] http://xdaforums.com/showthread.php?t=2145285
[Nexus 4 Original Android Development] franciscofranco:
This r156 is merely a small increment over r155. Battery should be a little bit better than r155 without sacrificing performance.

r156:

* Some improvements on the dirty writeback IO routines (check git)

* Slight change to interactive which should save some mA in the long run without sacrificing performance on UI interaction

* This is probably the last nightly before Milestone 3
[Nexus 4 Original Android Development] PelegK:
will check it out. 10x
[Nexus 4 Original Android Development] JeffyLube0:
Downloading now - thanks for the update - looking forward to milestone 3
[Nexus 4 Original Android Development] nachordez:
Time to try the new beta app download system. Performs nicely!

Nexus4 / Stock / Franco / V4A

GT-P5110 / PAC / Dohllmen / V4A
[Nexus 4 Original Android Development] gd6noob:
just wondering, does this kernel limit the cpu usage to 2 cores? when I run cpu-z, it reports that cores 1 and 2 are running while 3&4 are stopped.
[Nexus 4 Original Android Development] Albert62:
Downloading Now!
[Nexus 4 Original Android Development] franciscofranco:
No. If the load is high enough the other cores come online.
[Nexus 4 Original Android Development] alen1901:
Im new to this kernel (will try it out), and i see in OP that default UV limit is 700mv, that is for lowest freq(384mhz), right?

Sent from Sparkling Nexus 4
[Nexus 4 Original Android Development] gravitysandwich:
Well you have one core for ui or the the main thread or the main app your using.

The other is for background is processes. The other 2 cores kick on if the load is high enough. (Or when you make 3/4 cores go on on touch in the settings in francos app) This high load is achieved in gaming. Or when your doing heavy multitasking. You can find good explanations what the ui or load is on google
[Nexus 4 Original Android Development] Pure Drive GT:
does it also claim you have snapdragon 600? but it shows cpu and gpu correct as krait 300 and adreno 320 ^^

Gesendet von meinem Nexus 4 mit Tapatalk 4 Beta
[Nexus 4 Original Android Development] gd6noob:
ohh.. I see.. thanx for clarifying..
[Nexus 4 Original Android Development] nexusmaniac:
I miss the old downloading pop-up :( (not saying this ones not bad)
[Nexus 4 Original Android Development] Floydfire:
Auto-flash doesn't flash well on my phone, maybe a bad download, my luck was that I had downloaded the zip ^^
[Nexus 4 Original Android Development] xanthrax:
Wow! ^_^

sent from my Darkside of Nexus 4
[Nexus 4 Original Android Development] nexusmaniac:
Not that bit :) this bit,
[Nexus 4 Original Android Development] ciprianruse88:
You are the BOSS ! Loved r155...was milestone stuff for sure :cool:

Sent from Inferno