yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] Skkip:
[MENTION=3750240]stratosk[/MENTION]:

hi my firend :)

regarding the average: why don't you do something like this :) I tried it on nexus 7 and it works great :)

void cpufreq_notify_utilization(struct cpufreq_policy *policy,
unsigned int util)
{
if (policy)
policy->util = (policy->util + util) / 2;
}

about cpu offlining: i believe you would not like to offline a cpu with a low average load, but current high load. this way the scheduler would have to move all threads from this core to other cores causing load spikes and cache misses. if you just offline the cpu with the lowest current frequency the fewest threads would be moved.

Thx for considering and discussing my thoughts :)

Skip
[Nexus 4 Original Android Development] stratosk:
I need the last_kmsg and not the kmsg.
[Nexus 4 Original Android Development] MuertoKo:
Worked this time ^^ Stupid Paypal...

We'll see what's next when it comes then ^^ So far I can just... wait ^^ Keep it up! Reading an answer to every question is just... so much appreciated, really.
[Nexus 4 Original Android Development] kundica:
Ah... Here you go.
[Nexus 4 Original Android Development] stratosk:
Hi,

With you method for average util, you have to steep changes.

For example suppose you have util = 0 to one core and then the load in next sampling rate goes to 100. You will have average util 50 (above my default up_threshold) in 1 iteration.

With my method you will need 25 iterations to go above up_threshold.

You are right about the offlining CPU method, I will try it and let you know.

Thanks so much my friend! Really appreciated!

Thanks for the log.

Unfortunately, I can't find out how this kernel panic caused. There is no a call stack in the log.

I will invistigate it a little bit more and let you know if I will find something.

What's your ROM? Did you use other kernel before? Did you have a clean ROM and boot partition before flash the latest Semaphore?
[Nexus 4 Original Android Development] Bonvaz:
Just can't understand..is something change in LCD settings with 4.3? I used bundi 22 iPhone 5 settings on 4.2.2 always with franco,but with this values on 4.3 and senpahore is not the same.... I don't know how to explain it,but it doesn't look as bundi22 iPhone profile on 4.2.2..Google change something or maybe it was an option on Franco kernel that change the color?

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] aimcr7:
Got random reboot couple hours ago on CM 10.2 latest official nightly.

I don't know I got at least one reboot every day, it usually after charging when battery on 92% but this time is on about 65%.

Reboot usually happens when the screen is off, either turned off by itself or with power button. I don't know if it kernel related or not, but hopefully my log will help. :)

Here is the last_kmsg http://pastebin.com/Mqfq25Z5
[Nexus 4 Original Android Development] szucsgf:
Google did change the default color settings on 4.3. The default 4.3 colors look much less yellow and more realistic than before. In fact I would say they made the default colors closer to bundi22. Perhaps what you're experiencing is just that they're isn't as big a difference between default and bundi22 as you're used to? Just a shot in the dark.
[Nexus 4 Original Android Development] Bonvaz:
I don't know,it seems to me that with colours aren't as before..especially at minor brightness of LCD.. White isn't white as in bundi22,is more dirty,maybe is something related to gamma? I don't know :(

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] hotnikkelz:
I dirty flashed newest version. Of my rom along with your kernel and the latest superuser and I have been using it for around 12 hours now with no reboots at all. Thanks :thumbup:

Sent from my Nexus 4
[Nexus 4 Original Android Development] KSLevel11:
Hello Stratosk!

What thermal throotle settings are present in your kernel? Stock one or something like in other kernels?

greetings.
[Nexus 4 Original Android Development] gialakias:
Well I had random reboots on stock but with a research I realized that it is Chrome beta that was forcing the reboot. When I had it open and the phone slept then after less than a minute it was rebooting with kernel panic.
[Nexus 4 Original Android Development] stratosk:
Hello!

All thermal settings are stock one
[Nexus 4 Original Android Development] stratosk:
Thanks for the info.

I just installed Chrome beta and reroduced your scenario! Amazing!

