yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] hulicow:
sir what linux kernel version is this? is it 3.4.66?
[Nexus 4 Original Android Development] cantevencode:
3.4.64 I believe
[Nexus 4 Original Android Development] panart:
1.7.1 is 3.4.64

1.7.2 is 3.4.65
[Nexus 4 Original Android Development] ciprianruse88:
[MENTION=3750240]stratosk[/MENTION]

Here is Purity init.rc file ...sorry for the delay. --> https://db.tt/amAjIhVR
[Nexus 4 Original Android Development] bhanumagotra:
Is 1.7.2 out??

Is version 1.7.2 out because I am seeing some comments mentioning it .. but can't find the download link ..

Sorry If i missed something :confused:
[Nexus 4 Original Android Development] stratosk:
Thanks, my friend. I will check it.

It was just a test version.
[Nexus 4 Original Android Development] bhanumagotra:
thanks for clearing that up :)
[Nexus 4 Original Android Development] spelaben:
Random reboot on semaphore 1.7.1: https://db.tt/H45q9Vks
[Nexus 4 Original Android Development] stratosk:
Bad zip file.

Can you please resend?
[Nexus 4 Original Android Development] ciprianruse88:
Last boot reason: reboot - [MENTION=3750240]stratosk[/MENTION] - I've uploaded spelaben's last_kmsg - https://db.tt/EccEbbFw
[Nexus 4 Original Android Development] stratosk:
I can see only a normal reboot from TWRP.
[Nexus 4 Original Android Development] spelaben:
Mh, weird because I was sleeping and when I woke up I just saw the boot screen. :p

I will clean flash my setup anyway because I was hopping from kernel to kernel the last days, returning to semaphore again!
[Nexus 4 Original Android Development] Barbatos19:
What do we got here? An official one?
[Nexus 4 Original Android Development] szucsgf:
No, just a test version.
[Nexus 4 Original Android Development] nemanja066:
Stratosk looking for way to be as module, not included in the kernel. :) After this, follow final version :D
[Nexus 4 Original Android Development] alcurtis93:
Do any of these kernels work with cm 10.2? :)
[Nexus 4 Original Android Development] PetritH:
Yes, if you flash colorfix after
[Nexus 4 Original Android Development] stratosk:
This is very interesting!

http://www.phoronix.com/scan.php?page=article&item=linux_312_performance&num=1
[Nexus 4 Original Android Development] gpvecchi:
Adreno=Radeon anagram...
[Nexus 4 Original Android Development] alen1901:
Very. But i stopped reading from where it says that it uses mid freqs more but high and low freqs less. That means more battery drain (in phones) which could be tuned with other parameters, but, adreno320 is not AMD graphic card in my knowledge.
[Nexus 4 Original Android Development] malcho:
BiH-Lituania 1:0

Greece-Lichtenstein 2:0

Sorry my friend not enough for Brasil:)

Get thrashed!!!!!
[Nexus 4 Original Android Development] alen1901:
Lets see how Croatia will play until the end. :(
[Nexus 4 Original Android Development] malcho:
Uh,big mistake against Belgium last game.

Wish you all well but...

Get thrashed!!!!!
[Nexus 4 Original Android Development] meangreenie:
Basically saying that default cpu governors have sucked donkey balls for years.
[Nexus 4 Original Android Development] stratosk:
Well, the most interesting part (for me) is that a patch that I submitted and was accepted in Linux kernel improves not only the CPU performance but also Radeon graphics. Of course in our phone we have different graphics system. Phoronix author will benchmark other graphics systems too soon.

IMHO, you should read more because my benchmark results during my patch submission show that the power consumption is reduced a little bit and the performance is better. The results were confirmed from kernel maintainers Rafael Wysocki and Borislav Petkov.

This is because of the 'race to idle' effect. The CPU finishes it's job faster and stays longer on an idle state.

Anyway, my post about this article was because I found it interesting generally, because I feel proud about it and because I wanted to show this to people who first tested it and helped a lot using Semaphore (the patch implemented first in this kernel for this device)
[Nexus 4 Original Android Development] galaxys:
Found it very interesting! Congrats on your kernel innovations!! Cool
[Nexus 4 Original Android Development] alen1901:
now i find it even more interesting. ill make sure i read all of it when i get time. ;) in the mean time, iphone has an event on october 22. i guess google will have event day before or after to take away all eyes from iphone, like they always do :D
[Nexus 4 Original Android Development] alanhenrique:
This kernel is good ! i have more battery, but now my phone reboot on player video.
[Nexus 4 Original Android Development] spelaben:
Just had 2 soft reboots in a row, maybe it's the ROMs fault?

