yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] twowheeler:
I decided to try a custom rom once more after running stock xposed for some time. Purity with 2.2.5 is gold!

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 Original Android Development] snak3ater:
try double tap to wake.. Semaphore's implementation of double tap to wake is just flawless.. so far i haven't faced any issue with it

Sent from my rastakat powdered Nexus
[Nexus 4 Original Android Development] akulp:
Yap, that's why I'm asking. I know it works very smooth.

So it would be nice to have slide to wake and slide to lock function...
[Nexus 4 Original Android Development] Tak3r07:
If I set brightness mode to exponential, the screen dims instantly to its lowest brightness and stays there. Anyone else with this issue?

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] karanrajpal14:
Me too. Was just about to ask here.
[Nexus 4 Original Android Development] Gu$houn*:
That's because exponential mode doesn't support auto brightness.

P.

[sntfrmnxs4]
[Nexus 4 Original Android Development] saifulh2304:
is it the md5 on the download link correct or I got bad download?
[Nexus 4 Original Android Development] X DoZ3R:
Im on the latest version, and i realized that i dont have thermal throttle when batt. reach 37 and 39 celsius but this rom has stock throttle values right? Im happy with this condition but i wanna know what i did to disable it :) ps.: i have stock thermald.conf file
[Nexus 4 Original Android Development] fortunz:
FWIW, you can use tasker for exponential compatible autobrightness. The version I use only adjusts at power on because I don't really like it adjusting dynamically. Then you can tune it to get just the right brightness levels instead of one size fits all. Link in my sig. Also see here
[Nexus 4 Original Android Development] Gu$houn*:
[MENTION=1718085]fortunz[/MENTION]

I'm using Lux for auto brightness to fit my preferences and it's working very well too ...

P.

[sntfrmnxs4]
[Nexus 4 Original Android Development] jimyiak:
[MENTION=3296383]Gu$houn*[/MENTION] your avatar is your dog???fantastic!!!!!! ???

sent by neXus 4 using xda premium
[Nexus 4 Original Android Development] HiM@L:
guys...just a small observation here...

i have my max @ 1350 but in cpu spy it still shows till 1512.

is it just me ?
[Nexus 4 Original Android Development] omer7:
1512 is used for 6 seconds only, it is showing there before you changed max to 1350. Go to cpu spy settings and "reset timer" there and then see after using your phone for some time if it shows 1512 there.
[Nexus 4 Original Android Development] Tak3r07:
Have you rebooted a minute ago? Max bootfrequence is in some kernels not equal to the max frequence you set yourself

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] HiM@L:
guys thanks for the reply and no i hadn't just rebooted and yes i did do reset timer in cpu spy...

can anyone of u currently using semaphore kernel try and see if it does happen or not on ur end too.

thanks
[Nexus 4 Original Android Development] X DoZ3R:
Someone got an idea to this?
[Nexus 4 Original Android Development] karanrajpal14:
Thank you so much for that. Looks like i'm gonna have loads of fun with tasker :D
[Nexus 4 Original Android Development] yak84:
Thermal throttling is engaged depending on CPU Temp and not battery. As far as I know the phone will shut down when battery temp reach 50C.
[Nexus 4 Original Android Development] TheNerd:]:
I turned off dynamic hotplugging and everything is so much better this way! Amazing battery life coupled with speed.
[Nexus 4 Original Android Development] C4SCA:
on stock (at least) for LG phones battery temp affects thermal throttle

sent from my diabetic Nexus 4 (too much KitKats).
[Nexus 4 Original Android Development] omer7:
So all 4 cores would remain online after disabling dynamic hotplug? You talked about speed, did it increase performance overall or in games only?

Tho performance on semaphore is already great. Very nice kernel this is.
[Nexus 4 Original Android Development] underskyzx:
Exponential backlight brightness, Ive been looking for a way to lower the brightness of my phone since ever, now phone is easy on my eyes, no more pain reading in bed!

