yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] robcore:
Yeah the wake up is definitely slow. I have a hunch as to why, and may be able to do something about it...maybe...the kernel HEAVILY relies on faux's power suspend, and powersuspend HEAVILY relies on the screen's on/off function. So I may able to come up with a workaround for this because I think the wakeup sequence is slightly out of order.

Fyi I spent a great deal of time last night working with voltages because I implemented a single step OC, which I have been testing since last night and no rr's btw, and have this recommendation for voltage manipulation.

The PVS and and Speed Binning are featured in the cpu voltage section in synapse for good reason. When this phone was manufactured, there were about 6 pvs levels with 6 different levels of voltage requirements, a common practice in cpu production. The higher your pvs number, the more undervolted your device already is. The higher pvs devices can't take as much undervolting because they are already undervolted from the factory.

Speed binning matters less so long as yours isn't 0...

To check out your voltage tables, have a look here, and see where your device falls on the spectrum. Higher pvs means lower chance of a stable undervolt.

https://github.com/robcore/machinex/blob/master/arch/arm/mach-msm/acpuclock-8064.c
[Galaxy S 4 i9505 Android Development] robcore:
Ps no rr's and this kinda sleep time means this overclock is probably stable enough for release eh?
[Galaxy S 4 i9505 Android Development] Andycar:
Hell Yeah!

- Who are we?

- Snapdragons!

- What do we want?

- More speed!!

- And when do we want it?!

- Now!!!

[emoji3] [emoji3]

P. S.

The delay is not too much annoying though. It's something that someone can get used to.

Отправлено с моего GT-I9505 через Tapatalk
[Galaxy S 4 i9505 Android Development] robcore:
Haha you'll have to wait a few more hours
[Galaxy S 4 i9505 Android Development] Andycar:
Hey that's a joke buddy, take your time[emoji4]

Отправлено с моего GT-I9505 через Tapatalk
[Galaxy S 4 i9505 Android Development] FlorianSSJ:
Hi bro, it' me again, how it's going?

Big undervolter here, i pushed you to bring us UV options lol, and so thankfull about it, no regrets.

I tested this UV values since day one when you gived us the possibility to manage themz and had onky 1 RR, and i din't think neither is caused buy UV tho. Try it on your self.
[Galaxy S 4 i9505 Android Development] robcore:
Read my post a few back regarding voltages and pvs values!
[Galaxy S 4 i9505 Android Development] robcore:
Lol it actually would be out earlier today but first I had issues with my linux box, then a Dr appointment. I am a jerk for all my teasing with photos ;)

Sooo more issues, the crappy usb stick I was running my distro on got corrupted and I had to go out and get another ssd. BUT ssd so faster and far more stable. That said, everything machinex related is on my external hd, so at least that's safe. Tonight I re-setup my distro and *hopefully* release Mark Thirteen, which blows MarkTwelve out of the water.
[Galaxy S 4 i9505 Android Development] chiruscan:
Once Markkernel is perfected you should start working on Markrom Robcor.
[Galaxy S 4 i9505 Android Development] robcore:
Lol machinex is the kernel, mark[number] is the version :p i really should have used a normal numbering scheme for my versioning, but too late now!

Honestly I think the guys who've built roms for the community have done a great job! There are a few personal tweaks I use, but lollirom has been the smoothest one I've used since Echoe! Friedrich420 and his team are amazing, but i would need a newer device to benefit from their latest works.

Maybe one day I'll work on a port, but I'm so gosh darn happy with Albe95's masterpiece I don't think I could top it!
[Galaxy S 4 i9505 Android Development] Superperry96:
Has anyone tried modifying vm heap size? If yes, what is the recommended size for better performance, battery and stability?
[Galaxy S 4 i9505 Android Development] robcore:
I would leave it as is man, I've been meaning to remove that option from synapse.
[Galaxy S 4 i9505 Android Development] Superperry96:
I actually try to halve the vm heap size and my phone crashed so yeah I won't dare touching it.
[Galaxy S 4 i9505 Android Development] robcore:
Lol the only reason why I sound so certain about some of this stuff is because I learned the hard way. Thank goodness knox wasn't around when I bricked my s2 skyrocket. I did NOT deserve that replacement ;)
[Galaxy S 4 i9505 Android Development] Corduroysack:
Tried machinex12 on good advice from Florian and got to say this is solid I'd stopped using it for a bit because of RR on custom roms but the compatibility now is excellent. only values I've changed so far is hellsactive and gpu to simple. Excellent work [MENTION=4763308]robcore[/MENTION] so glad I tried it again. running great on imperium v15 ☺
[Galaxy S 4 i9505 Android Development] vagelis74:
What's the best settings for battery life in machines 12;

