yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] 0.0:
it worked motley! the script worked! and the kernel booted. i am happy now, and was even more happy that i saw you put the 1512mhz back in :D

i have a question, why would ondemand be best for battery life? what about conservative?
[Nexus 4 Original Android Development] sideeffects:
The default kernel voltage for 1510Mhz (1050Mv) seems closer to the minimum stable value than the other steps. Doesn't leave much room for a bad performing chip and doesn't scale with the other steps when using global under volt. (-12.5mv on all)
[Nexus 4 Original Android Development] _motley:
You must be looking at already UV'ed frequencies, or possibly another kernel? For this kernel, 1512MHz is @1100mV by default.

Here are all the defaults in the latest build.

Freq, mV

304000, 750000

486000, 850000

594000, 925000

702000, 950000

810000, 962500

918000, 962500

1026000, 975000

1134000, 987500

1242000, 1000000

1296000, 1050000

1404000, 1075000

1512000, 1100000

Great, glad you got it working. Interactive and OnDemand govs will give similar battery life in some cases, but it will depend on how they are tuned and what the workload is. In my daily unscientific usage tests, OnDemand seems to give me slightly better battery life. Obviously this is dependent upon how I use it, and not how others might, so YMMV. Conservative would likely be too sluggish and mpdecision/PowrHAL is still in there doing its thing since this kernel is still like stock in that regard.
[Nexus 4 Original Android Development] ftarules:
Becuase the reset kernel is for STOCK and NOT for AOKP. For AOKP just flash the AOKP ROM without wiping data. Then try to flash this kernel.
[Nexus 4 Original Android Development] bamsbamx:
Hey motley, i just want to ask for underclock.... It seems that underclocking only applies to the first CPU, while the others stay as default....

Is there any way to force the other three stay offline? That way, device should work as monocore device am I right?

Is undervolting applying to all cpus???

PD: thanks a lot for your work!!!
[Nexus 4 Original Android Development] chaplen:
I am having the same problem. Min values don't stick on my second CPU and Max values only stick on the first. So only the first CPU can be underclocked
[Nexus 4 Original Android Development] meangreenie:
Force all cpu's on, then set.

Settings won't take on a disabled core. It's the same on my other phones.
[Nexus 4 Original Android Development] ptesmoke:
how? :D
[Nexus 4 Original Android Development] ctfrommn:
Governor to performance works.
[Nexus 4 Original Android Development] ptesmoke:
what app is everyone using for under volt? trickster mod is coming along very very nicely. once it has UV it will be complete :)
[Nexus 4 Original Android Development] meangreenie:
i've been using system tuner, set force all cores on in the boot settings, then turn it back to disabled after setting cpu's.. it works on the fly
[Nexus 4 Original Android Development] rlaw:
I'm wondering, too. Voltage Control (paid version) isn't able to get voltage settings for this kernel, usually don't have a problem with it.
[Nexus 4 Original Android Development] ptesmoke:
OK...this is definitely not working for me. only 3 cores get turned on,and the min/max still only applies to the first core...gonna do a fresh flash of cm.

EDIT** OK full wipe and flash. I can now adjust the other cores...but only ever 3 are active at one time...what am I missing here guys?

EDIT2** OK...after a few reboots all 4 fired up and I got them all set :) whoop!

EDIT3** core0 follows settings. all other cores settings won't stick...can anyone confirm?
[Nexus 4 Original Android Development] joshnichols189:
... The reset gives you the stock kernel. You can use it without being on stock.
[Nexus 4 Original Android Development] Locksmith81:
Hope you're joking
[Nexus 4 Original Android Development] _motley:
Build 48 posted

Build 48 posted, let me know how it goes!

This build should have the fix for spiking above the max freq you have set. Let me know how it goes. Yes, under-volting applies to all cores.
[Nexus 4 Original Android Development] Kocai:
I'm curious. Do you guys use kszaq's custom build prima b49 or motley's b49?
[Nexus 4 Original Android Development] BlueFlame4:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

The WifiFixed version :)
[Nexus 4 Original Android Development] yukkio:
I've the notification problem with wifi fixed version, I flashed the kernel, Have i do something after that?