Thank you Stratosk!
[Nexus 4 Original Android Development] akulp:
[MENTION=3750240]stratosk[/MENTION]

What about this? ->

Since TouchControl developing has stopped, is there any plan to integrate slide to lock/slide to wake function in Semaphore N4 kernel?
[Nexus 4 Original Android Development] Ümit:
I also want dark screen, but it is not too dark in the sun?
[Nexus 4 Original Android Development] stratosk:
I'm sorry. No other additions regarding this. Touchwake and double tap to wake are enough.
[Nexus 4 Original Android Development] Slymobi:
[MENTION=278972]stratos[/MENTION]

Hi again ;)

Question only, Did you ever make a patched for miui 4.2 kernel ?

Regards as always
[Nexus 4 Original Android Development] stratosk:
No. I'm not interested in. :)
[Nexus 4 Original Android Development] Ümit:
How can I set exponential mod manuel?

edit: sys/devices/i2c-0/0-0038/lm3530_br_mode (set to 0)
[Nexus 4 Original Android Development] PeterFdeVries:
I can not turn ART on because after confirming converting the libraries I have a bootloop on the circles. I know it takes time to convert, but having a stove after half an hour does not seem to be right.

I have tried it on 4.4.2 and 4.4.3. I use the Semaphore kernel with the stockROM.

Someone who wants to help me in converting?
[Nexus 4 Original Android Development] suarez1907:
Can you send stable uv values?

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Nexus 4 Original Android Development] artifex21:
Is not same for every device, try some values and see what's best for you. I set lower frequencies on -10000 and higher on -75000 and not having any problems
[Nexus 4 Original Android Development] Midomad:
4.4.4 is out and there is no kernel changes from Google so i think 2.2.5 will work :)

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Original Android Development] akulp:
Ok, understand...

What about something to lock....:)
[Nexus 4 Original Android Development] Rohit02:
To lock there is a feature double tap statubar to sleep/lock.. Many roms have this feature. Mahdi,Rastakat.
[Nexus 4 Original Android Development] Gu$houn*:
Yes, so purity does ... or just make the screen off shortcut in the navring top position, it's simple and elegant.

P.

[sntfrmnxs4]
[Nexus 4 Original Android Development] Rohit02:
hahaha I know.. I use the same

I replied him that coz he wanted a double tap to lock..soo.....
[Nexus 4 Original Android Development] snak3ater:
Just leave the phone and don't touch it...It'll go to sleep all by itself after timeout :p

No double tap required..Add this method in the list as well :)
[Nexus 4 Original Android Development] twowheeler:
some say that it will go into ultra deep sleep when thrown out of a window

Beamed from my nexus⁴
[Nexus 4 Original Android Development] Fenvarien:
This works well, but depends to much on the window size and the height of the building ;)

disce aut discede
[Nexus 4 Original Android Development] Ryanrioz:
err bro, did you made 4.4.4 kernel for this??

cause I'm waiting your kernels man... :crying::crying:
[Nexus 4 Original Android Development] miksontije:
On 2.2.5 ondemand i cant set cpu to 1,5 it is always set to 1,2 and gpu to 200mhz,no mather whai i set in cpu speed.ido clean install rom and kernel. Also set kernel like stratosk,and min cores to 1
[Nexus 4 Original Android Development] stratosk:
I will when (and if) Google release code.
[Nexus 4 Original Android Development] omer7:
May be it is throttling. See your battery temperature. Since semaphore uses stock thermald, so it starts throttling when battery temp reaches 37C. If battery temp is below 37C, max CPU and GPU freq should be 1512 & 400 respectively until you change max frequencies yourself.
[Nexus 4 Original Android Development] stratosk:
It looks like thermal throttling to me.

Did you check it?
[Nexus 4 Original Android Development] miksontije:
i set now 2.2.2 gpu is going to 320 when is overload,cpu is going to 1.2 when battery reach 36,5,otherwise 1.5. on 2.2.5 gpu is always set to 200 and cpu is going to 1.2 when overload,no mather on temperature.when i set to interactive then it an reach 1,5 on limited time. i will check it again. where can i check(set)thermal throttling?