Στάλθηκε από το SM-G935F μου χρησιμοποιώντας Tapatalk
[Galaxy S 4 i9505 Android Development] david19au:
I'm not really sure why but Machinex has been giving a lot of freeziness, random reboots and almost everytime i reboot/turn on the phone, it gets stuck while in bootanimation and reboots itself on Thor S7 ROM. I will wait for some updates to come and then flash back to Machinex, for now I'll have to go back to Imperium Kernel, keep up the work!
[Galaxy S 4 i9505 Android Development] robcore:
Many users have reported no issues. Without any logs from you, I can't asses your issues. Comments like these are unhelpful.
[Galaxy S 4 i9505 Android Development] david19au:
I know that, I will wait for the next release of the kernel and if the issue persists, I'll include a log then.
[Galaxy S 4 i9505 Android Development] robcore:
I'm suggesting the issue is not the kernel.
[Galaxy S 4 i9505 Android Development] david19au:
I don't know, I haven't had any issues with Imperium kernel tho, anyway, as I said I'll wait for a newer release of the kernel and try it out again. From what I read here it's awesome :laugh:
[Galaxy S 4 i9505 Android Development] Corduroysack:
Just had 2 RR's in last 20mins not had a single one all day just started with no changes. no logs cos I turned it off it's back on now. see if I can trigger another RR. how to reset setting to default?
[Galaxy S 4 i9505 Android Development] robcore:
Just reinstall the kernel, or clear synapse data. With rr's, it could very well be settings related
[Galaxy S 4 i9505 Android Development] Corduroysack:
Ok to just flash over 12? or better to run cleaner script and flash 13? :)
[Galaxy S 4 i9505 Android Development] robcore:
Just flash over : )
[Galaxy S 4 i9505 Android Development] devsnor:
Hmm for me it crashes(well, reboots actually) 9 out of 10 times in antutu(3d part of the test always, if it manages to pass that its always able to complete the entire benchmark). That's with or without OC, and on both stock and my own kernel settings. I turned logging back on and will report back soon, thanks.
[Galaxy S 4 i9505 Android Development] devsnor:
There, another RR. ; ) Hopefully you can make something out of this, thanks!
[Galaxy S 4 i9505 Android Development] Andycar:
[MENTION=4763308]robcore[/MENTION], I'm a bit superstitious... should I still flash 13th? Thanks ;)

Отправлено с моего GT-I9505 через Tapatalk
[Galaxy S 4 i9505 Android Development] david19au:
Okay, I flashed 13th today and the random reboots are still happening, here are two logs from two random reboots.

View attachment 3890160

View attachment 3890161

View attachment 3890162

View attachment 3890163

View attachment 3890164

It looks like I'll have to go back to Imperium Kernel again.

My device: GT-I9505, Thor S7 Rom, Xposed installed, PG1 modem
[Galaxy S 4 i9505 Android Development] robcore:
Thanks for the logs, but these ported roms have binaries like /system/bin/IPSecService that are not made for our device, and I don't know what people have for settings, mods, root apps etc, but I have no rr's at all.
[Galaxy S 4 i9505 Android Development] david19au:
Yeah, sure thing. I'll most probably flash Super WizCyan due to battery issues on Thor S7, so I will try this kernel out on that ROM for sure, I'll report back with the results of that ROM
[Galaxy S 4 i9505 Android Development] robcore:
I'm gonna share this init.d script because I think people might benefit from it. Just flash the zip and it installs a one line init.d script disabling it on boot. Lol I made it on my phone. So far my power management is better and system is smoother when I disable "asynchronous sleep." It also really helps with wakeups and driver sleep-counter issues. I'm always testing config options and for the next release this will be built in, but until then here:
[Galaxy S 4 i9505 Android Development] Superperry96:
No random reboot for me but antutu crashes and reboots my phone.

Attached the log file in case.

I experience sone game crashes but it's not always, tolerable.

I'm running an overclocked s4 i9505 with wizcyan rom.

My current settings:

-Hellsactive with modded high frequency (1.998 ghz).

-Simple gpu.

-Uv cpu (-0,75 V all) and gpu (-0.15 V all).

-Alucard hotplug.

