yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] jimyiak:
Πολυχρονος!!!!!!!

neXus⁴ running kitkat 4.4.2
[Nexus 4 Original Android Development] Holer Togni:
Happy birthday! I wish you all the best! Also much much respect for setting an example as a developer here on XDA!
[Nexus 4 Original Android Development] ZioGTS:
Happy b-day to Stratosk... Happy b-day to Stratosk... Happy b-day to Staaaaatooooosk... Happy b-day to youuuuuuuuu...! :)

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] PeterFdeVries:
Congrats on your birthday. May you have many more!
[Nexus 4 Original Android Development] capoooro:
Auguriiiiiiiiiiiiiiiiiiiii

Inviato dal mio Nexus 7 utilizzando Tapatalk
[Nexus 4 Original Android Development] hughfollett:
Late to the party, but a really happy birthday stratosk! Best wishes for you!

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] Italico:
Happy birthday, superb Dev :thumbup:
[Nexus 4 Original Android Development] lndulgence:
Am i late to greet this awesome developer a happy birthday??? HAPPY BIRTHDAY! :)
[Nexus 4 Original Android Development] XenderX666:
need help

Happy birthday man :)

I have one question no solved x) ..

I try to found a kernel compatible with the rom i'm using PAC rom 4.3 your kernel it's work with this ? [MENTION=3750240]stratosk[/MENTION]

thank you :)
[Nexus 4 Original Android Development] alkhafaf:
Happy birthday Stratosk, best wishes for you.

Wanna ask about double tap to wake, how is it when related to juice consumption? And is it stable?

Best regards
[Nexus 4 Original Android Development] kalpik:
PAC is a CAF based ROM. Semaphore won't work with it :)
[Nexus 4 Original Android Development] stratosk:
Thanks for your wishes!

About double tap to wake. Yes, it's stable. You should expect a little bit more power consumption than normal.

The only issue that you may have is that sometimes the device wakes up but the screen remains unresponsive. The solution is to multi-touch the screen with 2 or more fingers.
[Nexus 4 Original Android Development] ihancioglu:
Anyone who uses the latest graphics drivers from qualcomm. Can you please check the screen flickering issue? It looks disappear for me.
[Nexus 4 Original Android Development] chavocarlos:
I don't have any issues.
[Nexus 4 Original Android Development] :
Amazing battery life and smoothness!

View attachment 2618691View attachment 2618692

Sent from my Nexus 4
[Nexus 4 Original Android Development] fpolle:
I'm trying this with carbon Rom. Hope it works well :)

Inviato dal mio Nexus 4
[Nexus 4 Original Android Development] Vinnom:
Hi man,

first try to your kernel to N4 ^^

Any bugs, awesomeness or anything I found weird I' report here ^^

Trying with original CM 11 M3 Snapshot
[Nexus 4 Original Android Development] ihancioglu:
Hi [MENTION=3750240]stratosk[/MENTION],

I am just thinking ,is it possible to undervolt a GPU little bit? :)

I am playing reduce the max gpu clock to reduce a heat and gain extra battery. 200Mhz is satisfied for UI and other applications except games.(I observe the clock for a while in UI operations. It was on 320Mhz most of the time.)

Thanks,

EDIT : As indicates at Qualcomm website "All Snapdragon™ processors include the integrated, custom-built Adreno GPU."

So there is no separate GPU chip on the boards. If we undervolt the CPU , GPU is already undervolted , is this right ? :)
[Nexus 4 Original Android Development] TheNerd:]:
Cm11 is incompatible with aosp kernels
[Nexus 4 Original Android Development] Vinnom:
Thank you man, but I found out it the hard way... But I did nandroid backup before, so already restored to CM
[Nexus 4 Original Android Development] GreenSGS:
Hi Stratos,

Do you remember the feature you added in Galaxy I9000 kernel for having wifi in pm-fast mode when screen is off due to proximity sensor?

Is it still valid for N4 kernel? I do see on N4 that wifi slows down when screen off due to proximity Sensor in a wifi call.

Thanks
[Nexus 4 Original Android Development] stratosk:
Hi, my friend.

No, WiFi driver is pure stock in Semaphore N4. I'm not aware about this 'issue'.
[Nexus 4 Original Android Development] stratosk:
I think this is my personal record time of flashing inactivity... :)

I will reboot now, to test a new kernel.
[Nexus 4 Original Android Development] Midomad:
Good :thumbup:

My phone need some magic :D

Envoyé depuis mon Nexus 4 avec Tapatalk
[Nexus 4 Original Android Development] a g bell:
Is that with semaphore on one charge cycle??
[Nexus 4 Original Android Development] stratosk:
No, of course not. :)

