yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] :
Hi,

Yes it would be great but I don't know if it's possible :confused:

I took a rapid look in: /sys/class/kgsl/kgsl-3d0/**** there is some files for gpuclk (GPU clock) and /sys/class/kgsl/kgsl-3d0/device/kgsl/kgsl3d0/pwrscale/trustzone/governor and there is the Ondemand file but it seems nothing is tunable. There is also a lot of file like this in different path after /sys/class/kgsl/kgsl-3d0 (I mean redundancy file / path). Or it needs to be activate / hard coded in the kernel :confused:

Or maybe I missed a path... Not sure if it's possible...

This + GPU overclok possibility :D

:)

EDIT:

I looked on github for lge-kernel-mako

as an example

, but I'm not a dev, but it seems that a lot of stuf about the GPU is in drivers/gpu so it's hardcoded, maybe it's here that some Ondemand governor settings for the GPU needs to be enable (in the case where it's possible to add some tunable settings) :confused:

All this is beyond my knowledge :rolleyes: :D
[Nexus 4 Original Android Development] meangreenie:
You can change that file to performance.
[Nexus 4 Original Android Development] IAmAN00bie:
Yeah, TricksterMod seems to read from that file, so that's probably the correct place to change the GPU governor.
[Nexus 4 Original Android Development] trillo69:
Is motley ok? Haven't seen him on any thread for a while. :(
[Nexus 4 Original Android Development] :
Hi,

The thing is not to change the GPU governor but if there is a way to tune the Ondemand GPU governor ;). Like chrone said if it's possible like the Ondemand governor for the CPU, maybe a kind of sampling_rate and down / up_threshold ?

And actually it seems it's not possible, we can change only between Performance / Ondemand governor. And maybe it will never be possible to tune the Ondemand GPU governor :confused:

I ran some 3d / 2d benchs with both Performance and Ondemand governor (for the GPU) I didn't notice a difference, same thing in general UI...

That's what everyone asks and we don't know, no news since the March 13th, about his health... :crying: . I hope there is nothing serious for him :confused:
[Nexus 4 Original Android Development] superleeds27:
Whats the latest version then? Is there still a build hidden in here with wi-fi fix?
[Nexus 4 Original Android Development] :
Hi,

Try the one here with a Wi-Fi patch: http://xdaforums.com/showpost.php?p=39295700&postcount=2690 (thanks to kszak).

And as for the last version it's the b49, the "official" in the OP.

:)
[Nexus 4 Original Android Development] hoangtungst:
I think b40 is better than b49
[Nexus 4 Original Android Development] BlueFlame4:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

In what way?
[Nexus 4 Original Android Development] :
Hi,

I'm curious too, I would to know why b40 is better than b49 :what:. Because except the touchscreen and the soundcontrol for b49 (stuff from the other b4* series and for both as an option, you use them or not) there nothing different between b40 / b49...

So it's about what that b40 is better than b49? It's nice to give us an advice / opinion but more explanation would be welcome...

:)
[Nexus 4 Original Android Development] trillo69:
Well, I'm almost sure we had better battery life with b39. I remember doing 5h screen time and almost 2 days on a charge. Anyway this ketnel is the best imho, easy to reach 2days and 4h of screen on time.

As for the wifi notifications patch, i think the last version with it is b44 or b45.
[Nexus 4 Original Android Development] :
Re,

Yep b45 with a possibly fix for the Wi-Fi but reverted in the b48:

So maybe the better is to test the b49 from kszak.

As for the battery life between b40 / b49 I don't know, I have not noticed anything at all (maybe you have changed something in your settings, your use, an app, or...?) :confused: , anyway me and battery life... :laugh::laugh::laugh:

:)
[Nexus 4 Original Android Development] AcmE85:
No change in Battery-life here between 40 and 49.

Always around 1-2 days with 4-5h screen-on time (data) or 6h+ (wifi).

Could not be better for me :good:
[Nexus 4 Original Android Development] ceejay83:
What settings?
[Nexus 4 Original Android Development] nextelbuddy:
please tell us how you manage to get 2 DAYS of battery life on ONE charge and still get 5 hnours of screen on time?

are you turning off your mobile connection and only using WIFI? are you disabling mobile and wifi connections when screen is off and mobile conection when wifi is enabled?

i downloaded data toggle pro and setup rules to:

disable Mobile data connection when WIFI is on

disable Mobile data connection when screen is off

disable Wifi when screen is off

disable Wifi and Mobile when device is idle fo more than an hour

i then turned on my screen brightness to the LOWEST setting and then set SCREEN to NEVER turn off and left the device idle for a day.

I was able to get 7 hours on screen time but only 1 day and 2 hours before battery died completely.

this test is nill because if i was using it at all there is no way I would get that much screen on time and 1 day of life

so how are you using your device and getting 5 hours screen time AND 2 days on a single charge please?
[Nexus 4 Original Android Development] AcmE85:
Unofficial Linaro CM 10.1 + Bionic + motley b49 with wifi-fix

At home wifi only, nothing syncing, no background apps except Whatsapp

Outside data always active, nothing syncing, no background apps except Whatsapp

Display always on automatic brightness

No Facebook-app -> Facebook through AOSP-Browser, I refresh mails when I want to.

When I go to active apps, there are only 4 apps running: WhatsApp, Apex Launcher, Google-Services, AOSP-Keyboard.

Maps is frozen by Titanium Backup and only active when I open it.

No Google Now.

Stock Kernel settings, nothing tweaked.

As to specific roms, I came to the conclusion that it does not matter which rom you are on.

When I got my phone I noticed no change in battery life when I switched from stock to cm10.1 (with stock kernel!).

Also tried AOSPA and AOKP always the same battery life.

The only thing that had some effect was the kernel. I tried faux, harsh, franco -> always back to motley's! (for differing reasons)

Old but the usual behaviour:
[Nexus 4 Original Android Development] z3r0_x:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

Can somebody tell me what the perfect Hotplug parameters are when using only 2 cores? I fear the presets are optimised for 4 cores, right?

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Original Android Development] hoangtungst:
My phone has a bit lag in app drawer. I'm using motley b49 and b40 with pa rom. How can i make it fully smooth?
[Nexus 4 Original Android Development] ceejay83:
What?!

I've actually toned down the settings for battery and everything is still butter. On PA also
[Nexus 4 Original Android Development] :
Hi,

Perfect Hotplug settings for what :confused:, without more details the "perfect" setting mean nothing...;)

For me for 2 or 4 cores the rules for hotpluging are the same for 2 or 4 cores, in your case you just change the number of online cores. After that yes you can tweak the Hotpluging routines but for what? Battery or "Performance" efficiency?

Don't remember who (maybe IAmAN00bie) had posted his settings with some changes in the hotplug settings, take a look.

EDIT: found it here: http://xdaforums.com/showpost.php?p=39374422&postcount=2714

Hi,

What are your current settings (governor, etc...)? Try my settings a few pages back :p, but tomorrow you'll come back and say "WoW my battery drain to fast!!! It's crazy!" :D

Just kidding, we need to know what your actual CPU settings to help you ;)

Speaking about battery life, here what I get with about two days 1/2 without charging (my settings are a few pages back) some calls and only XDA app / browsing (light use for these days):

Something kills my battery... :p :

For sure 25 mins of benchmarking don't help for battery life... :D:D:D:laugh::laugh::laugh:

:)
[Nexus 4 Original Android Development] hoangtungst:
This is my current setting
[Nexus 4 Original Android Development] :
Re,

Thanks for the detailed settings :), good point to set the min CPU freq to 486 Mhz, it helps with some micro lags / stutters.

With the Interactive governor there is a lot settings to tweaks, first try to reduce a little the hispeed_load to 85 for example and timer_rate to 15 000 or 10 000. You can also set the hispeed_freq to 1026000.

You can also set boost on 1, but it seems it's not a setting available in Faux app.

You need to try these settings for a day (more / less, as an example) with your current use to see if there is an improvment and an impact on battery life.

Maybe try SIO or Deadline I/O scheduler, not sure if it makes a real improvment in general UI but it doesn't hurt to try.

I'm not too familiar with the Faux app, Trickster Mod offers more settings for the governor control for example.

:)
[Nexus 4 Original Android Development] hoangtungst:
Thanks, i have seen your setting. I will try it and report later
[Nexus 4 Original Android Development] veyka:
Setting boost to 1 will mean that it would always be at the high speed freq, so unless you want that, dun do it, that's basically what the power hal uses to boost on touch rather than something you need to enable.

Sent via Nexus 4
[Nexus 4 Original Android Development] :
Hi,

I know that if you set boost to 1 then choose your hispeed_freq to what you want it will be used as a min CPU freq, I understand. Before I used the boost and my hispeed_freq to 1026 and yes my min CPU freq was only 1026 it's smooth but not battery friendly I agree. You can set another freq. It depends what you want... it was just an example of different settings you can have with the Interactive governor.

Like as I always said I share my settings and my tests wich are probably not the best settings nor the settings for battery life (for sure LOL and now you should know that the battery life... I do not care a bit) and not the settings for everyone with different use / goal as me but I try to test the maximum of things and I try to analyze my results and my settings with my little knowledge and the searchs with my friend Google :D

The user say that he have lags, we try to find some settings to avoid this. After it's also to the user to test some settings, compare the general comportement of his phone (UI, battery, etc...), check his CPU usage, etc... to find the best settings that suit its needs. He can use my settings and modify some of them for it suit its use. It takes time and attention to find the good settings... all is not to be taken literally but to take as an example.

Anyway thanks for the reminder :)

:)
[Nexus 4 Original Android Development] pa.pn2:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

Are these settings bat friendly or more performance orientated
[Nexus 4 Original Android Development] :
Hi,

Wich settings? Mine?

If it's mine it's definitely for "performance", take a look HERE and check my CPU usage... it's not for battery life.

I repeat: I don't care about battery life (at least I need about 3 hours screen on time for about 12 hours without charging), my settings are for example, I mean it's these I use for my OWN use and my OWN goal and it's maybe not for a daily use for most users here so not my whole settings are to be considered, plus maybe for some settings I'm wrong even for better "performance" ;)

But I like playing with some settings and test the result first for general UI and also I play a little with benchs :D, after I take a look at my battery life...

I will not sacrifice performance, speed, smoothess, etc... over battery life... I don't set my screen brightness to 10 % (I see it) to gain 1 hour of screen on time nor I'll underclock my CPU to 1,24 Ghz with only 2 cores always online to gain another 1 hour. We have a good quadcore with a good screen I take this opportunity to use my phone as I like. I mean if I wanted to have 3 days battery life with 5 hours screen on time I'll bought another phone with a ridiculous hardware... :D

We have almost a "beast", I use it as such :). I enjoy everything that this phone offers at all / different levels and I will not sacrifice it to gain something else, mainly because it's not my goal.

I see people with 6 hours screen on time, good, but only Wi-Fi, undervolted, underclocked, only 2 cores used, 15 % brightness, with xy tweaks or apps for battery life, etc, etc... It's not my goal so I can't use my phone like this.

In any case all my settings are not oriented for better battery life for sure, it's not my priority. My phone runs like I want, I use it with all its potential and it's the most important for me.

I do not know if you know what I mean, it's hard for me in English to properly explain, but I understand myself :laugh:

It's also why I love this kernel, all can be tweaked at different levels for performance (for me) or battery life (for others). And even with the stock settings it's a kernel with very good balance between performance / battery life but sometimes we want more, whether for performance or battery life, each his own goal ;)

Some people like / want test the limits of their phones about battery life and some others it's about performance... it's why I would like to have the ability to overclock the GPU and why not a little more CPU overclock like 1.72 Ghz :D

:)
[Nexus 4 Original Android Development] trillo69:
Sorry for being late. To get that I use wifi as much as possible instead of 3g, and using 2g if i just use whatsapp because cell coverage is pretty bad in my area so try to get 3g data is like stabbing your battery.

Also, Google Now disabled as it is pretty useless here in spain. But everything else enabled (location, sync, etc).

And that's all, I use autobrightness always. Im far from 5h of screen time now, but still 43% remain with b49 and aokp pub rom:

By the way, my screen time is mostly on tapatalk, currents and browsing. Almost none gaming
[Nexus 4 Original Android Development] chrone:
setprop tweaks to reduce micro stuttering and choppy scrolling

I've been playing with setprop on init.d script thanks to motley init.d support for stock rom.

This give me the best smooth experience except for facebook app:

setprop persist.hwc.mdpcomp.enable true

setprop persist.sys.ui.hw 1

setprop debug.sf.hw 1

setprop debug.composition.type gpu

setprop windowsmgr.max_events_per_sec 180

setprop ro.max.fling_velocity 8000

setprop ro.min.fling_velocity 8000

Do note that if you're using avast, you might consider disable the scan on execute app on shield protection. This will give you smoother scrolling.

The rest of my script inspired by _motley, faux123, brainbeatuk, android.googlesource.com, codeaurora.org, and the people in this thread, is hosted on the following link:

http://db.tt/8eqBhzgd

resources:

kernel 3.4.x cpu governors from android.googlesource.com

kernel 3.4.x interactive cpu governors from android.googlesource.com

persist.hwc.mdpcomp.enable=true for max rendering up to 3 layers from android.googlesource.com

force hw acceleration from android.googlesource.com

composition type from android.googlesource.com

windows manager events from android.googlesource.com - out of date information unfortunately

max fling velocity from code aurora

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

Thanks for your script and your search, I'll take a look. For the entry you've posted we can directly edit the build.prop ;)

Like this:

But are you sure that these build.prop edit do something?

Question about this in your script:

Why not activate them? What are the last 2 lines?

Thanks :)

EDIT:I had not seen your edition about googlesource.

EDIT2: there is some files interesting in /d/clk/ like krait 0 / 1 / 2 / 3 _m_clk... all is set to 0 (so disable), it seems it's related to the CPU and each core... :confused:

But I don't know what it is for :confused:
[Nexus 4 Original Android Development] chrone:
errr.. i could not find legitimate resources on the two last of the lines. the only thing i can find is why qualcomm decide to disable the clock vsync in order to save battery life. i've tested the gpu vsync (if it's truly gpu vsync command) before and it didn't work as expected, the micro stuttering on transition animation occured again after several reboots later. :/

resources:

Turn off mdp_vsync_clk if it's not explicitly enabled - codeaurora.org

Disable MDP/MDDI/Vsync clocks if there are no frame updates and enable them on any new updates - codeaurora.org

using the setprop tweaks i posted above and after dozen of reboots, the micro stuttering has not yet appeared. will do the test tomorrow under the sun light. in my experience, a good amount of unstable ambient brightness triggers the micro stuttering on transition animation if auto brightness is enabled.
[Nexus 4 Original Android Development] hoangtungst:
i have tried viking's setting with b40 + pa rom but my phone still has a bit lag when i scroll app drawer
[Nexus 4 Original Android Development] :
@ chrone,

Since it seems you're a boss to find some useful informations (;)), do you think you can find something about this:

I find it hard to find and I'm tired now, thanks :)
[Nexus 4 Original Android Development] ceejay83:
Can anyone share settings for battery life? I'd like to still keep 4 cores online@1.5
[Nexus 4 Original Android Development] chrone:
much appreciated, dude! :)

yeah it took me a whole week to find the resources and tweak the build prop parameters and back and forth different combination of roms and kernels (stock kernel/faux kernel/motley kernel <-> cm10.1m2 rom/cm kernel/motley kernel) to see whether the tweak is placebo effect or not. haha

there's so many build prop tweaking here in xda, and often i don't know what the parameter is for.

i'll take a look at it once i've got free time. will resume enjoying my tweaked nexus 4 this weekend. :D

greater than stock of course. _motley's default settings left you with the safe under-volted four cores @ 1.5GHz, minus the mpdecision and the reduced msm_hsic_host wakelock, you'll get great battery life.
[Nexus 4 Original Android Development] :
Hi,

Ironic?

There is a time where you have to choose between performance and battery life or at least find a good balance... but if you want battery life

efficiency with all cores online at 1.5 Ghz... it will be a little hard...

:)

You're welcome and no worries, you're a crazy tester like me :D

Most of the build.prop tweaks do nothing (or nothing for Jelly Bean), I can't find the link where some build.prop tweaks are tested and the result is: most of them are an urban legend (with explanation, details,source files, etc......).
[Nexus 4 Original Android Development] hoangtungst:
Viking, do u turn on fsync?
[Nexus 4 Original Android Development] ceejay83:
I'm not talking about 4 cores @ 1.5 24/7 if that's what you meant. I see people in here saying they run at 1ghz with dual core only with great battery life. I'm just looking for tweaks to the stock settings that can improve battery life a bit
[Nexus 4 Original Android Development] :
Fsync off but it's not that wich can help you, I see that my settings don't help you :crying:, what rom are you using?

Ah ok sorry I misunderstood you, so I'm not the right person for battery life settings :D, a few pages back there is some scripts floating around for battery life if I remember right or another user will surely help you ;)
[Nexus 4 Original Android Development] hoangtungst:
I'm using pa 28 MAR
[Nexus 4 Original Android Development] :
Re,

Ok, this rom is not reported as a "laggy" rom. You have said your lags are in the app drawer, only here? Where exactly in the app drawer (opening, scrolling)?

Stock launcher? Clean install?

It can be caused by too many factors, not necessarily caused by the kernel or CPU settings. Try the Ondemand governor if my settings for Interactive don't work or try another Interactive governor (in my last posts), also you can try the script posted by chrone (see a page back).

So first, if if you have not done a clean install... do it :D

After still trying some Interactive governor settings or try Ondemand... If all this does nothing ... so I do not know unfortunately :(

You can also try THESE SETTINGS posted by IAmAN00bie .

It's maybe not kernel related...

I hope this will help you ;)

I do not know about you guys but I would like to flash something... :p:laugh:

:)
[Nexus 4 Original Android Development] pa.pn2:
are the settings from noob bat friendly or performance related?
[Nexus 4 Original Android Development] :
Hi,

He should answer itself but I think it's balanced between performance / battery except for the overclock :D

Set the max CPU freq to 1.51 Ghz and leave the other settings as it, try and see ;)
[Nexus 4 Original Android Development] pa.pn2:
i will

btw, you should try out carbon.its really smooth and fast.nice rom so far:silly:
[Nexus 4 Original Android Development] mikeymop:
Battery life on this kernel is amazing! The lower clock speeds really help, I'm looking forward to your future work.
[Nexus 4 Original Android Development] IAmAN00bie:
They're IMO a good balance. The massive undervolting on the 918MHz slot is what really makes it run cool, and the rest of the settings are performance related.
[Nexus 4 Original Android Development] pa.pn2:
AW: [KERNEL][Mar 10][b49] _motley kernel for the N4 (add faux sound control)

Thx. I will give it a try
[Nexus 4 Original Android Development] colobos:
If I'm coming from Franco kernel using PA can I just straight flash or do I need to do other stuff? Tried reading first post don't know if it's cause I'm tired or just being stupid but not sure what I'm needing to flash and in what order

Thanks for any help

Sent from my N4 ... @danntracey for android/football news!!
[Nexus 4 Original Android Development] pa.pn2:
to be safe you should first flash a reset kernel

i think you will find it in the first post from OP

then flash b37 and directly after b45.thats it
[Nexus 4 Original Android Development] hoangtungst:
Thank for your reply . My phone has only lags in the app drawer and app Facebook when i scrolling . I have downloaded the file "91cm.txt" from chrone . So what must i do to use this file(script) ?
[Nexus 4 Original Android Development] :
You're welcome ;)

Remove the .txt extention and put the file in your init.d folder (/system/etc/init.d) with a file explorer with root permissions and set the correct permissions (it depends of the file explorer but in general it's by longpressing on the file then autorisation / permission set like rwxr-xr-x or like the other scripts in the init.d folder) then reboot.

In settings/developpers options, have you enable "force 2D GPU rendering"? If not try with it enable.

:)
[Nexus 4 Original Android Development] hoangtungst:
thank you , i will try . I have enabled force 2D GPU rendering

---------- Post added at 02:13 AM ---------- Previous post was at 01:46 AM ----------

how can i know that the script is running ?
[Nexus 4 Original Android Development] chrone:
The easiest way is to Install trickster mod to see the changed value.

You can play with each nominal to see what's best for your performance/battery life. Becareful with the undervolting section, not all chips are created equal.

Sent from my Nexus 4