-I/o gov: internal zen (2 gb), external fiops (1 gb because it's 16 gb).

-Phone runs smooth and okay, as always.

-TCP westwood.
[Galaxy S 4 i9505 Android Development] david19au:
This is a little bit offtopic but, how much SOT do you get with WizCyan and this kernel?
[Galaxy S 4 i9505 Android Development] robcore:
Lol sorry man but I'm not going to bother with looking through logs brought about from conditions where any voltage changes have been made and benchmark programs crash. I build this for usability, not benchmarks.

And in the OP I clearly state that I don't offer support for any situations when voltages have been changed. It's too unpredictable.

For gaming, why don't you guys just use the performance gpu gov?
[Galaxy S 4 i9505 Android Development] Superperry96:
Okay sorry I didn't notice you don't support modded voltage users hehehe, well nevermind, at least my phone is still more than usable and operating with a little performance improve, still god job :p

I use simple because it's more recommended than performance and i personally prefer it even for gaming.

Dave sorry for the nooby question but what is sot?
[Galaxy S 4 i9505 Android Development] Corduroysack:
sot = screen on time ☺
[Galaxy S 4 i9505 Android Development] devsnor:
Here it crashed on stock settings so would you consider looking at mine, pretty please? ; ) Don't take this wrong please, I know what you stated your kernel was, and I chose to use it, but that minor instability... I don't even game on my phone at all, but the fact that under some heavy benchmark load the phone reboots is like an itch in my brain that I cannot reach, if you know what I mean. I am only asking because I'm all out of ideas, and btw, geekbench just crashed on me too, on stock settings, so I don't think it's just GPU related issue. I am not even looking for a fix here, just a workaround perhaps? Magical setting I can fiddle with? ; ) Thanks in advance, instability aside, when antutu does complete, the score is over nine... I mean over 42k which is awesome, I never really got anything over 38k on stock and 40k on imperium. ; D
[Galaxy S 4 i9505 Android Development] Superperry96:
Heavy usage (gaming): at least 2.5- 3 hours.

Medium usage (internet + at least 1hour gaming): about 3.5 hours.

My battery was probably a little bit damaged due to a little accident (my phone was wet and I immediately dry anything and fortunately my phone is still working as usual apart for a battery that has less durability,about 1.5 to 2.5 min per 1% if heavy usage).

I think this kernel has better battery management than others I tried, also performance is very good and I really like using this kernel (didn't expect my phone can handle a oc uv cpu anyway lol).

Anyway rob, don't bother for now my complain about antutu and game crash because it became stable (after I enable again 2d graphics acceleration in developer settings so autofixed it myself).
[Galaxy S 4 i9505 Android Development] robcore:
Actually I DO have some tips for benchmarking. Don't use stock settings, and DEFINITELY don't do it using the settings you had above.

Benchmark Profile:

CpuMax: 1998

CpuGov: Performance

Cpu Voltage: Stock

[EDIT]: Oh yeah, also force all of your cores online with whatever hotplug you use. ALL FOUR CORES AT 1998 mhz.

GpuGov: Performance

GpuVolt: Stock

Both Schedulers: noop or fiops

Power Efficient Workqueues: off

Your settings were heavily modified for aggressive battery savings, including undervolted peripherals and schedulers modified for fluidity, not throughput. I don't benchmark my machines at all (with the exception of vfp benchmarking which is directly related to the quality of my floating-point programming), because they drastically limit the lifespan of hardware that I am already pushing to the limits. Don't push one's luck, right?

But yeah, if you ARE in the business of benchmarking, push everything to the max. If you are in the business of battery saving/fluidity, research the linux kernel and find the tunables that work for you.

Benchmarking is pointless if you don't max everything out.
[Galaxy S 4 i9505 Android Development] droidblitz:
I had another random reboot just now.

I was installing facebook and messenger and suddenly rebooted itsslf and had the 1 of 1 android optimazation boot up screen.

Update:

ScreenFlicker when playing clash of clans.

Browsing through the barracks tab.

This is what i use all other preset default settings.

=======

Had to flash back stock PF4 kernel

I need a stable device throughout the day.

I will try it back again durring free time. :D

Keep up the good work.
[Galaxy S 4 i9505 Android Development] robcore:
For sure, just keep an eye on the thread!

One thing that concerns me is that I've extensively tested this only on one rom (Albe), and it's hard to predict how it may interact with others. I might have to go on a flashing binge.

Anyhow, make sure to flash the uninstaller script in the op!
[Galaxy S 4 i9505 Android Development] xell75:
[MENTION=4763308]robcore[/MENTION] When you release the new version of your Kernel, is it enough just to flash over the new one, when I use your kernel already?
[Galaxy S 4 i9505 Android Development] robcore:
You ask good questions, my friend. I do it all the time because I'm lazy...but it works because the installer script is designed to clean out synapse's data and what have you. I'd say yes because it works for me. Ps I have something to show you, Alucard24 to the rescue. Interactive based govs are fixed : D
[Galaxy S 4 i9505 Android Development] xell75:
Nice one mate! Patiently waiting for the Kernel Update! And thanks for the answer! Keep up the good work! :)
[Galaxy S 4 i9505 Android Development] Belgas14:
Not saying that its bad but this kernel is really instable, when you say that has a big % of brick our device it shouldnt even be allowed to post here. Test on your device or get a group of beta testers . If you're probably the only guy that really understand everything about kernels, you should contact slim and help him, both of you are good guys, help eachother. Good luck and thanks for your work.
[Galaxy S 4 i9505 Android Development] xell75:
Idk your configuration, but I'm on the MarkTwo Kernel now and I not experienced any random reboots yet.
[Galaxy S 4 i9505 Android Development] robcore:
Good, my warning message for noobs worked.