https://db.tt/fXDbN94v
[Nexus 4 Original Android Development] stratosk:
As fas as I can see, no problem with the kernel.

Did you flash the kernel on a clean ROM?
[Nexus 4 Original Android Development] ciprianruse88:
I have 176 hours up time with 1.7.1 and Purity rom and everything is perfect.Maybe you should do a clean install or provide logcat to rom dev to see if there is an rogue app or a rom problem.
[Nexus 4 Original Android Development] spelaben:
Will do and report back. :)
[Nexus 4 Original Android Development] Cybergr:
I passed by this post only to congratulate StratosK for his amazing job on Semaphore Kernel.Well done and keep it up!

Συγχαρητήρια συμπατριώτη!
[Nexus 4 Original Android Development] coloxim:
I guys...I've stupid question...

I've seen in semaphore that by default min CPU active are 2..

This thing helps of course in performance, but I don't rember worst it helps for the battery too, because the core isn't always on/off on/off, is it true?

I read this thing in this thread, or I've dreamed?

Thanks...

Inviato dal mio Nexus 4 con Tapatalk
[Nexus 4 Original Android Development] MuertoKo:
Bumping this question as I got no answer but adding some more info: Tried switching to linear instead of exponential just in case, still same issue, screen auto-dims when heating, switched kernel and so on, same issue.

Really I'm the only one having this? :S
[Nexus 4 Original Android Development] Skkip:
[MENTION=4557785]MuertoKo[/MENTION]

This is the normal behaviour of thermal protection on nexus 4 :)

...
[batt_therm]
sampling 5000
thresholds 360 370 380 390 410 420 450
thresholds_clr 350 360 370 380 400 410 440
actions cpu+gpu+lcd+battery cpu+gpu+lcd+battery cpu+gpu+lcd+battery cpu+gpu+lcd+battery cpu+gpu+lcd+battery cpu+gpu+lcd+battery cpu+gpu+lcd+battery
action_info 1512000+400000000+248+0 1296000+325000000+228+0 1296000+325000000+208+0 1188000+200000000+195+1 1188000+200000000+195+1 1188000+200000000+195+2 1188000+200000000+195+3
[Nexus 4 Original Android Development] alcurtis93:
Can someone please send a link to color fix zip. Can't find one and would like to try this kernel
[Nexus 4 Original Android Development] .dan:
a question about the led triggers red, green, and blue. any advantages or disadvantages to using this feature in the kernel instead of the feature in a rom to indicate battery status (low, charging, full)?

any conflicts between them? thanks.
[Nexus 4 Original Android Development] snak3ater:
cm10_colorfix-signed.zip
[Nexus 4 Original Android Development] stratosk:
I don't know how your ROM handles LEDs. If it uses kernel's triggers then it's the same mechanism and there is no difference.

Of course, if you try to set the same setting from Semaphore app, init scripts or another app and the same time from your ROM settings then you may have conflicts.
[Nexus 4 Original Android Development] csunny95:
Will this kernel works for MIUI V5? If yes, which version should I download?
[Nexus 4 Original Android Development] stratosk:
If anybody wants to test the attached version...

- Linux kernel 3.4.66