~14 days uptime is impossible in 1 cycle.

This is my max period without flashing (and without reboot). :)
[Nexus 4 Original Android Development] Fabry1998:
I feel so n00b right now... A cm version of that kernel? Or does it work with cyanogenmod roms?
[Nexus 4 Original Android Development] yak84:
No and no.
[Nexus 4 Original Android Development] Fabry1998:
There isn't an unofficial version of this kernel compatible with cm?
[Nexus 4 Original Android Development] yak84:
There you go buddy

http://xdaforums.com/nexus-4/development/kernel-pandan-kernel-semaphore-based-t2597377
[Nexus 4 Original Android Development] ihancioglu:
I think you don't use your camera , because it causes reboot every 2-3 days :))
[Nexus 4 Original Android Development] dynasticorpheus:
Kalispera [MENTION=3750240]stratosk[/MENTION]

Since a couple of weeks not only in love with Greek food en music but also your kernel :good:

Where can I find an overview of all the parameters which can be set via init.d?

Cheers
[Nexus 4 Original Android Development] twowheeler:
I may be lucky, but I've never experienced that with any kernel ever.

Beamed from my nexus⁴
[Nexus 4 Original Android Development] stratosk:
I don't use camera a lot. A couple of pictures per day. :)

Thanks for your kind words. :)

You may use Semaphore Manager app (it's free) to tweak Semaphore kernel.

Unfortunately there is no documentation in one place. But reading this thread (or searching it) you may find many answers to your questions.
[Nexus 4 Original Android Development] a g bell:
Umm me thinks that was lost

Was not meant to be serious just a comment about how good the battery life is with semaphore not worries s:
[Nexus 4 Original Android Development] stratosk:
New version 2.0.9

- Linux kernel 3.4.83

- msm: camera: Fix to avoid crashes (unfortunately it does not resolve all issues)
[Nexus 4 Original Android Development] stratosk:
I'm sorry for misunderstanding. I think I lost my sense of humor. :)
[Nexus 4 Original Android Development] ihancioglu:
Hi [MENTION=3750240]stratosk[/MENTION],

Thanks for the new version.

I am experimenting new configs in these days with Semaphore. I got 4hrs SOT with my N4 first time. I would like share what I do;

- Hotplug change - 4 core active all the time except screen off.

- Activated standalone power collapse state for all cores on both idle and suspend state.(I don't experience any bug with that power state)

- GPU maxclock fixed 200Mhz (I am not a big fan of games)

- Interactive governor activated - hispeed_freq to 810Mhz

- Boost voltage disabled(-25mv)

After above configuration there is no any lag, same experience like ondemand. CPU freq is sitting very low. (2:30 hours on 384Mhz, 1 hours on 810Mhz(touch boost freq), a few minutes on other freqs and a few minutes on 1512Mhz. Because of keeping freq at low state, device is not get very hot while using it.

I was thinking battery will get worse because 4 cores active while Screen ON but standalone power collapse state helps a lot, device enters that state very frequently.

So I am happy with new config. Maybe other users had different experiments with Semaphore.

What do you think?

Thanks,
[Nexus 4 Original Android Development] nemanja066:
My Settings (Only Changes). I doesnt play games, and i have about 5-6h SOT, 24h on battery or 4h SOT, 2 days on batt.

* Undervolting -150mV, all frreq (No one Crash or Freezes)

*Dynamic hotplug, Up TReshold 75, min online core 1, max online core 4

*CPu Goveror, Ondemand, Touch Load 45

SD Read Ahead 1024KB

LCD Calibration LG Color

Enabled DT2W

Sync ON, Auto brightness , ART Runtime

I 'm happy and satisfied, I haven't noticed any difference in performance, but a lot of battery saving.. :D
[Nexus 4 Original Android Development] fajarlazuarding:
Thanks for sharing your setup [emoji106]

Anyway about LG color preset, how you convert it to semaphore manager app? Just curious :)
[Nexus 4 Original Android Development] Gu$houn*:
Trickster Mod?

P.
[Nexus 4 Original Android Development] fajarlazuarding:
which menu that trickster provide to convert lg presets into semaphore app ? :confused:
[Nexus 4 Original Android Development] Gu$houn*:
You don't have to convert it, just apply it. The conversion is there of course not.

P.

[sntfrmnxs4]
[Nexus 4 Original Android Development] apatal:
None that I know of. Just use the shared color presets spreadsheet. You can find a thread either in general or the themes & apps forum.
[Nexus 4 Original Android Development] dynasticorpheus:
I am aware of the app, works great as well but I am a minimalistic guy hence the script :) I’ll look around, already collected the most important ones I guess.

Thanks again for your hard work on this. New version I see!
[Nexus 4 Original Android Development] Kaka88:
This is example how to convert it to semaphore manager..

It's 100% worked! You just need to read and understand carefully..

So it well be: (example red)

=> grey, mids, black, 1 , contrast, brightness, saturation, white, then 1.

You have to put that numer 1, because if it's not, the colors would be bad..

I hope it helps..

I edited the pic by myself anyway.. :D
[Nexus 4 Original Android Development] fajarlazuarding:
thanks guys for the information, especially for [MENTION=5519836]Kaka88[/MENTION] :good:

i asked how to convert because i also wanna try another color profiles as well, i'll try [MENTION=5519836]Kaka88[/MENTION] 's way thought. thanks :D
[Nexus 4 Original Android Development] twowheeler:
Does anybody have a flashable zip for the stock 4.4.2 KOT49H kernel?

Beamed from my nexus⁴
[Nexus 4 Original Android Development] ihancioglu:
You can ask here what you need to tweak, I will try explain you , as I am not using Semaphore Manager just init scripts..
[Nexus 4 Original Android Development] Kaka88:
You're welcome dude! Tell me if it's worked.. :)