The problem is that this kind of kernel panic does not leave any traces...
[Nexus 4 Original Android Development] twowheeler:
Correct me if I'm wrong but I believe Franco uses some values that we write as 0 values. There's a better explanation some pages back in this thread. Every number changes a certain value. The 0's here (not all) are Xes which means that we don't know their exact value.

I know im not a very good teacher :P
[Nexus 4 Original Android Development] Bonvaz:
OK,all is more clear in this way..thanks..so we can't have the colours perfect as in Franco..thanks for your explanation, you're not so bad as teacher :D

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] aimcr7:
Well, any suggestion what browser is recommended to replace chrome? since chrome beta is messed up and I don't really like android browser.

The kernel is amazing, battery life is great, before last reboot, I got 2h 22m SoT and still >60% left, 8h standby time.
[Nexus 4 Original Android Development] skatashock:
Chrome standard/stable? had no reboots after uninstall Chrome beta & install Chrome stable
[Nexus 4 Original Android Development] MuertoKo:
Worth a try to reproduce this on normal Chrome, I'll try later today... could be pretty weird if that issue can be reproduced out of Beta O.o Hope it's not!

It's just opening some new tab, blocking device and waiting... right? Make pls sure to report the issue to Google in order to get it adressesed before Beta goes life, otherwise we'd all be in trouble :P
[Nexus 4 Original Android Development] snak3ater:
I don't know how you got the point..I did not understand a bit :eek:

Btw Colors in Faux & Semaphore looks better to me..It's just a personal choice..
[Nexus 4 Original Android Development] stratosk:
I don't this issue exists in chrome stable. I use it a lot. Never faced it.

It's very easy to reproduce it on beta version, though.

I googled it. It has been already reported.
[Nexus 4 Original Android Development] yukkio:
Hi, What's the wake lock at the top? My screen was off all the time.

Br
[Nexus 4 Original Android Development] stratosk:
Please check your partial wakelocks.
[Nexus 4 Original Android Development] yukkio:
I don't see nothing, I think
[Nexus 4 Original Android Development] stratosk:
I thought that maybe app will show you something because:

https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/PowerManagerService

These are wakelocks from userspace.
[Nexus 4 Original Android Development] kandarpck:
Its funny how AOSP browser is so smooth and bug free but Chrome/Chrome Beta are buggy and laggy when they are technically almost same. :D
[Nexus 4 Original Android Development] capoooro:
Never had issues with chrome.

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] kandarpck:
Take a heavy page and compare the scrolling experience on Chrome and AOSP. You'll be amazed with the results.

Also, had many sync issues with Chrome. Crashed sometimes too.
[Nexus 4 Original Android Development] shr33kant:
No idea why they didn't just build a browser with the AOSP one as the base to be honest. Personally I use Dolphin because flash works better on it ^_^
[Nexus 4 Original Android Development] -iNSiGhT-:
[MENTION=3750240]stratosk[/MENTION], just for information, do we need to reboot between ROM flash and Semaphore flash or can we do it all in one Recovery session?

Paranoid mako
[Nexus 4 Original Android Development] szucsgf:
All in one recovery session. ROM first then kernel.
[Nexus 4 Original Android Development] kundica:
CM 10.2 compiled myself, no cherrypicks or special commits. I always flash CM then your kernel, so it's clean.

I run Chrome Beta! I'll try uninstalling it and with CM and your kernel loaded and see if I still get the random reboots. Thanks.
[Nexus 4 Original Android Development] hotnikkelz:
Best I ever got

Sent from my Nexus 4
[Nexus 4 Original Android Development] sam854:
First I'd just like to say how amazing your kernel in my opinion its the best and my favourite on here but unfortunately I have to go back to another one... (franco) as it is unstable for me

Hopefully the bug causing the restarts for me will be fixed soon.

I don't have logs as I could find where they were saved to but here are the details bin case they are any help at all...

