yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] cryingrock:
For me, the stock min brightness is not low enough. Do you mean with your latest kernel, the default min brightness is lower?
[Nexus 4 Original Android Development] stratosk:
Default min brightness will be still 2.

But if you choose exponential mode LEDs will not be so bright as with linear mode when the brightness level 2.
[Nexus 4 Original Android Development] cryingrock:
Can I choose exponential mode through semaphore manager?
[Nexus 4 Original Android Development] stratosk:
No yet. Brightness related options will be included in next Semaphore Manager version.
[Nexus 4 Original Android Development] Fenvarien:
That's a great feature, Stratosk, I really like it. :thumbup: Can I set those values via init.d?
[Nexus 4 Original Android Development] stratosk:
Thanks!

Yes, of course. Please let me know if you need help with the script
[Nexus 4 Original Android Development] vampire36:
[MENTION=3750240]stratosk[/MENTION] : Did you manage to fix the touchwake bug ? Also would be great if you can add brightness related options to semaphore manager and also a small document in OP exactly how to set it up...and how to control brightness :)
[Nexus 4 Original Android Development] franciscofranco:
[MENTION=3750240]stratosk[/MENTION] Nice find @ cpumask_next_zero function call!
[Nexus 4 Original Android Development] Ümit:
How can I choose exponential mode? Need more help :(
[Nexus 4 Original Android Development] kandarpck:
Hi, [MENTION=3750240]stratosk[/MENTION], Keeping completely stock values in both 1.6.5 and 1.7.1, I notice that the newer version is considerably sluggish and slow to react. Did you change anything in the on demand tunables or the hotplug driver?
[Nexus 4 Original Android Development] Broooooook:
I dont think we should worry about the max value.

You know for an exponential mapping, the value changes at a slow rate when it is relatively small. As you said, you have to set it to 50 for indoor use. But when the value gets larger, it will grow at a much faster rate.

So under exponential mapping, if you change from 50 to 51, you may hardly notice the difference. But if you change from 110 to 111, there might be a significant (well sort of) increase in brightness.

Anyway, just my guess. Correct me if i'm wrong.
[Nexus 4 Original Android Development] stratosk:
Thanks, but all credits go to [MENTION=334348]Skkip[/MENTION] who was so kind to share the code with me. :)
[Nexus 4 Original Android Development] stratosk:
No, I have no logs or reproducible steps to any touchwake bug. :)

Documentation will be add soon (I hope) on my website.

At the present only in terminal emulator or init.d script:

su

echo 0 > /sys/devices/i2c-0/0-0038/lm3530_br_mode

There are changes to hotplug driver, but nothing that excuses a bad performance.
[Nexus 4 Original Android Development] madelgijs:
Distorted Colours

Helllo everybody,

I had version Semaphore_N4_1.6.5j running on cm-10.2-20130928-NIGHTLY-mako and was massively impressed. Reasonable performance (Quadrant Score around 5200) paired with very good battery life: around threee days with my usage profile, other kernels barely crossed the two days line or were very mediocre on performance. Today I flasehd cm-10.2-20131002-NIGHTLY-mako and installed the most recent Semaphore_N4_1.7.1j kernel and now my screen colours are all distorted (inverted?). What's been blue turned yellow and so forth.

Is there anything that could be done about that? Or does somone know what causes the problem?

Thanks, madelgijs
[Nexus 4 Original Android Development] thracemerin:
Changes in CM made it so colors only appear correctly while using the stock CM kernel, if it were changed in other kernels it would appear wrong in other ROMs.
[Nexus 4 Original Android Development] szucsgf:
http://xdaforums.com/showpost.php?p=46114998&postcount=3959
[Nexus 4 Original Android Development] madelgijs:
Oh, that's bad news. Any cure for that? Do kernels have to be adapted`?

---------- Post added at 07:49 PM ---------- Previous post was at 07:47 PM ----------

Thanks! I tried to search for that, but XDA told me that the search function is unavailable right now. If this turns out to be a continuing problem, I have to consider an alternative to CM.
[Nexus 4 Original Android Development] thracemerin:
At the moment, use an older version of CM or use the stock CM kernel. It would appear that CM isn't going to revert this, which would require a 3rd version of most custom kernels for specifically CM.
[Nexus 4 Original Android Development] panart:
http://xdaforums.com/showpost.php?p=46116084&postcount=3962