BR.
[Nexus 4 Original Android Development] :
Can find it by searching: echo "304000
[Nexus 4 Original Android Development] thracemerin:
Nope, its not completely solved with this fix, I've been doing a bunch of testing and research in my thread, at the moment it seems to completely fix it for some and have no effect fore others, the exact reason for this is still a mystery to me.
[Nexus 4 Original Android Development] BlueFlame4:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

Perhaps router settings?
[Nexus 4 Original Android Development] thracemerin:
I'm thinking is an external problem with network hardware, yes. Problem is, not everyone has the ability to adjust the settings of the routers they use themselves because they are at school, work or on public WiFi, so we can't say its 100% fixed since its not fixed for those folks.
[Nexus 4 Original Android Development] yukkio:
May be wifi channel? Wifi security?
[Nexus 4 Original Android Development] iamhacked:
Hey thanks for this, I was looking for something like this. I started tweaking the screen with trickster but it doesn't have a lot of calibration options.
[Nexus 4 Original Android Development] mundixx:
IIRC the donate version of Trickster Mod should allow all parameters to be manipulated. And it supports both implementations (franco/faux)

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] chrone:
Totally agree. The donate supports faux interface but not new franco gamma interface at the moment.

Sent from my Nexus 4
[Nexus 4 Original Android Development] iamhacked:
Oh yeah. I thought I didn't have any money in my Google wallet account to buy it but looks like.my stolen prepaid credit card still had $3 in it lol. Looks like this is going to be easier than I thought.
[Nexus 4 Original Android Development] mundixx:
i see. Haven't used franco's kernel since b28 or so. That's when I discovered motley's :D

Haha. It's well worth the purchase. Plus, bigeyes (Trickster mod dev) has lots of love for _motley kernel :D

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] :
It is not the only one, everyone here loves _motley kernel :victory::good:

:D :D :D​

And there is a really good support between users :good::cool:;)

End of my light Off-Topic :p
[Nexus 4 Original Android Development] reynart:
Rly good kernel, the battery/performance is IMO unmatched.

If it just fixed the "buzz from earphone speaker" issue as faux kernel, this one would be the best for me.

(I presume not everyone has this issue)
[Nexus 4 Original Android Development] rlaw:
I wasn't aware that was something that could be fixed via kernel? All signs point to it being a function of all the components of the phone and em shielding..
[Nexus 4 Original Android Development] Kocai:
Most probably it's the WiFi driver.

Off topic: IMO Google pushed 4.2.x too quickly. We saw the msm_hsic_host wake lock on 4.2.1. And now flickering on 4.2.2 because of the 4 layer MDP (?)

On topic: Earlier I spent 30 minutes browsing on 3G with stock kernel and the back of my phone was unbelievably hot. Don't know the exact temperature but it was really hot. Maybe it's because my phone chip is nominal but I personally can't use a kernel that doesn't support UV because of the heat.

Anyone else have the same experience?
[Nexus 4 Original Android Development] thracemerin:
Maybe, but that doesn't explain why it works for some and not for others. It also doesn't explain why some people never had this issue even on 100% stock.
[Nexus 4 Original Android Development] :
Hi,

"was unbelievably hot" is subjective :D. Try to reproduce the same situation and check your CPU / battery temperatures ;)

With my settings after 10 mins of browsing in 3g the CPU temp is about 53 / 55 °C and battery temp is about 36 °C for a room temperature at about 21 °C...