- resolves the logger issue on some custom roms (tested on Slim). Remember to enable the logger module and then reboot. Also flash this version over the ROM's stock.
[Nexus 4 Original Android Development] panart:
Download Semaphore 1.4.1
[Nexus 4 Original Android Development] csunny95:
Cannot Use version 1.5?
[Nexus 4 Original Android Development] panart:
MIUI is based on Android 4.2.2

Last Semaphore version for Android 4.2.2 is 1.4.1
[Nexus 4 Original Android Development] csunny95:
But I have tried to flash version 1.4.1, it doesnt boot and just stuck on the boot animation
[Nexus 4 Original Android Development] -iNSiGhT-:
Do we have to flash over the ROMs stock kernel even if we're already on Semaphore 1.7.1?

Paranoid mako
[Nexus 4 Original Android Development] stratosk:
If you have issue with logger, yes.
[Nexus 4 Original Android Development] Fenvarien:
Works great here, no issues with the logger (using Purity ROM). :good: :)
[Nexus 4 Original Android Development] -iNSiGhT-:
I had no issue with 1.7.1 so I never used log...

BTW, I dirty flashed the ROM before your 1.7.3 version.

All seems as good as 1.7.1, as usual with all your stuff!! ;)

Paranoid mako
[Nexus 4 Original Android Development] emanuele1986:
With the cyanogen of today and semaphore 1.7.1j the colour are broken. Fix it ;). It's possible to have always on the touch wake?
[Nexus 4 Original Android Development] hellsgod:
If you'd like to use Semaphore, don't use CM or flash this "colorfix". Thats the only fix.

hells
[Nexus 4 Original Android Development] Jonathan10117:
Is deep idle provided in the Semaphore manager app? I can't seem to get it working via terminal. Really excited to try this feature since I use my phone as a music player often. :)
[Nexus 4 Original Android Development] spelaben:
//delete
[Nexus 4 Original Android Development] XuperLugia:
It makes me proud to have donated to you a pair of times up to now, congratulations on the patch, I hope to see 3.12 over Android and also everywhere some time soon.
[Nexus 4 Original Android Development] MuertoKo:
Yay! That's a good answer indeed, Thank you so much for it!

I may then try to UC to 800MHz or something when the dimming starts to help it cool down without higher dimming!

Would this be suitable to be adjusted in some way by us, like scripting or perhaps in kernel (tricky to touch thermal things I know)?

Enviado desde mi Nexus 4 usando Tapatalk
[Nexus 4 Original Android Development] stratosk:
No, I will not fix it. :)

It's possible through sysfs to use a delay larger than 5 min (not through Semaphore Manager), but it's not recommended.
[Nexus 4 Original Android Development] panart:
Try one of the recommended kernels in this post.
[Nexus 4 Original Android Development] spr33:
[MENTION=3750240]stratosk[/MENTION]

Would you be able to allow us to configure GPU clock speed? I'd like to do some tests to see how (if at all) it affects battery life when using a lower speed.
[Nexus 4 Original Android Development] gpvecchi:
I LOVE test versions! Anything for J Roms, please?:D
[Nexus 4 Original Android Development] meangreenie:
You can set a lower speed now....

/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

Or by app.
[Nexus 4 Original Android Development] spr33:
I've set it in TricksterMod only for it to revert back to default after a while. Reported by several users too.
[Nexus 4 Original Android Development] californicated:
Is there anything we can do to make the phone not slowdown after some days without reboot? Of course it's worse with other kernels :D

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] alen1901:
Well, im at 190 hours of uptime on purity + semaphore and no slowdowns here.. Fast almost as after clean instal. Yeah baby yeah! :p
[Nexus 4 Original Android Development] ciprianruse88:
Beat ya !...I have 204 hours up time :p
[Nexus 4 Original Android Development] alen1901:
Well, you will be the first to receieve next purity build to test, so your time will reset, and i will beat you. ;) :p
[Nexus 4 Original Android Development] nemanja066:
Excellent battery+performance :)