http://xdaforums.com/showpost.php?p=46118697&postcount=3965
[Nexus 4 Original Android Development] vampire36:
[MENTION=3750240]stratosk[/MENTION] : Either you have a bad memory or I must be dreaming...guess had reported touchwake delay never goes beyong 45 ms whatever you set in semaphore manager...I think or remember you confirmed saying max is 90ms and you ll look into it...if I wasn't 'dreaming'...:P :P :P
[Nexus 4 Original Android Development] madelgijs:
Hmm. I don't know what to think about that. :( Most times the question is: Which is the best kernel with rom "x". To me it seems, the question is now: Which is the best rom wit Semaphore kernel...?
[Nexus 4 Original Android Development] stratosk:
Ah, you mean that one! :) This is an issue in Semaphore Manager not in the kernel. So, it would be OK in next Semaphore Manager version.

BTW, my memory is good (although I'm getting old) but excuse me if I miss some posts some times.

I receive many PMs and I have to read many posts in the thread and note bugs and issues and features in my TODO list. Sometimes, I miss something.
[Nexus 4 Original Android Development] fortunz:
Fantastic! I've been wishing I could lower the brightness more, but even tools like rootdim couldn't help. I've used some screen filters in some circumstances, but it feels like a waste to generate all that light and just cover it up. Great addition. :good:
[Nexus 4 Original Android Development] stratosk:
Thanks again for sharing, my friend!

It means that the CPU will go to deep power state (C3) a little bit more. So, we will have some more battery juice.

If I recall correctly [MENTION=3292224]franciscofranco[/MENTION] (thanks) once mentioned this.

Doing some tests I reproduced this. Of course we would had more time on C3 if we would have min_online = 1 even the screen was on.

But this would make driver more complicated because of touch boost code (that should be added).

And I'm not sure if having the CPU in C3 state more often (min_online = 1 when screen on) would be better from hotplugging a second CPU on touch.
[Nexus 4 Original Android Development] vampire36:
Yup yup I guessed so...don't worry I was just trying to remind...cos many times I feel I posted but then realize it was all in the mind...:P

Neways thanx man :) Np take your time :)

1.7.1 with Purity is heavenly...gr8 work...kudos :)
[Nexus 4 Original Android Development] snak3ater:
Have you tried Lux App :confused:

It's a great app if you want some control over Brightness
[Nexus 4 Original Android Development] Skkip:
Having min_online = 1 results in a lot more onlineing and offlineing cores because the scheduler needs some time to recognize the CPU being available. That's what I've seen on nexus 4 and nexus 7. On nexus 7 (2012) you need to have this, because of the fifth energy saving core. But on nexus 4 having min two cores seems more reasonable. Also the snapdragon does have pretty efficient idle even with cores online. That's why you saw only around 20 minutes less screen on time without any hotplug.

It may be a good idea to have a unified touch listener somewhere to inform the cpu governors, hotplug and perhaps GPU governor. But this would need a really low sampling rate, reversing the positive effects.

Since I'm on vacation I can't code atm but I'm thinking if we could move away from trustzone as GPU governor. On nexus 7 I use a modified version of your ondemand idea with good reduction of battery consumption and generated heat, and better performance. Have you ever thought about this?

Greetings from Germany

Skip

Gesendet von meinem Nexus 7 mit Tapatalk 4
[Nexus 4 Original Android Development] stratosk:
Yes, I agree. This is the reason I keep 2 CPUs online when screen on.

About unified solution. I thought that too. It's not necessary to sample for inputs. I had one idea. Maybe when I will find some time I will try to implement it.

About GPU. No, I'm not in mood to study GPU code... :) And I feel OK with GPU behavior at the moment.

Enjoy your vacation, my friend!
[Nexus 4 Original Android Development] Skkip:
Another idea would be to use an own compiled powerhal like in sgs days :)

Gesendet von meinem Nexus 7 mit Tapatalk 4
[Nexus 4 Original Android Development] ReAnimat:
All download mirrors down ? :/
[Nexus 4 Original Android Development] Ümit:
Thank you sooo much stratosk. It's just what i need. you are a master!!

Only one thing, it goes from bright to dark realy good, but from dark to bright goes slow. Can i change it?
[Nexus 4 Original Android Development] stratosk:
I think this should be an in kernel solution. Otherwise we still can have mpdecision which runs in user space and does this job
[Nexus 4 Original Android Development] stratosk:
I've just uploaded them on XDA too:

http://xdaforums.com/devdb/project/?id=205#downloads

I'm sorry my provider has issues once more... :(
[Nexus 4 Original Android Development] stratosk:
If you use it as init script you may omit 'su' command. (init.d script run with root permissions).