Browsing in 3g generates heat, if you scroll in any direction quickly, zoom quickly and you change page quickly you will see that it heats up faster because the CPU / GPU are stressed + the 3g chip... (I don't know if I explained this well :confused:)

EDIT: with stock kernel or _motley :confused: Stock it seems... uses _motley kernel :D

Yes undervolting can help and you can drop the thermal throttling temperature too.
[Nexus 4 Original Android Development] reynart:
At first I had been convinced that it was only because of that shielding thing, until I flashed faux123 kernel. Its still there, but barely noticable.
[Nexus 4 Original Android Development] chrone:
+1 on hot temperature, poor 3G battery life, wakelock and wifi fiasco, and the micro stuttering/flickering you name it.

From my experience with cpu bin fast: Stock kernel is warm. CM kernel often gets hot. _motley kernel

is cool. Kudos to turn off mpdecision, undervolting by default, and all the wakelock patches on _motley kernel. :thumbup:

Bad reception on Telkomsel Simpati also contributes with the hot temperature. :(

Sent from my Nexus 4
[Nexus 4 Original Android Development] :
Which router do you use?
[Nexus 4 Original Android Development] thracemerin:
Regarding heat issues, it's like viking37 said how hot is hot? You have to remember that we're dealing with a quad core chip, in your PC your quad core chip has a lot of air surrounding it along with fans and heat sinks to get rid of that heat quickly, your phone on the other hand has little to no space for airflow and the only way to dissipate the heat is through the back case, this is going to result in your phone heating up sometimes a lot, but is it dangerous? probably not, the chips are designed to reach at least 60C under load, with no damage actually happening before they get to significantly higher than that. 60C is feels pretty damn hot, and as that heat is being dissipated through the case it's going to be warm (even hot) to the touch, this is normal and not something you should be too terribly concerned about. That doesn't meant it's not uncomfortable to hold the phone, nor does it mean that you shouldn't make attempts to lower the heat if you can, but in terms of the risk of actual damage, it's pretty minimal.
[Nexus 4 Original Android Development] demolatorul:
About the wi-fi problems, do you encounter them on routers with wep encryption?
[Nexus 4 Original Android Development] Kocai:
Yeah I know, that's why I said most probably. And looking at the Google bug tracker for this issue, they ask people with this issue to state their WiFi routers model so I don't know, maybe it depends on the router as well?

Off topic: every time I see your post, it makes me kinda miss taking a stroll at the Byward Market near Rideau. I guess spending 3 years in Ottawa makes me miss that city every now and then.

It was with stock kernel which is why I use _motley :) I'm currently testing brainbeatuk UV settings.

I just wanted to test since it's been a while since the last time I used stock. And like I said, my phone easily heats up with stock kernel. It's subjective but I feel that with _motley kernel, my phone doesn't heat up like with stock. My CPU temp is more or less the same with yours. What app do you use to monitor the battery temp?
[Nexus 4 Original Android Development] thracemerin:
Yeah, the problem is that there are so many router models with different chipsets, but you also have to include channels which vary slightly depending on region, encryption settings, etc... which makes it very complicated to pin down whether or not it's actually a problem with the N4 and the new drivers or an external problem that we have no control over so we should stop trying to solve it. It's like the data drops from the initial hsic_host patches, some people had them, others didn't and it depended to some degree on their provider, luckily that one could be fixed with changes on the N4, I'm still hoping that we can find the ultimate fix for the WiFi issue, but I'm not seeing any common link at the moment.
[Nexus 4 Original Android Development] Kocai:
Before I bought the N4, I'd heard of the thermal throttling issue which is why I have concern regarding the heat.

May I ask what fixes the hsic_host wake lock in 4.2.2? Driver changes?

When I bought the N4, I gave my Galaxy Nexus to my sister and she hasn't had any issue with notification delay. When I was still using it, I never had the issue as well. And we work at the same place so it can't be the router. My believe is that the changes have to be made on the N4 and let Google fix it.
[Nexus 4 Original Android Development] thracemerin:
Well, initially there was concern that the thermal throttle wasn't working, this turned out to be false, the thermal throttle works fine on stock in fact its slightly too aggressive, so there is no need to worry.

Driver changes pushed to CodeAurora by Qualcomm fixed it. It's not fixed in Google official 4.2.2, they did do a few things to reduce it, but it's far from fixed.
[Nexus 4 Original Android Development] iamhacked:
Wow I feel very dumb. The color presets were actually just in the "tool" menu of trickster mod.
[Nexus 4 Original Android Development] :
Hi,

I use System Tuner for the CPU temp, you can have a notification icon which indicates the CPU temp and set different update intervals. I use it when I'm on test phase:D

For the battery temp I use Trickster Mod (under Infos, scroll down). I check my battery temp from time to time, for me no reason to have a widget or a notification icon.

Or for the battery temp do *#*#4636#*#* on the dialpad, no need for an app just for the temperature.

:)
[Nexus 4 Original Android Development] Kocai:
Yeah I was looking for an app that can show graph of the battery temp and CPU temp but now that thracemerin already explained regarding my concern, it's not necessary anymore. So far 20+ hours without any soft reboot (hopefully not) using brainbeatuk UV settings. I only notice that my browser sometimes freezes when I switch between tabs.
[Nexus 4 Original Android Development] hoangtungst:
How must i undervolt to have the best performance and battery
[Nexus 4 Original Android Development] Audioboxer:
No matter what my flashaholic nature encourages, I always come back to motley. Hope to hear from you soon! Build 49 is great as it is though.
[Nexus 4 Original Android Development] chrone:
Using the uv setting from brainbeatuk couple pages might save you some battery juice. Note that his setting is for fast cpu bin. Each cpu bin is different. Stable so far on two days usage with 600mv on all 304-918mhz cpu freq steps. My cpu bin is fast, fortunately. :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] :
Hi,