---------- Post added at 11:18 AM ---------- Previous post was at 11:01 AM ----------

i flash 2.2.5 over stock,and then it is happening. when i flash it over 2.2.2 then is working ok. also 2.2.5 somehow generate more heat to my battery so cpu is setting down to 1.2.
[Nexus 4 Original Android Development] omer7:
Are you using semaphore manager (kernel app)? If battery temp comes below 37C (wait for a minute after it comes below 37C to double check), and you still see max freq of CPU and GPU less than 1512 & 400 respectively (if you yourself have not reduced it), try to change them manually, increase frequencies manually and then see.
[Nexus 4 Original Android Development] miksontije:
im using semaphore app ofcourse. im monitoring bat,cpu,and gpu with trickster and system monitor. all set like stratosk(he write his settings couple pages back,exept min cpu to 1) if battery comes over 37,cpu and gpu is set max to 1.2 and 200.when it is cooler,everything works fine. i tested all variants,try other kernels for 4.4.3 and it looks like 2.2.5 generate more heat. that is reason,in my case. tnx for help
[Nexus 4 Original Android Development] underskyzx:
Smart Launcher has a plug-in to dt2sleep
[Nexus 4 Original Android Development] Ryanrioz:
alright.. thanks OP :)

Sent my Signature
[Nexus 4 Original Android Development] kooocko:
I noticed that boot.img files from 4.4.3 and from 4.4.4 are identical. Does that mean that kernel is the same and that 2.2.5 will work in 4.4.4 too?
[Nexus 4 Original Android Development] Midomad:
http://xdaforums.com/showthread.php?p=53533412

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Original Android Development] kooocko:
I missed that post :)

Has anyone tried it?
[Nexus 4 Original Android Development] TheNerd:]:
There are no kernel changes in 4.4.4
[Nexus 4 Original Android Development] omer7:
Using stock 4.4.4 with semaphore 2.2.5. Working flawlessly. ?
[Nexus 4 Original Android Development] cimdrap:
everytime i reach a low battery level my phone goes crazy....apps starting randomly everywhere, auto-tapping on the screen very fast, auto-screenshots.....after shut off and wall charger in i see the battery is at 0%. What could it be? Could it be battery related? Is it time to change battery? I can't understand if it's hardware or software issue.
[Nexus 4 Original Android Development] xflori:
hey anyone can post me some good settings for a good battery life, maybe with undervolting
[Nexus 4 Original Android Development] akulp:
I know all this....but I was asking for slide to lock, beacuse TouchControl app, which was best cohice for those locking things a big success, has stopped developing month ago...
[Nexus 4 Original Android Development] TheNerd:]:
I undervolt all frequencies by 100. Turn off dynamic hotplugging and change touch load to 60 in ondemand. All configurable in semaphore manager. Turn off boost voltages also.
[Nexus 4 Original Android Development] TheNerd:]:
[MENTION=3750240]stratosk[/MENTION]

the md5 for 2.2.5 on the download page is wrong

Edit: here is the right one :

EC373DDCE8C1BAE933F03FCB4B56CD61
[Nexus 4 Original Android Development] xflori:
what do u mean by 100?

Gesendet von meinem Nexus 4
[Nexus 4 Original Android Development] stratosk:
I forgot to update it. It's OK now.

Thank you very much!
[Nexus 4 Original Android Development] stratosk:
OK, then no need for a new Semaphore version. :)
[Nexus 4 Original Android Development] TheNerd:]:
100 mV displayed as 100000 uV in some apps. Hopefully your phone can handle this
[Nexus 4 Original Android Development] PeterFdeVries:
Why turn off the dynamic hotplug?
[Nexus 4 Original Android Development] urim225:
my phone handles -175 with no problem :D
[Nexus 4 Original Android Development] TheNerd:]:
from the nexus 5 trinity thread
[Nexus 4 Original Android Development] TheNerd:]:
jokes on you! :D I have a faster binned CPU so my default voltages are lower than your defaults. Plus my nexus also handles -175 but I prefer -125 ...... no hard feelings of course ;)
[Nexus 4 Original Android Development] TheNerd:]:
-175 ;) :D :D :D
[Nexus 4 Original Android Development] Gu$houn*:
[MENTION=5140864]TheNerd:][/MENTION]