Btw anyone can tell me what is "powersave bias" in on demand options?

And which settings gives better battery life? Thanks before.. :)
[Nexus 4 Original Android Development] Rohit02:
here : STOCK_MAKO_KOT49H_KERNEL.zip
[Nexus 4 Original Android Development] ihancioglu:
The powersave_bias parameter modifies the behavior of the ondemand governor to save more power by reducing the target frequency by a specified percentage. By default, (powersave_bias = 0), the ondemand governor selects the minimum processor frequency that can still complete a workload with minimal idle time. Doing so should result in the highest performance to power efficiency ratio. In some cases, you might prefer a greater emphasis on power efficiency than performance. In this case, set the powersave_bias parameter to a value between 1 and 1000 to reduce the target frequency by one-thousandth of that value. For example, set powersave_bias to 100 for a one-tenth reduction in target frequency. In this case, if the governor chooses a target frequency of 2 GHz (with powersave_bias = 100), the governor instead will request 1.8GHz – a one-tenth reduction. If 1.8 GHz is an exact match with an available hardware frequency (listed in the scaling_available_freq parameter), the processor is set to this frequency. If 1.8 GHz is not available, the processor fluctuates between the closest available upper and lower frequencies for an average frequency of 1.8 GHz.

About battery: Higher values will keep freqs on lower state and battery will save but performance will decrease.
[Nexus 4 Original Android Development] twowheeler:
Awesome! Thanks

Beamed from my nexus⁴
[Nexus 4 Original Android Development] Kaka88:
Woow. Well said man!

Thanks a lot for that. That's really helpful.. :)

And one more thing. Just a short question..

Which governor and Scheduler give best battery life?
[Nexus 4 Original Android Development] ihancioglu:
I think there is no one answer for this question. It depends the way you configure the governor. You can save some battery with all governors or you can maximize your performance with a few tweaks.

I don't have enough knowledge about schedulers but stock (noop) is working fine for me.

Thanks,
[Nexus 4 Original Android Development] twowheeler:
First impression:

2.0.9 seems a lot smoother than 2.0.5.

Thanks for your work again Stratosk!

Beamed from my nexus⁴
[Nexus 4 Original Android Development] fajarlazuarding:
Sure, I'll try later :)

Edit : someone's have better explanation about powersave bias up there.
[Nexus 4 Original Android Development] Kaka88:
Thanks. Someone has telling me about that.. :)

Thanks man!

Really appreciate that :)
[Nexus 4 Original Android Development] ihancioglu:
Hi [MENTION=3750240]stratosk[/MENTION] ,

I would like to compile Semaphore with retention patch.

First I would like to compile and install without any patch to make sure everything is correct on my setup. But as soon as I install my compiled version, I have a bootloop on google sign.

What is your suggestion?

My commands are -

export PATH=$PATH:~/android/arm-unknown-linux-gnueabi-linaro_4.8.2-2013.06/bin

export ARCH=arm

export SUBARCH=arm

export CROSS_COMPILE=arm-unknown-linux-gnueabi-

make clean

cp arch/arm/configs/semaphore_mako_defconfig .

make semaphore_mako_defconfig

make -j4
[Nexus 4 Original Android Development] stratosk:
I think it's the toolchain you use (4.8.2). I use 4.7

You may check the sbuild.sh script on Semaphore root tree for the steps for the exact steps I use.