No, unfortunately you can't change it. You may only select brightness mapping mode. Then ROM reads light sensor and changes the brightness level.
[Nexus 4 Original Android Development] fortunz:
I have indeed, but its subzero controls appeared to only cast a shade rather than actually lower the backlight, which was clear because the onscreen keys didn't dim with the rest of the screen. I have been thinking of trying it again since enabling the exponential brightness, it might be far more helpful (power saving wise) now that the system brightness goes so much lower, and I don't need lux's sub zero.

But I might just stick with tasker based controls and manual adjustments too.
[Nexus 4 Original Android Development] franciscofranco:
Yeah thats right :)

I think successive Hotplug operations will negate the battery effects of being in c3 longer during screen on.
[Nexus 4 Original Android Development] schmitzekater:
Could someone attach the latest version please? Semaphore.gr seems to be down and I can't find it in OP too.

Thanks.

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Nexus 4 Original Android Development] lalo20:
http://xdaforums.com/devd...=205#downloads
[Nexus 4 Original Android Development] JaqaL06:
i want to try this kernel but i have little question. now i have franco. what should i do? flash stock one reboot then semaphore or dirty flash rom reboot then semaphore? thanks anyway.

Sent from my Nexus 4
[Nexus 4 Original Android Development] szucsgf:
Dirty flash rom, reboot, flash semaphore, reboot.
[Nexus 4 Original Android Development] pyr0sphere:
Hmm site seems to be down, anybody have a mirror?
[Nexus 4 Original Android Development] thracemerin:
http://xdaforums.com/devdb/project/?id=205#downloads
[Nexus 4 Original Android Development] pyr0sphere:
Thanks, no idea that page existed!
[Nexus 4 Original Android Development] skinnypupp:
Checking out this rom on my new N4... Touch Wake sounds cool, how do we use it?

I tried installing "S2W" but it says it's not available. I tried "Touch Control" and it tries to download a module and says it's not compatible. I have Touch Wake enabled in the options.
[Nexus 4 Original Android Development] pyr0sphere:
Hmm, default version 1.71 = Performance governor & 2 cores always on 1512 frequencies?
[Nexus 4 Original Android Development] BrandoHD:
Definitely not

Ondemand and 384 to 1512

Sent from my Nexus 7
[Nexus 4 Original Android Development] pyr0sphere:
No idea what's happening then, because I don't have Trickster set on boot and I've restarted 2 times and those are my srttings

AFAIK psx rom doesn't have any init boot scripts running either
[Nexus 4 Original Android Development] BrandoHD:
Try a dirty flash of your ROM again, then flash this kernel

Sent from my Nexus 7
[Nexus 4 Original Android Development] szucsgf:
A build of PSX had this issue. Just change it in trickster. PSX dev is aware. Fixed in later builds.
[Nexus 4 Original Android Development] pyr0sphere:
Got it. Set all the settings

For hot plug, min core is 1? What is up threshold set at? Thanks
[Nexus 4 Original Android Development] psycho693:
Testing!

Sent from my Nexus 4
[Nexus 4 Original Android Development] thracemerin:
http://xdaforums.com/showpost.php?p=46154746&postcount=4047
[Nexus 4 Original Android Development] psycho693:
Thank you I missed the post in the last page. The first link didn't work then found the second one!

Sent from my Nexus 4
[Nexus 4 Original Android Development] hlt4668:
After enabling exponential- Wow! fantastic, you have revealed much larger range of brightness setting! Screen can get very dark now
[Nexus 4 Original Android Development] Imppy:
What are the values I put in into semaphore manager for half breed values ?

---------- Post added at 12:04 PM ---------- Previous post was at 11:57 AM ----------

Exponential how to enable that?
[Nexus 4 Original Android Development] snak3ater:
Exponential Enable
[Nexus 4 Original Android Development] Dan1234567890:
What a great kernel, and even greater dev

[MENTION=3750240]stratosk[/MENTION]; I have been using your kernel only for few days, but I have been following your thread for several weeks now.

What a great kernel, but even more than that, what a great approach you have. Not only your personal/professional approach here on your thread, which is amazingly good, empathetic and caring towards people, but that you decided to make kernel and app free...it just blew me away. I wish there were more great people like you. :good::highfive:

thx man!!!

0VL28753RG8946844
[Nexus 4 Original Android Development] stratosk:
Thank you so much for your kind words and for your donation!

I really appreciate it, my friend!