The disclaimer is a standard release of liability across xda. Cyanogenmod's disclaimer warns of thermonuclear war, but I made it more personal to scare people like you away.
[Galaxy S 4 i9505 Android Development] robcore:
Mark Two is smooth, no?
[Galaxy S 4 i9505 Android Development] xell75:
Yes and so far the battery life is awesome, I'm using Alucard_Hotplug, Hellsactive governor for cpu and simple governor for gpu. No Force Closes or Random Reboots anywhere. Underclocked to 1566Mhz and still Smooth as butter. And I really like that alot of options I have. I must say the Kernel seems to work better than the Imperium Kernel for me. And no overheating at all on the Thor S7 Rom! :D
[Galaxy S 4 i9505 Android Development] sk1887:
I'm testing it over wiz cyan rom

It first boots and hangs, and it seems like a bootloop.

Then suddenly it reboots, samsung s4 logo is shown and starts going into android upgrading.

One nice thing is the green,blue alternating led.
[Galaxy S 4 i9505 Android Development] robcore:
This installs Synapse into your system applications, hence the "android is upgrading" screen. I suggest clearing cache after install to make it smoother.

Leds: I play with the powering on colours for the led bootup all the time, and added an extra preboot pattern before the main sequence from Ktoonsez. : D

Edit: the first boot issue is due the android os needing to do a complete reconfiguration for things like power, screen hardware, etc. Autosleep, for instance, has been supported by the touchwiz hardware libs since jellybean (I checked), but they chose not to upgrade the kernel drivers from earlysuspend for this model. So yeah, don't be too concerned by the initial install, android is just adapting to something new (but compatible).
[Galaxy S 4 i9505 Android Development] robcore:
Hehe that's my gov/hotplug combo too. The battery life has really become a pleasant feature!
[Galaxy S 4 i9505 Android Development] :
Just to be sure - download zip is named MarkTwo but all details show MarkOne. Flashed and running well, just want to ensure I have latest stable release

Thanks,
[Galaxy S 4 i9505 Android Development] robcore:
Oh yeah in the recovery script right? Yes it's Mark Two, thanks for reminding me I will update that to avoid confusion.

[Edit] and in the kernel config, I'll recompile and have it up in 20.
[Galaxy S 4 i9505 Android Development] FlorianSSJ:
This kernel seems interesting! Does it have undervolt and REAL f2fs compatibility? Oh and ladt question, is it compatible with any bootloader/modem like Imperium?
[Galaxy S 4 i9505 Android Development] robcore:
Updated with the cosmetic changes! Out of curiousity, which Rom are you running?
[Galaxy S 4 i9505 Android Development] robcore:
[Edit]:sorry misread the question! Nope LP bootloaders/modems only.

NO f2fs support. If I built it in, I would have to personally test it, and I do not have the time nor the desire to that. With the Android ART runtime, performance with f2fs is negligiable anyway. (like 2-4% speed gain maybe, but this kernel has become VERY fast and fluid).

Undervolt/overcome YES, but largely untested and not recommended for use due to different PVS binnings. I might add controls in Synapse for it but don't hold your breath.
[Galaxy S 4 i9505 Android Development] :
Right now am running Lollirom V8 on my 1337M. There are a few apps that I use that will not run on V9 - so reverted back for now. V8 is rock solid for me.

Thanks,
[Galaxy S 4 i9505 Android Development] FlorianSSJ:
Wait, you don't get the point! I readed everything on the OP, believe me, EVERYTHING, and i like a lot the fact that you explain the things that you buildet in, and not just like all the other devs that just do list without any other word. The question is, that i have PG1 bootloader and modem, but my rom is based on PF4, does this kernel allow me to connect to my carrier/wifi? And thank you a lot for super fast and professional response, i appreciate it a lot. Keep it up!
[Galaxy S 4 i9505 Android Development] robcore:
Also:
[Galaxy S 4 i9505 Android Development] Corduroysack:
This has improved my device immensely Rob it's is running really well ☺
[Galaxy S 4 i9505 Android Development] Corduroysack:
Just had a major device freeze up. had to reboot to get it back. Using yankative, simple gpu everything else default
[Galaxy S 4 i9505 Android Development] devsnor:
Again, these were not mine, but thank you anyway. ; )