Also you don't need to copy the semaphore_mako_defconfig in the root.

You define ARCH as arm, so the make can find the defconfig from it's original place.
[Nexus 4 Original Android Development] mohan vinay:
guys just flashed the kernel and installed the app , what settings should i use ??

and how to change the colour preference??

plz some hlp me find right settings
[Nexus 4 Original Android Development] carepack:
read a few pages back. there was some good explanation and user experiences about kernel settings. also the color preference.

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Original Android Development] kooocko:
DT2W is a pretty hit and miss on this kernel - I activated the option in Semaphore manager. I used TouchControl app with the previous version and it worked great, but the app doesn't support the latest version of this kernel. Am I doing something wrong or is it just the way it is?
[Nexus 4 Original Android Development] hughfollett:
No need to use touchcontrol once you activated dt2w with the semaphore app

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] Kaka88:
If i want to flashed new version, should i clean install? Or just replace the old version of this kernel?

Thanks before..
[Nexus 4 Original Android Development] encore27:
It's weird cause I have a nearly 100% hit rate. Using Semaphore app.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] yarisd4dturbo:
This new version is perfect, thx a lot!!!

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] dynasticorpheus:
Thanks but I know how it works :) Was just looking for the script equivalent of all options in the Semaphore app. Currently have below basic setup:

#!/system/bin/sh
echo "3 71 119 1 0 8 23 3 1" > /sys/devices/virtual/misc/gamma_control/gamma_r
echo "3 71 119 1 0 8 23 3 1" > /sys/devices/virtual/misc/gamma_control/gamma_g
echo "3 71 119 1 0 8 23 3 1" > /sys/devices/virtual/misc/gamma_control/gamma_b
echo 0 > /sys/devices/virtual/misc/touchwake/enabled
echo 1 > /sys/devices/virtual/input/lge_touch/dt_wake_enabled
[Nexus 4 Original Android Development] yak84:
Just flash the new version in recovery, no need to wipe anything.
[Nexus 4 Original Android Development] rom08:
Please can you re add module support for touch control. Thanks.

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Original Android Development] Kaka88:
Thanks! :)
[Nexus 4 Original Android Development] sidnoit22:
Which app do you use?

Sent from my Nexus 4
[Nexus 4 Original Android Development] stratosk:
I can't do anything for touch control. It's an app/module developed by other dev. It's unrelated with Semaphore.
[Nexus 4 Original Android Development] ihancioglu:
Not any application, just init scripts
[Nexus 4 Original Android Development] sidnoit22:
Can you PM me those if you don't mind?

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

how exactly can I enable C States?

[MENTION=3750240]stratosk[/MENTION]: Do you have plans to merge the kexec hardboot patch into this kernel? I'd like to use it with MultiROM ;)

Sent from my Gameboy Color
[Nexus 4 Original Android Development] snak3ater:
Use faux clock for changing C states..

Jolie belle kernel has got kexec hardboot patch.. Give it a try..
[Nexus 4 Original Android Development] ihancioglu:
Hi,

You can activate it via sysfs.

Below commands are activating C2 state for all cpus both idle and suspend times.

echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled

C0,C3 states already activated on stock. C1 (retention) is needed a patch which does not included in Semaphore. I complied Semaphore with that patches but there are some bugs. (screen flickering some times at idle)

Also please keep in mind that Google disabled C2 state in the past as there were some problems on our board. But I don't face that problems on my N4. Maybe some patches on Semaphore corrected that problems who knows.. Take a look at below link.

https://android.googlesource.com/device/lge/mako/+/546e578579b678178095c95af8ba99b20894f86e

Thanks,

---------- Post added at 04:10 PM ---------- Previous post was at 04:02 PM ----------

You can check it out at link below,

http://pastebin.com/Gxci44fe

Thanks,
[Nexus 4 Original Android Development] BlueFlame4:
That's exactly what I was looking for :) Thanks! Let's see how my N4 handles C2 ;)
[Nexus 4 Original Android Development] senthilrameshjv:
Can you explain me how you activated the standalone collapse states. I don't find that in trickster and semaphore app. I don't own faux clock. Did you use that app?

Thanks for the settings. I'll try it.
[Nexus 4 Original Android Development] ihancioglu:
Please see at one post above :)
[Nexus 4 Original Android Development] twowheeler:
What would be the benefit of activating these c states?