When I'm reading posts like yours, I get the motivation to continue...
[Nexus 4 Original Android Development] Imppy:
How do we put these settings?
[Nexus 4 Original Android Development] bardriel:
Can I ask a little question? What are the values of the thermal managent on this kernel?
[Nexus 4 Original Android Development] snak3ater:
Same value as in Google Stock Kernel :)
[Nexus 4 Original Android Development] meangreenie:
Didn't think i could like a kernel more than 1.6.5 but i was wrong, 1.7.1's new brightness options are awesome for night owls like me.

Btw.. people asking how to set the new brightness options, all the info is provided in the first post.
[Nexus 4 Original Android Development] jelle2503:
New brightness options are awesome. I had forget to set exponential last night, but I just did and I thought my screen went black. But it was just barely readable. Perfect for when i'm in bed at night reading your thread.

Still dedicated to your kernel development since day 1 on xda. Must be 3+ years now. When I read your thread I know it is quality stuff, you are a true gentleman and dev with a good heart. Amount of ppl reporting bugs with logs is awesome too. This thread really sets a high standard on xda for what development can really be with a good community, and should be used as example. Appreciate dev like Skip ans Franco dropping in here to help too. Top notch.

I'm going to make 3rd donation to you soon, as I lack time to contribute in another meaningful way. Last donation been to long ago i nearly feel guilty for using your awesome free kernel and app, time for me to buy you beer again.

Ps. If you dont mind me suggesting, i think more users should be able to approach sema. The bar for users to step in on semaphore can be lowered. For example in-app explanations/hints when longpressing entries in the app (and governor parameters ). And presets like halfbreed for lcd calibration like trickster has.. More user friendly semaphore meaning more users and less users asking repeat question.

Verstuurd vanaf mijn Nexus 4 met Tapatalk 4

Edit: forgot to mention my phone been fricking flying, on just 2 downclock cores online at all time and a tad aggresive ondemand/touch parameters. Perfect for my usage. And battery is unbelievable.
[Nexus 4 Original Android Development] stratosk:
I have no words to thank you enough, my friend! THANK YOU!

I wish I could do something more than a 'thanks' to show you my appreciation.

Please don't feel guilty (because then I will feel guilty that you feel guilty) :)

Your contribution is great and awesome!!! (and this post is the biggest contribution)

About a more user friendly app. I try, but always due to lack of free time documentation goes last in my TODO list. I will try harder...

Thanks again, my friend!
[Nexus 4 Original Android Development] hlt4668:
I am testing the brightness controls here, after switching from 0 ( exponential) to 1 (linear) a few times and back, it seems that maximum brightness for linear is slightly brighter than with exponential. I set max_br to 114 as well but it still did not make the exponential maximum as bright as the linear. Can anyone confirm this?
[Nexus 4 Original Android Development] stratosk:
It sounds logical.

Kernel does not use the max brightness value that chip provides (127), maybe for safety reasons because the chip provides the current to LEDs.

linear 114 <> exponential 114.

Maybe I can increase the maximum brightness limit beyond 114, but I'm not sure about the risk.
[Nexus 4 Original Android Development] hlt4668:
I understand. thanks for your reply. I guess I will just switch it during day vs night, Then I can enjoy the best of both worlds :cowboy:
[Nexus 4 Original Android Development] stratosk:
Semaphore Manager will be out soon, so you could do that easily.
[Nexus 4 Original Android Development] MuertoKo:
Perhaps increasing limit when exponential is enabled to equal the voltage delivered to leds on both situations? Sort of? I hadn't even noticed it's lower brightness xD

Enviado desde mi Nexus 4 usando Tapatalk
[Nexus 4 Original Android Development] stratosk:
LEDs are actually diodes and they driven by current.

When we set the brightness level (2-114), chip adjusts the current that goes through LCD LEDs and this changes LED's brightness.

Every electronic component has specific characteristics. We should follow specifications given by manufacturers. Unfortunately, I don't have backlight LEDs specifications, so I can't say if it's safe to overdrive LEDs (and what is the upper current limit). I'm sure that we will not have issue but usually using more current to drive a LED may reduce its lifetime or in the worst case burn it.
[Nexus 4 Original Android Development] jokermithun:
Purity+Semaphore1.7.1

---------- Post added at 10:52 PM ---------- Previous post was at 10:49 PM ----------

N4 is my first nexsus device and never came across such a polite person like u sir in any other thread...thank u so much for great support..:)

Purity+Semaphore1.7.1
[Nexus 4 Original Android Development] aLPaSLaN07:
In the thread i've seen an explanation to adjust the contrast. Two of the below values was the contrast and the brightness value and should be applied for the all three colors

64 68 118 0 20 0 48 32 1