In on pa 3.99 restarts occurred about every 2 hours they seem to occur randomly. I am on default kernel, red led slight would often flash randomly/before restart but the battery temp was low and red led says is linked to thermald in settings.... And sometimes when this process happens screen goes blank and unresponsive and have to hold down the power button and vol down button to restart...

This was after a fresh pa ROM install (dirty) and not chrome beta on this phone....

I know you probably can't do much with that info but thought it might help. If you tell me how yo get logs I will try to get thwn the next time I come back to this kernel to test if its stable. But again love the kernel keep up the great work and support. I can see this kernel getting very popular!
[Nexus 4 Original Android Development] alen1901:
Im sorry but this is not the way to help. Stay on this kernel, save logs (with catlog app for example), and with some root explorer save last_kmsg located in /proc/last_kmsg if your phone reboots. (You need to do that immediately after your phone reboots). Kernel is rock solid, not a single problem here. Make sure you leave default settings on kernel for troubleshooting. Also make sure you flash correct kernel version on your rom.
[Nexus 4 Original Android Development] hulicow:
Yes this kernel is pretty rock solid [MENTION=3750240]stratosk[/MENTION] i am near on 24 hours uptime right now. Based on my observation, I have no random reboots after I disabled touch control. Looking forward to Semphore kernel based on latest linux kernel 3.4.61 soon. I hope that OTG support will also be included but if not that's o.k. I am already satisfied with your kernel. I also set my Dynamic Hotplug Up Threshold to 95 Minimum cores by 1 and Maximum to 4.. :)
[Nexus 4 Original Android Development] stratosk:
Thanks for your feedback.

Unfortunately, as you said I can't do much without logs.
[Nexus 4 Original Android Development] rwaempires:
As always.. Very polite...:good:
[Nexus 4 Original Android Development] sam854:
I am still not completely sure how to do logs but I will lool it up and try to send one to you :)

I've come back to test it with the new pa rom.

Also could someone please tell me what the red led light actually means I get it all time and yet I pretty sure my CPU isn't over heating.... Phone feels cool as usual and not doing anything that is resource heavy...?
[Nexus 4 Original Android Development] stratosk:
After your reboot, open terminal emulator and run these commands:

su

cat /proc/kmsg > /sdcard/kmsg.txt

cat /proc/last_kmsg > /sdcard/last_kmsg.txt

You will find kmsg.txt and last_kmsg.txt in your sdcard. Please send them.

Maybe I will also need a logcat (if it's not kernel related) but leave it as the next step.

About the red led, try to disable the red led trigger from Semaphore Manager. Maybe your ROM already uses red led.

Also, the thermal led trigger does not switch on the led only if CPU is overheating. It starts when the CPU >= 52 degrees and it increases brightness as the CPU increases temperature. It is just a warning. It does not mean that your phone works abnormally.
[Nexus 4 Original Android Development] sam854:
Thanks!

You are truely a delightful dev. Will try the above next time :)
[Nexus 4 Original Android Development] aimcr7:
Report: No more reboot after uninstalled Chrome beta.

Btw, I smell 6h screen on time..

, mostly on falcon pro, tapatalk and browsing with firefox.

This kernel is awesome! I am impressed with its idle drain, the performance is great, and let anyone who ask about battery life see my screenshot. :cool:
[Nexus 4 Original Android Development] rwaempires:
My first freeze...not sure if its kernel related...touch stop responding on lockscreen...need to manually reboot by long press power button..

p.s :

UV : 50000

MIN 1 CPU online

I set everything back to stock...see if it happen again

Thank you
[Nexus 4 Original Android Development] droid_legacy:
Update

Hey guys.

I have a question. Can I update this Kernel like any other kernel by just flashing over or do I have to do something else? E.g. flash stock kernel and then flash the new update.

Thanks in advance
[Nexus 4 Original Android Development] snak3ater:
Always fastboot Flash the Stock Kernel first..It's just 1 extra step & needs not more than a sec to do it..After that flash Semaphore Kernel from recovery.