Beamed from my nexus⁴
[Nexus 4 Original Android Development] TheNerd:]:
Theoretical less battery drain when idle
[Nexus 4 Original Android Development] Psichi:
The muting you did to the wakelock and alarm logs.. I'm guessing those would, in theory, effect the accuracy of Better Battery Stats?
[Nexus 4 Original Android Development] senthilrameshjv:
I did activate the c States for all the cores and feel like seeing lesser battery drain. I left 3g,gps,sync all on last night and around 50 percent last night. Usually phone would have been around 15% now but today it is 36 percent.

Btw, do u guys know if I can block *sync* type wake locks using wake lock blocker. Will that affect my sync and not get mails and notifications?
[Nexus 4 Original Android Development] limeaide:
It doesn't affect the accuracy. It makes it less stressful on a Dev so people can't see every wake lock. I know Francisco did it on Franco kernel because he was tired of people asking what this or that wake lock was. Then trying to blame a wake lock that has nothing to do with their battery drain because it has a lot of wakes.

Sent from my Nexus 4
[Nexus 4 Original Android Development] Sigur Rós:
On the official download section there are also 2.0 versions... can I flash them on KitKat 4.4.2?
[Nexus 4 Original Android Development] Gu$houn*:
According to OP:

Versions >= 1.8.5 are for KK 4.4.1 / 4.4.2 only

Versions >= 1.8.0 are for KK 4.4 only

Versions >= 1.5.0 are for JB 4.3 only

P.

[sntfrmnxs4]
[Nexus 4 Original Android Development] sidnoit22:
What if i activate all the cores? I've heard it make less battery drain

Sent from my Nexus 4
[Nexus 4 Original Android Development] Kaka88:
I'm using dynamic hotlplug with on demand governor..

I previously using quad core 800mhz, then i changed to dual core 1.2Ghz..

I feel that dual core 1.2Ghz is faster and i got very good improvement in battery life!

I got 4h 4min on screen at 1% battery..
[Nexus 4 Original Android Development] jimyiak:
You mean 800mhz max frequency??of course 1.2ghz its faster even dual core..multiple cores helps with multitask more than speed..i hit with this kernel about 5 sot with 4 cores and dynamic hotplug on..haven't try 4 cores always on though..

neXus⁴ running kitkat 4.4.2
[Nexus 4 Original Android Development] Sir_gpm:
The d2tw will persist after reboot? Or do I need to execute it every boot?

Enviado desde mi Nexus 4 mediante Tapatalk
[Nexus 4 Original Android Development] tommypacker:
It'll set automatically on each boot
[Nexus 4 Original Android Development] Sir_gpm:
Can I set this in trickster?, how? Or just semaphore manager?.

Enviado desde mi Nexus 4 mediante Tapatalk
[Nexus 4 Original Android Development] Kaka88:
Yes with 4 core..

Thanks for the explanation. Now i got the point..

Can you share your settings anyway?

I really want to improve my battery life..
[Nexus 4 Original Android Development] shadeMe:
To begin with, I'd like to thank and congratulate the developer of this kernel - Hats off to you, mate :good: Semaphore is the most stable kernel of the many I've had the chance to try out :)

I've got a question - I was wondering if one of the unofficial fixes for the msm_hsic_host kernel wakelock, as implemented in other kernels such as franco, faux, etc, is already present in Semaphore? If it isn't, could I request that it be added, technical requirements allowing?
[Nexus 4 Original Android Development] hellsgod:
These fixes were for 4.2.2 and are outdated. Its now like it is, nothing we can do about.

hells

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 4 Original Android Development] shadeMe:
Ah, I see. Indeed a shame. Many thanks for the reply :)

PS: I'm terribly sorry to cross-post, but I'd hate to pass up a chance like this. You see, before I moved to Semaphore, I was using hellscore as my daily driver and was almost as satisfied with it as I'm now with the former - Unfortunately, I was having issues with its sweep2wake/doubletap2wake implementation; the touchscreen would often become unresponsive after spending sometime in my pocket, requiring a hard reboot to reset it. However, Semaphore's implementation of dt2w has been working perfectly - No issues with the screen edges or an unresponsive touchscreen.

Would you consider porting stratosk's code over to hellscore? Assuming he's okay with it, of course.
[Nexus 4 Original Android Development] jimyiak:
All default..uv by 50mv and downclock to 1.35ghz ;)

neXus⁴ running kitkat 4.4.2
[Nexus 4 Original Android Development] WiwiPouPou:
Using an app like green power helps a lot, as that wakelock is very present on 3G, shuting down mobile network when screen la off is a good solution !

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Original Android Development] nemanja066:
Stratosk, Touchwake Disable doesn't work during Calls. I always activate touchscreen by ear and cheek... :confused:
[Nexus 4 Original Android Development] Kaka88:
Thanks!