Interactive+SIO-175 mV UV= Great Kernel (and ROM) :D
[Nexus 4 Original Android Development] Ümit:
Which rom ist?

Nexus 4 üzerinde Tapatalk ile gönderildi
[Nexus 4 Original Android Development] nemanja066:
Cataclysm. :good: I noticed that OnDemand uses more battery power than Interactive. More often operates at a higher frequency. :)
[Nexus 4 Original Android Development] senthilrameshjv:
I'm also using cataclysm now.. Would like to try this kernel but does this have kexec built in?? Cos nowadays it is difficult to live without it..
[Nexus 4 Original Android Development] tourlek:
please explain how to setting ^^
[Nexus 4 Original Android Development] panart:
Use Semaphore Manager to change Governor, Scheduler and to apply undervolting (see screenshots).

Don't UV to -175mV if you haven't undevolted before, start with -100mV and if your device is stable go to -125mV, then -150mV and -175mV.

Tick "Apply on Boot" ONLY if you're sure that your device is stable at the current UV.
[Nexus 4 Original Android Development] BlueFlame4:
ohai! :)
[Nexus 4 Original Android Development] tourlek:
wow thank you ^^:fingers-crossed:
[Nexus 4 Original Android Development] "D":
Do you have the Semaphore Kernel. 1.7.3 ? I see the version number 1.7.3 on your screens.
[Nexus 4 Original Android Development] szucsgf:
http://xdaforums.com/showthread.php?p=46535624#post46535624
[Nexus 4 Original Android Development] "D":
[MENTION=3750240]stratosk[/MENTION]

1.7.3 super fast and stable!!! Good Work my Friend.

regards from Germany
[Nexus 4 Original Android Development] nemanja066:
I think that would be good, include FastCharge option in one of the next versions! :) I miss a lot of! :)
[Nexus 4 Original Android Development] gaz41:
For my nexus, it's a little too bluish...

Inviato dal mio Nexus 4 con Tapatalk
[Nexus 4 Original Android Development] gpvecchi:
Remember to lock/unlock screen; and, as I said, every display is different...
[Nexus 4 Original Android Development] -iNSiGhT-:
Hi Stratosk, I noticed that Semaphore manager ask 17 times SU permission each time I change CPU governor...

First time I see this behavior...

Not a big deal at all but just so you know it.

;)

EDIT : there's no problem changing other values.

Paranoid mako
[Nexus 4 Original Android Development] twowheeler:
What difference would changing the SD read ahead make? Faster readings ?
[Nexus 4 Original Android Development] QNBT:
I know you did not want to make semaphore more complicated but is a "double tap to unlock" something you might consider?

(like the LG G2:

http://www.youtube.com/watch?v=GfHVcITqEAg

around 1:38)
[Nexus 4 Original Android Development] PetritH:
This would be brilliant..

1.7.3 running great as every other semaphore version.
[Nexus 4 Original Android Development] tourlek:
1.7.3 for the version jss?
[Nexus 4 Original Android Development] -iNSiGhT-:
I think Stratosk won't add this feature, for the same reason he sets a limit to touchwake delay (it'll cause huge wackelocks)...

Paranoid mako
[Nexus 4 Original Android Development] twowheeler:
This feature won't cause a wake lock. It'll probably work as swipe2wake ;)
[Nexus 4 Original Android Development] californicated:
Which causes battery drain anyway :P

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] alen1901:
Well, you have touch wake which is similar to knock. Everything on nexus which is related to turning on device with touching/swiping screen will cause wakelocks because nexus doesnt have the same hardware/software solution like lg g2 or moto x. It just isnt made with that purpose. :)

EDIT: it will also cause battery drain if timeout is set for a long time.
[Nexus 4 Original Android Development] C4SCA:
But not much.... Personally u would trade 3% of my battery for that feature

