New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gravitysandwich
Old
#37301  
Senior Member
Thanks Meter 31
Posts: 121
Join Date: Jan 2013
Location: Belvidere
Quote:
Originally Posted by ciprianruse88 View Post
Franco, you bought a sgs4? I see GT-i9500 on your taptalk signature...

Sent from my Nexus 4
Yes, but he said no development for it. He also said its stock/unrooted.

Sent from my Nexus 4 using xda premium
The Following 2 Users Say Thank You to gravitysandwich For This Useful Post: [ Click to Expand ]
 
ciprianruse88
Old
#37302  
ciprianruse88's Avatar
Senior Member
Thanks Meter 7111
Posts: 3,243
Join Date: Mar 2012
Location: Inferno Paradise
Quote:
Originally Posted by gravitysandwich View Post
Yes, but he said no development for it. He also said its stock/unrooted.

Sent from my Nexus 4 using xda premium
Great :thumbup: I was very close of switching my N4 for a sgs4.

Sent from my Nexus 4

My wallpaper thread - Purity Rom and AK Kernel --> http://forum.xda-developers.com/show....php?t=2106070
How to get LAST_KMSG --> http://forum.xda-developers.com/show....php?t=2093987
 
jdmcivic
Old
#37303  
jdmcivic's Avatar
Senior Member
Thanks Meter 24
Posts: 366
Join Date: Nov 2006
Quote:
Originally Posted by franciscofranco View Post
No, there is nothing wrong, I load profiles everyday dozens of times.

Sent from my GT-I9500 using Tapatalk 4 Beta
nooo. im referring to reborn90's version.
 
gravitysandwich
Old
#37304  
Senior Member
Thanks Meter 31
Posts: 121
Join Date: Jan 2013
Location: Belvidere
Quote:
Originally Posted by ciprianruse88 View Post
Great :thumbup: I was very close of switching my N4 for a sgs4.

Sent from my Nexus 4
There's more info on his Google + page if you want his review on it.

Sent from my Nexus 4 using xda premium
The Following User Says Thank You to gravitysandwich For This Useful Post: [ Click to Expand ]
 
reborn90
Old
#37305  
Senior Member
Thanks Meter 60
Posts: 183
Join Date: Apr 2011
Quote:
Originally Posted by franciscofranco View Post
Good can you post the diff?

Sent from my GT-I9500 using Tapatalk 4 Beta
The important stuff:

Code:
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.

Quote:
Originally Posted by franciscofranco View Post
No, there is nothing wrong, I load profiles everyday dozens of times.

Sent from my GT-I9500 using Tapatalk 4 Beta
I have this problem too with my build.. maybe a problem with the ramdisk? I exracted it from the r155 kernel.
 
1234568
Old
#37306  
Senior Member
Thanks Meter 202
Posts: 599
Join Date: Nov 2010
Quote:
Originally Posted by combatdeity View Post
Why would you return to stock?
Wouldn't flashing a milestone make more sense?
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.
The Following 2 Users Say Thank You to 1234568 For This Useful Post: [ Click to Expand ]
 
franciscofranco
Old
#37307  
franciscofranco's Avatar
Recognized Developer - OP
Thanks Meter 48946
Posts: 10,783
Join Date: Dec 2010
Location: Mountain View, CA

 
DONATE TO ME
Quote:
Originally Posted by gravitysandwich View Post
Voltage profiles coming? In the next update?
Please?
Sent from my Nexus 4 using xda premium
Yes.

Quote:
Originally Posted by ciprianruse88 View Post
Franco, you bought a sgs4? I see GT-i9500 on your taptalk signature...

Sent from my Nexus 4
Yes, but its not for development, its unrooted and 100% stock.

Quote:
Originally Posted by reborn90 View Post
The important stuff:

Code:
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.
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)
franco.Kernel - Galaxy Nexus
franco.Kernel - Nexus 4
franco.Kernel - Nexus 7
franco.Kernel - Nexus 10


Google+ | Twitter | Portfolio

CruzerLite franco.Kernel case for the Nexus 4
CruzerLite franco.Kernel case for the Galaxy Nexus

You don't like my reply? Read this

However, if you put any trust in Quadrant scores you could use them to prove that dancing naked for 5 minutes in your garden affects device performance. By Chainfire
The Following 4 Users Say Thank You to franciscofranco For This Useful Post: [ Click to Expand ]
 
yokuyuki
Old
#37308  
yokuyuki's Avatar
Senior Member
Thanks Meter 130
Posts: 559
Join Date: Sep 2012
Location: New York
Quote:
Originally Posted by steviewevie View Post
If I could get four hours of SOT whilst playing Ingress, now *that* would be cool

Sent from my Nexus 4
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.
Phone: LG Nexus 4 | ROM: Rooted Stock | Kernel: Franco r155
Tablet: Microsoft Surface RT | 32 GB | Jailbroken | Black Touch Cover
Past Devices: HTC Nexus One | B&N Nook Color | Samsung Galaxy S II i9100

Tags
battery, franco, kernel, nexus, updater