It depends of your CPU... try to undervolt by 25 / 50 mV step (check this thread).

Undervolting have nothing to do with performance, but if you undervolt too much you can encounter some weird issues like graphic glitches, freeze, SOD, reboot... and undervolt don't help too much for battery life in my opinion. Different governor settings can help too, underclock also.

It's mainly your use and your settings like sync, brightness, rogue apps, etc... which will determine your battery life.

Test the kernel with stock settings for a few days and see how it goes, after try undervolt (be careful) or tweaks some governor settings.

:)

EDIT: nobody has some news from _motley? I sent him a PM but still no reply (not connected since March 22...) and no mail to contact him :(
[Nexus 4 Original Android Development] ptesmoke:
one can only hope he's OK. life obviously takes precedence. I just hope all is well or he's soaking some sun on a tropical beach somewhere.
[Nexus 4 Original Android Development] chrone:
trickster mod shows both battery dan cpu temps. i often get 30-40C battery and 49-54C cpu temperatures.
[Nexus 4 Original Android Development] cyberkid2002:
hi all,

Was having a major pain trying to getting an init.d script to run but have now sorted that. Unfortunately it seems to be missing settings when it is run. The main example is that I have set the max cpu speed for all cores to run at 1.02ghz. It only seems to apply this to certain core's. When I try to run the script manually (terminal emulator) I get the following message:

can't create /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: No such file or directory

can't create /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq: No such file or directory

can't create /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq: No such file or directory

can't create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: No such file or directory

can't create /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq: No such file or directory

can't create /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq: No such file or directory

This seems to coincide with what is happening at boot..., anyone have any ideas why or what I could be doing wrong?
[Nexus 4 Original Android Development] chrone:
as far as i know you can only set the min max cpu freq on cpu0, there's no variable stores in cpu1-3. you can check this by changing directory to /sys/devices/system/cpu/cpu2/cpufreq/ and list what's in there via terminal by typing this following:

su
cd /sys/devices/system/cpu/cpu2/cpufreq/
ls -la
[Nexus 4 Original Android Development] meangreenie:
Its because those cores are not online, you have to force them on beforehand, and this will vary depending on what hot plug driver your kernel uses.

See OP for how this kernel works, motley is very informative.
[Nexus 4 Original Android Development] iowabeakster:
Hi guys,

I'm a total "motley noob". Flashed today for the first time. So please take it easy. My first hours with the defaults on Motley seem perfect so far.

I did try and search the thread. Unfortunately "sound control" is in the title, so it returned almost every single post.... hrmmmph..... not helpful.

I am wondering what are the available tweaks, and where are they located? All I want is a little output boost.

When Franco first added sound settings, it was a simple "soundboost" variable and it just took a number 1-20. I set mine to 7 with an init script, and it was great. I got some additional volume, that was it. But, as I was suffering with other unrelated issues, I had to abandon using Franco.

I don't use any expensive apps to tweak kernels. I just force fastcharge with an init script. And, if I can get the sound boosted with another, I will be quite happy. For everything else, I think the defaults will be great.
[Nexus 4 Original Android Development] jazzboyrules:
This is confusing. Surprisingly, it looks like the cpufreq folder in cpu1/2/3 is created and deleted on the fly. Looks like the corresponding folder is created ONLY when that cpu is active. I will remove the writes to cpu1/2/3 from my script. Apparently, the values of cpufreq to 1/2/3 are copied from the cpu0 folder.

Update: I have corrected my _v2 script. Now writes don't happen to cpu1/2/3. They were not harmful, just redundant.
[Nexus 4 Original Android Development] meangreenie:
@cyberkid2000

/sys/module/auto_hotplug/parameters/min_online_cpus

Set to 4 at the beginning of your init.d then back to 1 at the end

I think the settings will stick using the hot plug driver on this kernel.. But could be wrong.
[Nexus 4 Original Android Development] :
Hi,

You'll find a script to tweaks the sound here (it's a all-in-one but there is the sound control): http://xdaforums.com/showthread.php?p=39029088&highlight=sound#post39029088 (tahnks to jazzboyrules).