I have "fast" and the stock frequencies are the same, so where is the difference?

P.

[sntfrmnxs4]

// besides my cpu does not handle -175 ...
[Nexus 4 Original Android Development] TheNerd:]:
I guess our nexus 4s have a default MHz that is 50 MHz less than [MENTION=4310342]urim225[/MENTION] 's nominal binned CPU. Maybe faster and fast have the same voltages and nominal and slow have lower voltages
[Nexus 4 Original Android Development] omer7:
But one can also make min cores online 4 in dynamic Hot plug in semaphore. Did you try it, or only tried turning off hot plug? I was thinking to try min cores 4, but then thought it might take more battery. But after reading that post (you shared) thinking to give it a try at least once ?
[Nexus 4 Original Android Development] Gu$houn*:
Ok, I though there is some difference between each other and because of max uv my cpu is able to handle is -125, I though it was that but if the "nominal" can handle -175, I am a little bit confused now ...

P.
[Nexus 4 Original Android Development] omer7:
I also have same stock voltages.
[Nexus 4 Original Android Development] Gu$houn*:
But if you set min & max cores to 4, isn't the dynamic hotplug useless than?

P.
[Nexus 4 Original Android Development] omer7:
Don't have much info bro how hot plug drivers work. What i know dynamic hot plug driver will still take care of high threshold, right?
[Nexus 4 Original Android Development] Gu$houn*:
I though it turns cores on/off so if it really works that way and you set min/max to 4/4 there will be nothing to turn on/off, right?

P.
[Nexus 4 Original Android Development] omer7:
True, u r right. But since there are some other tunables too in dynamic hotplug being shown in trickstermod, that's y i asked. ☺ See screenshot below.
[Nexus 4 Original Android Development] Gu$houn*:
Yes, the timers IMHO sets how quickly will be the cores turned on/off and the treshold sets at what load it will happen.

P.
[Nexus 4 Original Android Development] omer7:
Right. Thanks for that ? . I think this is more logical now. ?
[Nexus 4 Original Android Development] stratosk:
Yes, that's correct. If you set min cores to 4, the driver is useless. You may safely disable it.

Though the overhead if you leave it enabled will be insignificant.
[Nexus 4 Original Android Development] underskyzx:
Semaphore kernel

Halfbreed color profile:

32 68 118 0 25 4 66 64 2

Exponential brightness:

sys/devices/i2c-0/0-0038/lm3530_br_mode (set to 0)

Stratosk's settings;

ondemand (default values in tunables)

hotplug (default)

undervolting (lower uV 62500, higher uV 50000, higher freq 1350000, boost voltages off)

noop, double tap to wake, leg triggers, touch screen filters off, sd read ahead 256, logger off, SAI enabled.
[Nexus 4 Original Android Development] n2d551:
Sent from my Nexus 4

XFSXYSFYFIRUTTXU
[Nexus 4 Original Android Development] TheNerd:]:
Does anybody have the semaphore gamma control spreadsheet?
[Nexus 4 Original Android Development] Broooooook:
http://xdaforums.com/showpost.php?p=41461508&postcount=920
[Nexus 4 Original Android Development] PeterFdeVries:
Then why is this option in the semaphore kernel. This kernel is build (mostly) to safe battery.
[Nexus 4 Original Android Development] TheNerd:]:
I'm not here to argue or prove my point :) stratosk and morfic (trinity kernel) are both excellent developers with different ideas.
[Nexus 4 Original Android Development] fortunz:
Also not arguing, just mentioning that what saves one type of user a tiny bit of battery can hurt another. Not everyone uses their devices the same way, so it's certainly nice to be able to tailor things. Edit: just read the screenshot above, looks like I was a little duplicative.