Btw, my radio/reception/modem/whatever dies after long periods of not using the phone. I just woke up and saw this again: http://puu.sh/rsMdn/4a92950bd5.jpg
[Galaxy S 4 i9505 Android Development] robcore:
New release is a further attempt to fix that!
[Galaxy S 4 i9505 Android Development] robcore:
Haha sorry bout that, I'm REALLY not a morning person ;)

Yeah that's an ongoing issue of our modem not responding well to the new suspend/resume function at times, the new release has some attempted workaround for it, give it a shot!
[Galaxy S 4 i9505 Android Development] Andycar:
Hey, thanks for passing the unlucky 13 number so fast! I told you I'm superstitious, and indeed I had a first rr on 13... [emoji4] unfortunately, now is too late to save the logs. Will try the Mark14 and report.

Отправлено с моего GT-I9505 через Tapatalk
[Galaxy S 4 i9505 Android Development] VITMAD:
Sorry by that but bluetooth some times disconnected.

Anybody have this problem?
[Galaxy S 4 i9505 Android Development] david19au:
Just got a random reboot on WizCyan ROM while browsing Facebook, could you please look at the logs? Intellidemand, GT-I9505, OCed but no UV
[Galaxy S 4 i9505 Android Development] chiruscan:
Damn rob you are a machine cranking out all these kernel updates :)
[Galaxy S 4 i9505 Android Development] david19au:
Had a load of reboots today, had to switch to Imperium kernel again, the reboots were so often that rendered my device to be half unusable. I hope that this issue will get fixed soon. Best of luck!
[Galaxy S 4 i9505 Android Development] robcore:
Same here, fix is out today
[Galaxy S 4 i9505 Android Development] robcore:
Hehe thanks man.

It's mostly out of guilt for bugs ; )
[Galaxy S 4 i9505 Android Development] robcore:
UNOFFICIAL RELEASE:

MarkFifteen-Prototype2

Major bug fixes
[Galaxy S 4 i9505 Android Development] Andycar:
Thanks, it seems that this update cured modem disconnects.

....

Edit: Oh no... the problem is still here. I PM you the logs.

Отправлено с моего GT-I9505 через Tapatalk
[Galaxy S 4 i9505 Android Development] robcore:
Please do. I really want to get to the bottom of this. My guess is that the modem driver is having difficulty distinguishing between airplane mode and suspend.
[Galaxy S 4 i9505 Android Development] robcore:
Actually, my main suspicion regarding suspend/resume related crashes is where the wakeup hooks for powersuspend and state notifier are.

Porting those to our device was tricky, because we don't have the mdss video drivers, but the older mdp4 video drivers. Our hooks are called from the samsung mipi display driver as a workaround. However, both the device's resume AND first boot code are part of the same function, so I think I need to extend the if is_first_boot == 0 check to determine whether or not to execute the resume hooks for the custom drivers, otherwise I think they are signalling a resume at boot which is throwing the suspend/resume counters off (calling resume at boot when really it's just a boot.)

If anyone here is good with coding logic, feel free to chime in.
[Galaxy S 4 i9505 Android Development] david19au:
Flased the prototype, still freezes and reboots. Although this time it's a little different, it crashes, reboots and the loops while booting (crash, reboots, crashes while bootanimation, reboots, etc.) Here are some logs
[Galaxy S 4 i9505 Android Development] robcore:
Try mark fifteen!
[Galaxy S 4 i9505 Android Development] robcore:
Also looks like your crashes are related to Bluetooth, a sub system I am guilty of having neglected because I don't use it. I will work on bringing it up to scratch. Mind if i ask for your use case for it so I can't gain further insight into what I'm looking for?
[Galaxy S 4 i9505 Android Development] david19au:
Sure thing, I have it turned on to use Smart Lock from Google with MiBand and MiFit. It uses BLE and it doesn't really connect to the band, unless I want to sync it or if I want to get notified on it. Which is kinda weird because when I flashed the prototype I made a factory reset and it only had Bluetooth turned on, the band wasn't paired. But yeah, this is my use case.

Tl;dr MiBand notifications, fitness data sync and use with Smart Lock

Edit - just noticed that you have a mistake in the changelog, "from 320MHz to 320MHz" ( GPU section, I'm on my phone so I can't quote the post :mad: )