And there is also some scripts floating arround here and following pages: http://xdaforums.com/showthread.php?p=38975060&highlight=sound#post38975060

Thanks to IAmAN00bie and AirOne70

:)
[Nexus 4 Original Android Development] jazzboyrules:
Does that help? Because you will notice that those [cpu1/2/3]/cpufreq get autodeleted once those cores go offline.
[Nexus 4 Original Android Development] thracemerin:
The folders will still be deleted when the cores go offline, but they should inherit the info from cpu0 when they come back online.
[Nexus 4 Original Android Development] cyberkid2002:
they dont seem to be inheriting for me... 1st Core stays at 1026, the rest jump up to 1.5ghz
[Nexus 4 Original Android Development] jazzboyrules:
Exactly! So there's no point to force all the 4 cores to write custom values in all 4 cpufreq in init.d. I just updated my _v2 script and commented out the writes happening to [cpu1/2/3]/cpufreq.

---------- Post added at 11:45 AM ---------- Previous post was at 11:44 AM ----------

Hmmm.. will have to investigate more on that when I get a chance.

Update: What file are you looking at in [cpu0/1/2/3]/cpufreq? You should be looking at scaling_max_freq. For me I am getting the same value in scaling_max_freq; the value that I set for cpu0/cpufreq/scaling_max_freq.
[Nexus 4 Original Android Development] cyberkid2002:
ignore, my bad! Is working fine and as it should be!
[Nexus 4 Original Android Development] jvbferrer:
I don't know if this has been notified yet, but I get a bootloop when installing this kernel b49 on CM 10.1 24/3 nightly.
[Nexus 4 Original Android Development] thracemerin:
Did you install b37 first? if not that's going to happen.
[Nexus 4 Original Android Development] brainbeatuk:
@franklin CPU 2 and 3 I set to performance so no min he he. Good settings for games it usually goes CPU 0 +3 so felt smooth on gta BC anyway. Just nicked the android tuner init.d script that was made.good feature

Yeah I forgot to mention that error message thing I have a workaround. I use android tuner in CPU settings click arrow to go multi core settings. Start geekbench2 and do test so all cores running then run script. Obviously have to have cpumax on amount needed in script

Its fine on init.d because all cores will be on when reading script.

@crone. I use antutu. It has a stability test shows temperature curve. Also has a performance index rating. For example stock flips from 50 to 70 every minute or so. You can see the thermal control in play I presume Most of Motleys kernel default at a more constant 60 if Iirc. My performance settings were at 90 to 100 but then went stock like 90 to 60 then back up.

Oh and tweaked my uv. Somehow 650 now works at 918 for me. I tried testing today at work my 3g battery but ran out of data like ten mins ago at 50% battery. Bad signal too

---------- Post added at 03:31 AM ---------- Previous post was at 02:58 AM ----------

The settings definitely stick even if core turns off and on I been using perfmon for a few weeks doing this. Use to just spam script lol
[Nexus 4 Original Android Development] :
Hi,

It's quite here...

Sleeps like a baby:

It's 100 % to 94 / 95 % during the night, there is a little screen on time before and after the night.

:D
[Nexus 4 Original Android Development] wathefak:
What is your setting? Yeah everything works great :) I hope motley is alright too
[Nexus 4 Original Android Development] :
Hi,

In case I show the battery history during the night my settings won't help that much but it's here: http://xdaforums.com/showpost.php?p=39543135&postcount=2777

No sync (I check my mails when I need), brightness set to 50 / 70 % it depends, always in 3g (never Wi-Fi), no undervolt and I have about 3H15 / 3H30 screen on time. Like I said my settings are not for battery life, I prefer performance over battery life.

:)

I'm worried about _motley :confused: :crying:
[Nexus 4 Original Android Development] Franklin Bernard:
I hope he is well and recovering fast.
[Nexus 4 Original Android Development] chrone:
Hello All,

Can anyone shed a light on where the path to set GPU governor -yes it's a GraphicPU and not CentralPU- I can set with via terminal?

I hope I can tune the GPU ondemand governor just like the one on the CPU ondemand one. :)

Kind regards,

/chrone