And FWIW I don't really remember semaphore being officially advertised as even mostly to save battery, but as a balanced offering. I'm a bit of a battery nut and performance isn't very important to me, but I don't think I'm exactly the target audience.
[Nexus 4 Original Android Development] TheNerd:]:
To be honest my perception of speed and smoothness sucks so I'm more of a battery junkie then. :D Most kernels feel exactly the same no matter the configuration mpd /custom hotplug or oc/uc etc. All I notice is the change in battery life.
[Nexus 4 Original Android Development] stratosk:
Regarding mpdecision/hotplug drivers.

The purpose of offlining core when they are not in use is to allow the core to go to deepest idle state.

As some people remember. I made in the past tests (also post a test version here) with mpdecision off (all core online all the time).

I also found that having all cores online all the time, will not cost so much energy (about 20 minutes SOT on my device with my usage).

That's why I decide to develop a hotplug driver:

1) I wanted the driver to be 'lazy' with 2 cores online all the time and with the ability to have different number of online/offline cores. Also I wanted the changes of online/offline state to be pretty slow.

2) Users should have the ability to completely disable the driver.
[Nexus 4 Original Android Development] underskyzx:
I was wondering if the 25% threshold shouldn't be a bit higher, not trying to compare just understand, other kernel has it at 70%
[Nexus 4 Original Android Development] stratosk:
When I wrote the driver, I found 25 OK (and I still find it OK).

You may safely change it to any value that is convenient to you.
[Nexus 4 Original Android Development] underskyzx:
I don't know what value is convenient for me :silly:
[Nexus 4 Original Android Development] ihancioglu:
Hi [MENTION=3750240]stratosk[/MENTION],

Do you consider to add multi-core power savings function for Semaphore?

CONFIG_SCHED_MC:

Multi-core scheduler support improves the CPU scheduler's decision

making when dealing with multi-core CPU chips at a cost of slightly

increased overhead in some places. If unsure say N here.

After this config, mostly first core is preferred and other cores are stay on idle more.

sysfs interface is /sys/devices/system/cpu/sched_mc_power_savings,

0 is disabled

1 is moderate power savings without cost of performance

2 is maximum power savings a bit cost of performance.

Thanks,
[Nexus 4 Original Android Development] stratosk:
It's pretty easy to find out through 'test and error' procedure. :)

Actually, nobody knows the perfect values... :)

No. I thought it in the past, but:

https://git.kernel.org/cgit/linux/k...c?id=8e7fbcbc22c12414bcc9dfdd683637f58fb32759

"sched: Remove stale power aware scheduling remnants and dysfunctional knobs

It's been broken forever (i.e. it's not scheduling in a power

aware fashion), as reported by Suresh and others sending

patches, and nobody cares enough to fix it properly ...

so remove it to make space free for something better."

...
[Nexus 4 Original Android Development] urim225:
The Semaphore effect, great battery life as always :D
[Nexus 4 Original Android Development] omer7:
Very nice ?.

Can you please share what kernel settings you are using? Did you change some values?
[Nexus 4 Original Android Development] urim225:
Minimum online cores 1

Boost voltages Off

Lower UV 150000

Higher UV 150000, everything else stock
[Nexus 4 Original Android Development] stratosk:
New version 2.3.0

- Linux kernel 3.4.95

- ondemand: Change the calculation of next frequency to utilize lower frequencies more (the governor will be more sensitive to lower loads)

- ondemand: Change default touch load to 65 to keep the touch frequency to 1134MHz (because of the change in calculation)

Please note that you have to change the touch load to 65 in Semaphore Manager until the app update.
[Nexus 4 Original Android Development] alibotan:
Rom and Theme pls :)
[Nexus 4 Original Android Development] urim225:
Purity+ and GEM Flat CM11 theme
[Nexus 4 Original Android Development] alibotan:
thanks :angel:
[Nexus 4 Original Android Development] Fenvarien:
The new version is working great, especially the tweaked ondemand governor is very battery friendly. Thanks for your work and support [MENTION=3750240]stratosk[/MENTION] ☺