---------- Post added at 08:08 PM ---------- Previous post was at 08:07 PM ----------

Are you using Touch Control App :confused:

\This thing happens only while using TC app
[Nexus 4 Original Android Development] stratosk:
Yes, he does. That's why I'm also asking kmsg:

<4>[ 76.951167] ------------[ cut here ]------------
<4>[ 76.951167] WARNING: at kernel/smp.c:325 smp_call_function_single+0x178/0x1d8()
[COLOR="Red"]<4>[ 76.951167] Modules linked in: ponury_gm(PO)[/COLOR]
<4>[ 76.951167] [<c0014c28>] (unwind_backtrace+0x0/0xf8) from [<c00721bc>] (warn_slowpath_common+0x4c/0x64)
<4>[ 76.951167] [<c00721bc>] (warn_slowpath_common+0x4c/0x64) from [<c00721f0>] (warn_slowpath_null+0x1c/0x24)
<4>[ 76.951167] [<c00721f0>] (warn_slowpath_null+0x1c/0x24) from [<c00b92f4>] (smp_call_function_single+0x178/0x1d8)
<4>[ 76.951167] [<c00b92f4>] (smp_call_function_single+0x178/0x1d8) from [<c0051cdc>] (msm_spm_set_vdd+0x4c/0x74)
<4>[ 76.951167] [<c0051cdc>] (msm_spm_set_vdd+0x4c/0x74) from [<c0050000>] (msm_pm_power_collapse+0x1d4/0x2c4)
<4>[ 76.951167] [<c0050000>] (msm_pm_power_collapse+0x1d4/0x2c4) from [<c0050c00>] (msm_pm_idle_enter+0x1b8/0x21c)
<4>[ 76.951167] [<c0050c00>] (msm_pm_idle_enter+0x1b8/0x21c) from [<c00562f0>] (msm_cpuidle_enter+0x2c/0x84)
<4>[ 76.951167] [<c00562f0>] (msm_cpuidle_enter+0x2c/0x84) from [<c04bb134>] (cpuidle_enter+0x14/0x18)
<4>[ 76.951167] [<c04bb134>] (cpuidle_enter+0x14/0x18) from [<c04bb620>] (cpuidle_idle_call+0xc0/0x338)
<4>[ 76.951167] [<c04bb620>] (cpuidle_idle_call+0xc0/0x338) from [<c000f9e0>] (cpu_idle+0x9c/0x104)
<4>[ 76.951167] [<c000f9e0>] (cpu_idle+0x9c/0x104) from [<c082ee74>] (rest_init+0x8c/0xa8)
<4>[ 76.951167] [<c082ee74>] (rest_init+0x8c/0xa8) from [<c0d008f4>] (start_kernel+0x440/0x4a0)
<4>[ 76.951167] ---[ end trace 35f1a58bc026a174 ]---

[MENTION=4945866]rwaempires[/MENTION]

Please remove touchcontrol module and retry.

You are also undervolting. But not too much, so I don't believe that your issue is undervolting.
[Nexus 4 Original Android Development] droid_legacy:
Is there a flashable zip for the stock kernel? Or shell I make one myself with the stock kernel included in my rom?
[Nexus 4 Original Android Development] meangreenie:
Weird.. I got 20% battery drain overnight in airplane mode, before hand it had been flat lining nicely. Erroneous app I guess?
[Nexus 4 Original Android Development] szucsgf:
Probably. Can you post bbs stats?
[Nexus 4 Original Android Development] jolas:
http://xdaforums.com/showpost.php?p=45331835&postcount=3141

;)
[Nexus 4 Original Android Development] nadiros:
Eh just wanted to report back concerning the reboots I was having. I too uninstalled Chrome beta and haven't had a reboot in a couple days. (I was getting 2 to 3 a day) The odd freeze on lockscreen that happens once or twice a week is only Touch control app and its not the kernel, although it barely ever happens on Slimbean for some reason.