Which ones are they? Would be perfect if semaphore kernel control app included contrast brightness adjustment feature rather than changing some numeric values..
[Nexus 4 Original Android Development] Fenvarien:
Thanks for the new brightness feature in Semaphore Manager and all the other tweaks and fixes, [MENTION=3750240]stratosk[/MENTION] :good: :) Nice work!

Now I can finally uninstall all those brightness and screen dimmer apps!
[Nexus 4 Original Android Development] stratosk:
Semaphore Manager 3.1.0

(in memory of my father)
[Nexus 4 Original Android Development] schmitzekater:
Updated.

Thanks so very much for your hard work. Kernel and App are flawless. The exponential brightness is the best thing I've seen for a long time.

Cheers!

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Nexus 4 Original Android Development] JaqaL06:
how can I set pa half colors ? I'm little noon about semaphore manager ..

Sent from my Nexus 4
[Nexus 4 Original Android Development] marhensa:
forget PA Half Color.

try this, hope you like it.

Temperature: All 255.

R: 0 87 103 1 8 6 5 3 2

G: 0 87 103 1 8 6 5 3 2

B: 0 87 103 0 8 6 5 3 3

dont forget to turn off display the on again, to see the effect.

Sent from Android device using Tapatalk 4
[Nexus 4 Original Android Development] pyr0sphere:
Think my earlier question was missed, can anybody tell me what the min core is set at and also the up_threshold in Trickster Mod?

Can't access default settings
[Nexus 4 Original Android Development] spelaben:
What happened? :(
[Nexus 4 Original Android Development] ihancioglu:
I cannot use touchwake. Enabled in settings and delay to 2000. But does not work after 2 seconds. Any idea?
[Nexus 4 Original Android Development] alen1901:
Default min core online is set to 2, and up treshold is 25.

---------- Post added at 12:05 AM ---------- Previous post was at 12:04 AM ----------

Try 100 and see if it works. I put 3 seconds for touchwake timeout and its working great.
[Nexus 4 Original Android Development] ciprianruse88:
Sema 1.7.1 with latest Purity rom and I still have 50% battery left :) .Amazing job Stratosk ! :cool::thumbup:
[Nexus 4 Original Android Development] Rafase282:
I guess this kernel does not work with with the current cm.
[Nexus 4 Original Android Development] -iNSiGhT-:
CM changed things with color calibration so all custom kernel give wrong colors...

Paranoid mako

---------- Post added at 01:00 AM ---------- Previous post was at 12:53 AM ----------

Touchwake is activated immediately after the screen turns off by inactivity and during the delay that you specify. So if you set 2000ms (= 2sec) touchwake will work for 2 sec (since the screen off) and not after 2 sec.

You can set a LED trigger for touchwake so you'll see how it works/when it's active.

Paranoid mako
[Nexus 4 Original Android Development] galaxys:
1.7.1j So far so good on RBJ! Great version!!
[Nexus 4 Original Android Development] wiswis:
these are great settings
[Nexus 4 Original Android Development] alen1901:
In trickster its in seconds, but yeah, 2000ms is 2 seconds, thats important to remember. Also about touchwake, keep in mind that after locking device with power key, touch wake wont work.
[Nexus 4 Original Android Development] petrsiri:
Great work Strato!
[Nexus 4 Original Android Development] pyr0sphere:
Been getting a bunch of reboots on 1.7.1 with Psx. Completely disabled UV too. Could touch wake be causing it?
[Nexus 4 Original Android Development] BrandoHD:
It's a possibility

A log would really help the Dev though
[Nexus 4 Original Android Development] lalo20:
Thanks for the hard work with this awesome kernel stratosk

"Disable touchwake during calls" doesnt work in latest semaphore manager.
[Nexus 4 Original Android Development] pyr0sphere:
I can do that, just had another reboot 20 seconds ago. Can you lead me to where the file would be located? And how to identify it's the one I want ie are they time stamped?
[Nexus 4 Original Android Development] szucsgf:
http://xdaforums.com/showthread.php?p=46006445
[Nexus 4 Original Android Development] BrandoHD:
If you're using the Sephamore Manager app it's not very easy by hitting the menu overflow button or you can use a root Explorer and browser to /proc/kmsg and attach the file
[Nexus 4 Original Android Development] pyr0sphere:
Not sure why but:

1) Tapatalk doesn't allow me to attach files

2) I browsed to the directory. I see a 76.55 kb file but I can't email it to myself through Gmail, nor send it to my Dropbox. Any ideas on why not? I have root explorer enabled in File Manager
[Nexus 4 Original Android Development] soumoks:
Copy the file to a different location in your internal storage, you should be able to attach it then.