disce aut discede
[Nexus 4 Original Android Development] stratosk:
Thanks for your feedback, my friend!

I really need to know about battery/performance impact.

I didn't ask about it explicitly (when I released the version) to avoid placebo effects. :)
[Nexus 4 Original Android Development] capoooro:
Seems very battery friendly expecially for phone calls. Stable like always. Tnx
[Nexus 4 Original Android Development] Wassupdog:
Is it possible to control the sound in this kernel?
[Nexus 4 Original Android Development] stratosk:
No. There are no sound hacks.
[Nexus 4 Original Android Development] Wassupdog:
Okay, thanks.
[Nexus 4 Original Android Development] Ryanrioz:
is the kernels are compatible to 4.4.4?

Sent my Signature
[Nexus 4 Original Android Development] omer7:
Yes. Using on 4.4.4 without any issue.
[Nexus 4 Original Android Development] Ryanrioz:
owh thanks

Sent my Signature
[Nexus 4 Original Android Development] chavocarlos:
Since 4.4.4 doesn't have kernel changes, yes 4.4.3 kernels are compatible.
[Nexus 4 Original Android Development] Ryanrioz:
yup flashed already.. and now testing the battery standby time and see how it goes :D

[MENTION=3750240]stratosk[/MENTION]

thanks for the goodies kernel again...

Nexus 4 rocks!
[Nexus 4 Original Android Development] TheNerd:]:
How does this change in calculation make 1134 65% of 1512?
[Nexus 4 Original Android Development] stratosk:
The new formula for target frequency is:

Target freq = min_freq + load * (max_freq - min_freq) / 100

Thus,

Target freq = 384000 + 65 * (1512000 - 384000) / 100 = 1117200

Because of another change the closest frequency from frequency table is selected. So governor selects 1134000

For further details, please read:

https://github.com/stratosk/kernel_msm/commit/9df03b662b9c213c75ac082138f5ab8afadb9d94
[Nexus 4 Original Android Development] twowheeler:
2.2.5 already was awesome with purity and Art enabled. First impressions with 2.3.0 are even better! Battery is really good and it seems like it stays a bit cooler too. Great work as always Stratosk. And I learned some new stuff in the last pages too :)
[Nexus 4 Original Android Development] crazy_dj:
well damn , I now set the file to be viewed by anyone with the link , so hopefully it works now.

I couldn't find that setting on the phone... sorry guys for being such a noob :cyclops:
[Nexus 4 Original Android Development] stratosk:
kmsg shows a normal boot.

Can you please send the last_kmsg (if you didn't reboot the phone after)?

cat /proc/last_kmsg > /sdcard/last_kmsg.txt
[Nexus 4 Original Android Development] crazy_dj:
It tells me that there is "no such file or directory"

could it be because I hard rebooted the phone shortly after it froze?
[Nexus 4 Original Android Development] stratosk:
Yes, that's the reason.

Can you please describe what you did and what exactly do you mean by 'froze'?
[Nexus 4 Original Android Development] crazy_dj:
I was watching a YouTube video, suddenly the video froze but the sound kept going,

it didn't react to anything, so I hard rebooted it.

Still, I love this kernel though :D
[Nexus 4 Original Android Development] stratosk:
This is not a kernel crash. If it was, the sound would froze too.

Thanks anyway. :)
[Nexus 4 Original Android Development] LMR1200:
Semaphore for n4!!! Great...

Been on Semaphore for the past two years ppb my SGS. Best kernel there is....:)
[Nexus 4 Original Android Development] bobo1337:
with this kernel and PA 3.5 i got 20k+ on antuntu....GREAT,you are awesome ;)
[Nexus 4 Original Android Development] Anubiszx:
Everything working now. I don't know why I had put 664 instead of 640. I don't know what I was thinking ¬¬.

Thanks for your help!