sent from my NEXUS 4 tasting a revamped cooking recipe of Jellybeans (4.3).
[Nexus 4 Original Android Development] twowheeler:
Nope. I think you're confusing it with touchwake that semaphore has (touch within a certain time to wake). Slide2wake works as a alternative for the power button and doesn't cause drain when it's active. Well phone will go to deep sleep anyway.
[Nexus 4 Original Android Development] hellsgod:
The Phone itself sleeps with S2W, yes. But, and here it comes, the Touch Driver needs to be awake to recognize a Touch event, and that will drain your battery.

hells
[Nexus 4 Original Android Development] PetritH:
But its not huge drain tho.. as someone said I would trade 3 to 5% of my battery for that feature.
[Nexus 4 Original Android Development] -iNSiGhT-:
this will prevent your phone going into deep sleep state, so it will force your phone to stay awake = wakelock...

Paranoid mako
[Nexus 4 Original Android Development] coloxim:
I just want to say that thisi is Very great kernel..

And great battery...

Thank you soooo much..

;p

Inviato dal mio Nexus 4 con Tapatalk

---------- Post added at 01:46 PM ---------- Previous post was at 01:33 PM ----------

Sorry another thing...someone can tell me how sett interactive parameters? Because I know how on demand works...but I don't understand interactive...

And there is a tutorial about the semaphore app settings?

Inviato dal mio Nexus 4 con Tapatalk
[Nexus 4 Original Android Development] Barbatos19:
I guess slide to wake does not cause battery drain based on my experience. I'm kinda OC about my battery and monitored it frequently and slide to wake is not a problem.
[Nexus 4 Original Android Development] snak3ater:
Freqs mostly used in ondemand are 384mhz, touch-load freq & 1.5ghz... Middle freqs are used to but not that much... Interactive's scaling is the best.. mostly cpu uses 384mhz... rest all the other freq's are equally used..

This is the screen shot of freq's used in interactive governor
[Nexus 4 Original Android Development] Bladyle:
[MENTION=3750240]stratosk[/MENTION] is it possible to add option for min and max GPU freqs?
[Nexus 4 Original Android Development] ioucorsa:
Sorry wrong post please delete it
[Nexus 4 Original Android Development] manpildo:
Except I've read that scaling too much between different frequencies causes more power drain. Apparently this is the reason why mpdecision uses mostly only 3 frequencies: idle state(384), touch boost/light usage(1026), medium/heavy usage (1512). Can someone debunk or confirm this theory?
[Nexus 4 Original Android Development] Fenvarien:
[MENTION=3750240]stratosk[/MENTION] Have you considered a widget for Semaphore Manager to quickly switch between exponential and proportional brightness scaling? This could be really helpful, especially outdoors, when exponential scaling isn't bright enough. :good: :)
[Nexus 4 Original Android Development] californicated:
Well, then you can also adjust the brightness manually. But I have to agree: linear brightness is too bright inside, while exponential is too dark outside. That's why I'm simply using linear with stock settings :p
[Nexus 4 Original Android Development] snak3ater:
Stratosk can answer it better..

But for me.. I always found interactive lasting more than ondemand in terms of battery
[Nexus 4 Original Android Development] Fenvarien:
I thought about brightness presets, which could help to make exponential scaling much more useful. And a widget to switch between those presets... :)

Btw. Semaphore 1.7.3 is rocking here with great battery life and stability!
[Nexus 4 Original Android Development] panart:
I flashed stock 4.3 rom a few days ago and "Android OS" is using 60%+ of battery. I'm sure it's related to "msm_hsic_host" process.