Thanks Stratos for this great kernel :thumbup:
[Nexus 4 Original Android Development] snak3ater:
Just use the Link provided by Jolas..Btw you can easily make it yourself as well by taking out the boot.img from the Rom Zip file & putting it in a flashable zip..
[Nexus 4 Original Android Development] meangreenie:
Well it wasn't going into sleep mode. I thought about trying to find out what was causing it but i just rebooted instead. It happened once or twice before on very rare occasions since I have had the phone on launch. It's 99.999....% a Google derp.

Anyway this kennel is so smooth it's rediculous.
[Nexus 4 Original Android Development] snak3ater:
& here i was wondering why i never had any reboot while using Semaphore..It might be due to the fact that i don't use Chrome..

Anyway..This lock screen freeze thing is due to TC app..It happened to me a lot of times when i was using Faux Enhanced Stock Kernel.. TC app works fine in all other kernels that iv'e tested so far except the only one mentioned Kernel..
[Nexus 4 Original Android Development] ciprianruse88:
If anyone is interested this is how bundi_44 Iphone 5 gamma settings looks in semaphore app :thumbup:
[Nexus 4 Original Android Development] rwaempires:
Thanks...
[Nexus 4 Original Android Development] kundica:
I spoke too soon. No longer running Chrome Beta and I had a reboot a few hours ago just after the screen shut off. I feel like it happens if I touch the screen a second or two after the screen goes black. I don't have logs for you, but I'll try to make it happen and send them to you.
[Nexus 4 Original Android Development] karthi89:
I just want obsanity amoled values to be used in semaphore. Anyone is using that profile?
[Nexus 4 Original Android Development] stratosk:
Do you use touchcontrol?
[Nexus 4 Original Android Development] kundica:
Nope. I haven't been able to make it happen again either.

Sent from my Nexus 4
[Nexus 4 Original Android Development] snak3ater:
Search 'Franco to Semaphore Spreadsheet' in this thread.You will find all values in a single Spread sheet..Anrikus posted it here some time ago
[Nexus 4 Original Android Development] karthi89:
Yeah got it thanks man. [MENTION=3750240]stratosk[/MENTION] can u link the spreadsheet to op? Is to possible to implement color profiles within the app? It will be handy
[Nexus 4 Original Android Development] ciprianruse88:
Spreadsheet to the op is a very good ideea and the second one it will be perfect.bundi's iphone 5, obsanity amoled and lg stock would be amazing to have in semaphore app :)

Edit:also an on/off thermal switch :)
[Nexus 4 Original Android Development] nadiros:
So for those of us that do use touch control, what do you recomend? Is it his module that needs reworked or a tweak in your kernel? Should we be bringing this up with bponury?
[Nexus 4 Original Android Development] jolas:
I don't think that it has to do with TouchControl.

I use it and have no problems neither reboots at all...
[Nexus 4 Original Android Development] stratosk:
I'm really sorry but I can't help.

I can only see in the logs there is warning in kmsg when touchcontrol's module is loaded. Also, users who use touchcontrol and has these reboot unloaded the module and reboots stopped.

TouchControl module is a closed source proprietary module. I can't check anything.

Yes, I think you should report this to bponury's thread.
[Nexus 4 Original Android Development] jolas:
I use only the 'slide2wake' module from TouchControl.

Maybe users with reboot problems, should disable other modules to see if their problems will stop.
[Nexus 4 Original Android Development] snak3ater:
I use Slide to wake & Sleep both..Never had any issues like Reboot or freezing on semaphore kernel..
[Nexus 4 Original Android Development] manpildo:
I also use only slide2wake and haven't had any freezes or reboots.

Maybe people who use TC, also use kernel integrated touch wake alongside TC-s doubletap2wake or touch2wake? Maybe they are in conflict.
[Nexus 4 Original Android Development] alen1901:
I use only touch2wake setting with trickster. No problems. So yeah, maybe they have some conflicts.
[Nexus 4 Original Android Development] Bonvaz:
Someone give me this settings for bundi22(iPhone 5)..what is the right one?

Inviato dal mio Nexus 4 con Tapatalk 4
[Nexus 4 Original Android Development] :
I flashed latest PA RC1 and Sema 1.6.0 kernel intalling sema app, I activated touch2wake, but when I touch the screen it doesnt switch on. How can use it? Thanks
[Nexus 4 Original Android Development] apatal:
The correct name of the mod is "touchwake" and not "touch2wake". The distinction is important as the latter may give the impression that you can wake the phone up from deep sleep by simply touching the screen, which is not the case. What the mod does, is you can set a period, say 45 seconds, after the screen turns off by itself by immediately touching the screen. After that time has expired, you won't be able to wake up your device using it. :)
[Nexus 4 Original Android Development] hulicow:
Add Go to Sleep button in Quick tiles -> Tap the Go to Sleep button on Quick Tiles -> Touch the screen to get touch wake to work. Notice that it does not work just by turning off the phone's screen using power button. Its touch wake and not touch2wake. [MENTION=4459417]skrillex13[/MENTION]
[Nexus 4 Original Android Development] :
Oh its my bad thanks so much :):)
[Nexus 4 Original Android Development] ciprianruse88:
I posted it a page ago
[Nexus 4 Original Android Development] rwaempires:
And it looks good on my phone...;)
[Nexus 4 Original Android Development] ciprianruse88:
This is bundi's Iphone 5
[Nexus 4 Original Android Development] szucsgf:
Battery and benchmark from PSX ROM and Semaphore 1.6. Wifi 75% LTE 25%, always connected always synced, GPS always on. Lux auto brightness (brighter than stock auto brightness). Normal settings: reno 1024 deadline, min CPU 384 max CPU 1512, hotplug control min online 2 max online 4 up threshold 50. AnTuTu with same settings except min CPU 1512 min online 4. This is one badąss combo.
[Nexus 4 Original Android Development] Midomad:
Reno 1024 deadline?

Could you please post link to original thread?

Envoyé depuis mon Nexus 4 avec Tapatalk
[Nexus 4 Original Android Development] ciprianruse88:
This is my antutu score with Purity and semaphore 1.6.0(no s4 patch cuz doesn't work). I am curious how PSX score would be without the prebuilded s4 dalvik patch :D
[Nexus 4 Original Android Development] mondaza:
Can i change min-max frecuency with app manager semaphore?

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Original Android Development] szucsgf:
Sorry those are just my tcp and io settings in Trickster.
[Nexus 4 Original Android Development] szucsgf:
I don't know how much of a boost that patch alone gives... I would test it if I could think of a way.

Mind posting the graphic and io parts of the antutu score? Just out of curiosity. (I run 280 dpi partly because it lets me show all parts of an antutu score in one screenshot ;)).
[Nexus 4 Original Android Development] ciprianruse88:
I will do another one when I get home and send it to you via pm.This one I posted is the first antutu test I did when I flashed semaphore and I had it saved as a screenshot.
[Nexus 4 Original Android Development] szucsgf:
I don't think so. I couldn't find the option. You can change it using trickster. Default is min 384 max 1512.
[Nexus 4 Original Android Development] hulicow:
what is your io scheduler?
[Nexus 4 Original Android Development] szucsgf:
Mine? Deadline.
[Nexus 4 Original Android Development] ernestnwanu:
What CPU governor and font, sir?
[Nexus 4 Original Android Development] szucsgf:
Default ondemand. In general anything I didn't mention is default.

Font is BPreplay from this app:

https://play.google.com/store/apps/details?id=com.jrummy.font.installer

It's got a lot of cool fonts but I like this one because it's minimal and very easy to read with lowered dpi (I use 280 dpi).
[Nexus 4 Original Android Development] twowheeler:
First full cycle on 1.6.0 with pa 3.99 rc1

Changed the io scheduler halfway to deadline. Up-threshold is 80 and min 1 core active.

Thanks stratosk.