From a google search i found that "msm_hsic_host" process is used by Android for any kind of activity related to mobile data (http://techsplurge.com/13960/solution-nexus-4-android-os-battery-drain-msm_hsic_wakelock-process/).

I also found an XDA discussion thread for Android OS wakelock but nobody has a solution (http://xdaforums.com/showthread.php?t=2392155).

I searched Semaphore thread for "Android OS wakelog" and "msm_hsic_host" and found 0 results.

Does anyone know a solution to this issue?
[Nexus 4 Original Android Development] stratosk:
I will check it. But most probably is OK, because if you change governor, app sets again every value of governor (plus some other parameters).

I will see if I could optimize something there.

Block driver will retrieve more data in every read operation. In many cases this will have positive effect in performance. But if you will set a big value, maybe it will read useless data. So, you have to find the sweet spot, depending on the usage.

I'm not sure about this feature. Touchwake is more convenient and more safe (in my usage).

Maybe in the future.

This was 'test' version (although fully functional). JSS variation on final release.

I'm not export on interactive. Please search for some guides here in XDA.

I want to finish a 'how to' document (long time in my TODO list) but always lack of time.

This is due to touch algorithm. Linux stock ondemand uses more middle freqs. But if you apply a touch boost frequency you will change this behavior.

I'm not sure we need this.

This is again about touch algorithm. It has nothing to do with power drain.

Switching frequency too often may be time consuming, but the procedure itself will not drain more battery.

It would be good. But I don't know if I will find the time to do it...

Anyway, I will add it to my TODO list :)
[Nexus 4 Original Android Development] stratosk:
Usually a restart will resolve this.

I hit this stock issue sometimes and I just restart.
[Nexus 4 Original Android Development] sfrique:
I had this issue with google chrome...

If i left it open i ran in this issue!

But it does not happen in al roms.
[Nexus 4 Original Android Development] panart:
I haven't used chrome at all today, i barely have 50 mins screen on time and battery is down to 32% atm.
[Nexus 4 Original Android Development] sfrique:
Reboot sometimes resolve it also.

I also have problem with "access to location" When it is enable i have your issue. But i guess it is my rom (Carbon) Started a few nightlies ago and it not fixed yet.

Only things i know..

I am thinking of change rom because of this problem!

But PAC have not fixed active display pocket mode yet ='[
[Nexus 4 Original Android Development] PeterFdeVries:
Hi there!

I have recently installed the latest version of your kernel (version 1.7.1 for the Nexus 4) on my phone but I have noticed that nothing happens when I activated the touchwake (it means that if I touch my screen when the phone is switched off, it turns on right?) and when I change the settings of the backlights (turning the maximum down) also nothing happens. Of course I am using your great kernel-app for this :)

What am I doing wrong?

Greetings,

Peter

PS tried to send this via your site but got the message that the codewords I gave where wrong constantly
[Nexus 4 Original Android Development] californicated:
Just had a reboot. Logs attached
[Nexus 4 Original Android Development] fortunz:
Sounds like another job for tasker. You could even make it switch automatically when the light sensor detects sunlight levels of brightness. See: http://xdaforums.com/showthread.php?p=46227658&highlight=tasker#post46227658
[Nexus 4 Original Android Development] stratosk:
Hi,

Touchwake will work only if your screen goes off due to inactivity for some seconds (up to 5 mins). If you use your power button to turn off the screen, touchwake will be disabled.

All brightness changes will take effect in the next brightness update from framework (for example try to change brightness manually from system settings).

Thanks for the logs! First time seeing this. GPU memory allocation failed. I will examine further the logs tomorrow.

What were you doing when this happened?
[Nexus 4 Original Android Development] californicated:
Thanks! I was starting clash of clans, the rebooted happened during loading screen. btw this game is the biggest battery drainer I've ever seen. But still addictive :D

Until you figured it out, it's the games fault :)
[Nexus 4 Original Android Development] Barbatos19:
How about this for a battery life? Running great on PA Sabermod + semaphore 1.7.1.
[Nexus 4 Original Android Development] lalo20:
When i use screen off button from navbar, touchwake doesnt recognizes that i lock the screen. And touchwake is active. Any chance for fix this?

Enviado desde mi Nexus 4 usando Tapatalk