yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] robcore:
Lol all of my development testing has been on my i337m.

Seriously though, I've mentioned it before and this is one thing that annoys me. If there are bugs, and you'd like to be helpful, share logs. If not, please don't bother posting. I don't care if you're having issues, or what kernel you're using instead.

I need context and logs, not useless posts.
[Galaxy S 4 i9505 Android Development] ivanws:
Where's the logs?

Sorry for my bad English
[Galaxy S 4 i9505 Android Development] robcore:
You can either get them from Synapse or by using an app like SysLog.
[Galaxy S 4 i9505 Android Development] mart123:
Mark52 the noises continue.
[Galaxy S 4 i9505 Android Development] xell75:
Can it be that is Rom related too somehow? I have them not anymore on THOR S7 v1.5
[Galaxy S 4 i9505 Android Development] devsnor:
So far 52 is awesome, no issues whatsoever and it looks like I'm getting way over 5h sot with my configuration(tweaked hellsactive, bricked, tweaked simple, noop, -.25 UV on both cpu/gpu, max gpu freq 320 as I don't play games on my phone, will try going lower and see if ui performance is affected ). : )
[Galaxy S 4 i9505 Android Development] robcore:
Nope. I've tested for them on pure stock and they aren't there. I'm guessing whatever sound mod you have is conflicting with the sound engine.
[Galaxy S 4 i9505 Android Development] mikussj3:
can you share your kernel settings?

or

share backup kernel in synaspse?
[Galaxy S 4 i9505 Android Development] Hez13:
No sound issues for me.
[Galaxy S 4 i9505 Android Development] JerwinSayat:
Sorry for the noob question but where are the logs (like last kmsg) can be found after I hit the last kmsg in Synapse? Cant find it, I was to upload that as to report my sudden reboot while charging and got a notification(sms) while idle.

Edit: it appears that every logs I click in Synapse doesnt generate. Cant see a log file in machinex folder.
[Galaxy S 4 i9505 Android Development] robcore:
Should be sdcard/machinex/Logs

If not, SysLog is a great app, it even zips it up for you.
[Galaxy S 4 i9505 Android Development] robcore:
Check out what's coming up guys, thanks to our very own [MENTION=1111850]Andycar[/MENTION] :
[Galaxy S 4 i9505 Android Development] xell75:
That really looks nice! [emoji2]
[Galaxy S 4 i9505 Android Development] JerwinSayat:
Ok ill try SysLog. In my case there is no Logs folder in my /sdcard/machinex
[Galaxy S 4 i9505 Android Development] robcore:
You may want to have a look at the supersu fixes im post 2. Also, i should have prefaced that this kernel assumes that your sdcard can be altered by apps. There is a manual method posted somewhere in the forum explaining how to do it. Or, if you have xposed, wanam xposed for 5.0+ has the option available as well.
[Galaxy S 4 i9505 Android Development] JerwinSayat:
Never thought that it is a supersu problem?

I dont get what you mean with the sdcard altered by apps?
[Galaxy S 4 i9505 Android Development] devsnor:
What I said here, in governor settings set hifreq to something like 75% of your max clock (I used 1566), two phase freq to something lower than that but still responsive (I used the freq step below 1350). With simple gov there are only 2 sliders so go 2 or 3 steps towards battery on them(so one x steps left one x steps right). That's all I did.

Also using powernap which works beautifully, it is not the same piece of unfinished crap that it was 2 years ago anymore.

Also no matter what you do - unless you like... benchmark 24/7 your screen will be the biggest battery drainer so taming that should be your first priority. I'm on automatic brightness set to 0 or -5, depends on which rom you're using, when there is sun outside, and on minimum brightness with auto turned off at no sun. Love tasker. I also used it to turn on location when I need it only - on certain apps launch, like camera or maps, or to turn auto sync on only every 30 minutes for 1 minute when the screen is off. Stuff like that. Yesterday these settings gave me 5h20m of sot. And it's not like I was fully charged even, I was at something over 90 percent. The battery isn't brand new either, it's a genuine anker 2600mah for our device, I bought it in January. ; )
[Galaxy S 4 i9505 Android Development] H3M3L:
Is there any chance to get double tap to wake feature ?:confused:
[Galaxy S 4 i9505 Android Development] robcore:
Supersu settings are VERY relevant to synapse, as it's entire premise of operation is essentially one big root shell.

The sdcard thing, since kitkat (I think?) Android made it harder for apps to read/write to sdcard, so the options I proposed are to get it back :)
[Galaxy S 4 i9505 Android Development] robcore:
Gonna give you a very noncommittal maybe on that one.
[Galaxy S 4 i9505 Android Development] corey taylorr:
thank

que diferencia tiene mark53 y mark53tmo
[Galaxy S 4 i9505 Android Development] Dario9781:
hi did this kernel support POSIX or System V shared memory ?
[Galaxy S 4 i9505 Android Development] robcore:
Sysvipc yes indeed. Posix acl, just the framework, nothing fs specific has been implemented.
[Galaxy S 4 i9505 Android Development] Dario9781:
thanks for reply, do you think i can run postgresql claster creator thats need a shared memory system?
[Galaxy S 4 i9505 Android Development] impurrfectti0n:
Your kernel works awesome on my m919 variant, thank you for sharing it!!, i've found only one bug, the game shooty skies crashes after the loading screen, other games work perfectly, i'm using lollirom v9 with xposed and amplify, no extra mods, it crashes with and without tweaks on synapse, syslog attached.
[Galaxy S 4 i9505 Android Development] luiwii:
I have tried several versions of your kernel and removed the lines with fps in buildprop and I have also put the recommended buildprop settings as it puts in the first post, and I always notice certain lag especially when lowering the curtain, I am in thor 1.5 some recommendation, I have not touched kernel parameters, I should do something else in buildprop I'm not 53 right now
[Galaxy S 4 i9505 Android Development] devsnor:
Dying radio is back for me on #53. It was fine on #50 for couple of days. Logs attached, ty!
[Galaxy S 4 i9505 Android Development] robcore:
I've taken a look and I think you might actually want to share that logcat with the game developer, as I've actually tested unity engine games with no issues on recent builds. Only thing I can think of in the meantime is more aggressive lmk settings perhaps? Maaybe temporarily disabling samp_hotness to see if that helps? Sorry I wish i could be more helpful, but the kernel logs are clear, luckily the developer of the game has some good verbose logcat entries.
[Galaxy S 4 i9505 Android Development] robcore:
Any chance you've been using Bluetooth? I'm hoping yes, because I found some AWFUL code in our BT driver that has been a major driving force of the modem reatarts
[Galaxy S 4 i9505 Android Development] impurrfectti0n:
Unfortunately it didn't work with the aggressive tweaks but i'll send the logs to them and see if they can fix it, still, thanks for the help!
[Galaxy S 4 i9505 Android Development] devsnor:
Nah I've never used bluetooth on this device so far.
[Galaxy S 4 i9505 Android Development] robcore:
Damn...oh well I will get to the bottom of it nonetheless, I assure you. Though I've not experienced the level of modem issues that some have, it is not enough for me to know that those only with more recent hardware benefit from this kernel. It was the same reason for my abandonment of overclock.
[Galaxy S 4 i9505 Android Development] mart123:
Logs mark53. The noises for me continue the radio is better but it drops sometimes and have some fc's.
[Galaxy S 4 i9505 Android Development] mart123:
Dmesg
[Galaxy S 4 i9505 Android Development] robcore:
I'm reverting the PI1 updates tonight, seriously just an awful "upgrade."
[Galaxy S 4 i9505 Android Development] robcore:
Here is a "next" version of my kernel. It includes a couple of updates to the BAM driver (and thus, modem, usb, etc) that I think are worth sharing. I changed the workqueues to "schedule_work," similiar to the binder and powersuspend/state_notifier drivers, and it's an experiment that is going well so far. I also added back the power efficient workqueue toggle in Synapse under Memory, and it strikes a VERY impressive balance with my machinactive governor, surprisingly. Enjoy! (You have to enable the workqueues yourselves, I've left them disabled by default).

**EDIT** Removed because the release in the OP is now way better.
[Galaxy S 4 i9505 Android Development] seong1:
Hello Robcore, have some suggest here, I hope you can adopt:)

1. Read ahead 2048 is too small for my 128GB sd card i hope can increase to 8192 for synapse settings

2. Possible to fixed TW recents button delay with kernel? Because is too slow compare to other rom (Compare to AOSP or CM)

3. I9505 have difficulties to lock glonass, is this posible to fix it?

And thank you for your great kernel is really smooth and update fast as lightning:victory:
[Galaxy S 4 i9505 Android Development] robcore:
Thanks for the compliments! Read ahead I can do!

Tw recents, no can do. It's a rom-dependant, systemui edit that needs to be made unfortunately.

Glonass, I don't know what that is! Lol what is it?
[Galaxy S 4 i9505 Android Development] robcore:
[MENTION=7267806]seong1[/MENTION]

Fixed :)
[Galaxy S 4 i9505 Android Development] seong1:
That good news for large memory user, thanks:p

Glonass is Russian "GPS" you can view my screenshoot, you can see only 1 glonass was use. Some user mentioned replace libloc_api_v02.so can fix this problem but after test is not working (maybe not working woth lollipop), hence i hope robcore can use your knowledge to help s4 users to fix this problem.

http://xdaforums.com/galaxy-s4-active/help/lock-glonass-kitkat-t2870507
[Galaxy S 4 i9505 Android Development] robcore:
Well, I will preface this by mentioning that the issue is in no way kernel related, however:

I think you should restore your shared object lib (*.so) to whatever came with your rom for now, because the thread you referenced suggests that it was an issue with older KK firmware that was fixed with newer KK firmware, thus one would assume that LP firmware would have it working fine by now, no?

I will check with a friend of mine from Russia, and will let you know if he has had any issues, and if so, has any solutions. For now though, know that using a location lib from a KK rom will break things 100 percent of the time.

It looks like that fix was only for the i9295 or whatever variant was mentioned there, because they didn't get the upgrades we did.
[Galaxy S 4 i9505 Android Development] seong1:
Many rom i use but is same result (Imperium/JDC AOSP AND CM/CM and TW ) and i can confirm using another device (Korea E330S/LG F400 F460) is no issue with lock glonass, i mean most glonass is able to lock.:rolleyes:
[Galaxy S 4 i9505 Android Development] robcore:
Well here I am on lollirom v9, and I'm having no issues locking to glonass satellites here in Canada. I did the following:

-removed "supl" from my apn (carrier provided positioning support.

-tried both "faster gps" and "agps auto injector" from the play store, I'm not sure which one did it but it worked

-used a better his satellite info app, GPS Satellite viewer, as seen below.

So yeah...you can try any of the above...

Now back to upstreaming my kernel!
[Galaxy S 4 i9505 Android Development] robcore:
[MENTION=7267806]seong1[/MENTION] oh yeah I also enabled high precision mode, wifi, and mobile data for my test. I think agps auto injector was the winner, here is the gps.conf it gave me. Warning, its designed for Canada, so you may want to use the app's continent and region settings to determine your closest NTP_SERVER.

DEFAULT_AGPS_ENABLE=TRUE

#MSB=0X2

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin

NMEA_PROVIDER=1

CAPABILITIES=0x37

A_GLONASS_POS_PROTOCOL_SELECT=0

INTERMEDIATE_POS=0

USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin

XTRA_VERSION_CHECK=0

#XTRA2=2

#MSA=0X1

DEBUG_LEVEL=4

SUPL_ES=0

#AGPS_CERT_WRITABLE_MASK=0

#DISABLE=0

SUPL_VER=0x10000

#AUTO=1

#GPS_LOCK=0

ERR_ESTIMATE=0

#XTRA3=3

SGLTE_TARGET=0

LPP_PROFILE=0

NTP_SERVER=ca.pool.ntp.org
[Galaxy S 4 i9505 Android Development] seong1:
still same here, can you share your libloc_api_v02.so here? i test again:(

*under system/lib
[Galaxy S 4 i9505 Android Development] robcore:
Sure but keep in mind this is from the PA1 firmware albe's rom is based on. So you may or may not have much luck. Which rom are you on?
[Galaxy S 4 i9505 Android Development] robcore:
Won't let me attach, ill put it on afs in a bit.

Edit: here you go, it is even flashable.

https://www.androidfilehost.com/?fid=457095661767122499
[Galaxy S 4 i9505 Android Development] seong1:
I'm using slim80 Imperium v16 now, is no luck duke, same. Later i try rom you mentioned.

And thanks for your help :D
[Galaxy S 4 i9505 Android Development] devsnor:
Modem dying issue still present. It was fine on 50 for days.
[Galaxy S 4 i9505 Android Development] robcore:
What are your exact synapse settings?
[Galaxy S 4 i9505 Android Development] devsnor:
I don't think I change too much, anymore, right now I'm on machinactive/alucard/simple/deadline. I tweak these for a bit more battery. I don't touch anything else. On mark50 I also played with uv as the radio seemed to be absolutely fine for 3 or 4 days. It doesn't just drop all the time either, it starts doing that after long periods of not using the phone, or when charging before I go to bed. Yesterday it was fine for entire day, I came back home, charged, went to bed, woke up and couldn't do a simplest thing on 4g. I will be back here in couple of hours with logs when it happens again, ty.
[Galaxy S 4 i9505 Android Development] seong1:
Hi Robcore if you find way to fix audio problem maybe can see JDC CM12.1 i remember their fix audio issue before this, hope can help you with this info.
[Galaxy S 4 i9505 Android Development] robcore:
Thank you but it's fixed for now :) ever since the beginning i have broken it over and over again throughout the updating process. It's usually working properly every second version or so ;)
[Galaxy S 4 i9505 Android Development] seong1:
hello duke, Mark58 kernel camera opened more than once in a short time will fc/cannot connect to camera, please let me know if you need more info from me.
[Galaxy S 4 i9505 Android Development] robcore:
Please try the new version, and read the LOGS section in post 2.
[Galaxy S 4 i9505 Android Development] seong1:
Mark59 no camera problem anymore:cowboy:
[Galaxy S 4 i9505 Android Development] mart123:
Hi! Mark59t2 is far better... but the radio is still droping. The noises seems fixed.
[Galaxy S 4 i9505 Android Development] mart123:
When i restart the phone because of radio the noises come back
[Galaxy S 4 i9505 Android Development] devsnor:
I am all out of ideas, radio keeps dying, the workaround in synapse doesn't work either. I'm now on your stock settings and will report back when that happens again. Could it be that switching data on and off too often causes that? I'm using smart network to switch data off on screen lock. But that would be strange. I think I will also try flashing Mark50 for couple of days to confirm the issue was indeed gone on that one.
[Galaxy S 4 i9505 Android Development] robcore:
Try this one guys, and fyi/PSA

Edit: new supersu is tested and safe to use.
[Galaxy S 4 i9505 Android Development] robcore:
Does the radio shut off altogether or is it just data not connecting? Edit: I ask this because I experienced my first "data drop" today, and am excited (weird I know) that the issue has at least moved from the entire radio dying, to just data :D I'll work on it but nonetheless am psyched, progression!
[Galaxy S 4 i9505 Android Development] devsnor:
Entire radio related connectivity, so any G data and phone calls. On 59 it stayed dead once it died, the workaround made it restart but that happened every couple of seconds so I call that no connectivity. I'm now on 60, hasn't died yet, I didn't really have time this week to experiment with the settings, when it happens again I'll be back here with logs and kernel configuration. Ty!

I don't know why that happens but conditions are always the same - every time it happened it was after a period of not touching the phone. Also charging seems to make it happen sooner than just idling on the desk.
[Galaxy S 4 i9505 Android Development] robcore:
Ok gotcha, well I took both that and just data-drops as well into consideration when making adjustments for this version (there are only so many for our device, unfortunately :/ ), so we may see some far better results this time around!
[Galaxy S 4 i9505 Android Development] devsnor:
Dying again, can't upload kernel profile cause xda doesn't like tgz and I've got no idea how to archive it in a different format on my phone atm. The basics are hellsactive/intelliplug conservative/simple/deadline. Didn't touch anything too advanced on purpose. There was also no uv.
[Galaxy S 4 i9505 Android Development] mart123:
Hi!

Since mark60 no noises. But i am always losing signal and i think because of that my battery is draining fast.
[Galaxy S 4 i9505 Android Development] robcore:
I'm starting to notice a trend in some of the logs and props I'm seeing. Turns out there are some variants of the device, like the i9505z, or the blue/red/etc versions, that seem to be unlocked or used on verizin/sprint type networks. Your devices seem to have a different modem configuration than the standard EUR variant, and any compatibility issues with those versions are pretty much out of my hands. I will investigate more, but for now assume that I dont support the variants listed above because your hardware, while the same, has been configured differently than eur/can/tmo devices.

Sorry.
[Galaxy S 4 i9505 Android Development] mart123:
I dont know what you have done but i am testing mark62 since morning more or less 5 hours and i haven't signal losses. ??
[Galaxy S 4 i9505 Android Development] mart123:
No luck signal is dropping. But it olds much more time without problems.
[Galaxy S 4 i9505 Android Development] devsnor:
And Christmas is ruined... ; <

BTW what changed after Mark50? Cause that one gave me 3 days without drops, the next one I flashed was 52 or 53 and the drops were back. Also entire night on 62 and no drops so far.
[Galaxy S 4 i9505 Android Development] robcore:
Oh yeah this one has an updated sound driver too
[Galaxy S 4 i9505 Android Development] Ohhdayumm:
I just like to thank you, you brought my s4 back to life. It used to lag a crap ton and heat up quite a lot but with your kernel plus a debloated rom, it's running pretty smooth and cool.
[Galaxy S 4 i9505 Android Development] darkrevlis:
I can't download mark63
[Galaxy S 4 i9505 Android Development] robcore:
I just tested the link and it's okay, what's the issue?
[Galaxy S 4 i9505 Android Development] seong1:
can downloaded, no problem:confused:
[Galaxy S 4 i9505 Android Development] darkrevlis:
I can't download yet
[Galaxy S 4 i9505 Android Development] robcore:
Maybe try clearing your cache or using a different browser?
[Galaxy S 4 i9505 Android Development] seong1:
Hi duke, i found 2 problem

1. Some time callls cannot hear any sound from the caller and caller also cannot hear my sound (after restart is able to talk again)

2. MTP not able to use, im test with TWRP is working good

* i'm using same ROM same as you now, baseband and bootloader is same as the rom version.
[Galaxy S 4 i9505 Android Development] robcore:
Just saw this notice on their desktop page, guess they are having server issues, i'll attach it here for you :)

SYSTEM NOTICE: We apologize for any issues/errors. We are setting up a new web server cluster right now to help speed things up.
[Galaxy S 4 i9505 Android Development] nwlun:
hey rob,

Under hotplug panel there is a specific option for 3 which is intelliplug, lazyplug & MSM sleeper

If i were to choose other than above 3 lets say alucard hotplug, i dont need to touch anything from the 3 available option right?
[Galaxy S 4 i9505 Android Development] robcore:
That's correct! They are options that are only specific to the drivers mentioned, and do nothing if you aren't using them. :)
[Galaxy S 4 i9505 Android Development] seong1:
Hi Rob, have some update for you, my MTP not working is because windows driver faulty, after reinstall mtp driver is working again. sorry bro
[Galaxy S 4 i9505 Android Development] robcore:
Hehe that's okay, I was about to let you know that I tested it again and it works but you already figured it out :) Also voice calls are fixed, actually sound and everything is really stable and smooth. It's times like these where I think to myself, "now how can I go and break some stuff some more?" :P
[Galaxy S 4 i9505 Android Development] seong1:
yes, please go ahead, i'll be your tester until you stop your updates:D

here some kernel report for you bro

1. voice calls looks like no problem now, at least did not appear today, but found another problem, sometime the signal icon have signal but is no any mobile internet connection until i restart. (signal icon only no 4g h or h+)

2. Two or three times a day will random restart, before restart my phone will vibration 2 times (2 short vibration)

3. random freeze leaving only the wall paper, need wait few minutes my launcher and UI to start again (after start will show me the lock screen), i'm not sure is bug or my own habits problem (i running many apps and install over 200 apps) but hope rob can help me of this problem

4. can plan update KSM to UKSM? because KSM is eating many battery when off screen no profile can select for on screen or off screen, i found a developer have extra max cpu control and working very well not sacrifice many KSM performance and battery life, hope can have a look bro.

http://xdaforums.com/lg-g3/development/kernel-t3406608

5. is posible merge or pacth qualcomm izat location optimize function to kernel? because S4 lock location speed is not very good.
[Galaxy S 4 i9505 Android Development] nwlun:
which gov is the best for battery?

i try imperium alucard gov can hit 4hrs SOT & use the same for this kernel but cant pass 2hrs SOT
[Galaxy S 4 i9505 Android Development] seong1:
you need to try which one gov is right for you because different kernel have different result. maybe you can disable the cpu input boost this will pull up your cpu if you touch your screen.
[Galaxy S 4 i9505 Android Development] robcore:
I have to admit my bias towards performance as well. The tunables are where any battery saving or draining will be found. I recommend researching them :) a lot of information can be found in the link I mentioned in post #3 of the op. [MENTION=589051]gss[/MENTION]tudios has done an amazing job explaining the ins and outs of (Android-focussed) linux tunables. I am STILL learning from his writing :)
[Galaxy S 4 i9505 Android Development] nwlun:
hmmm maybe im just good in automatic car instead of manual car.

Anyway thx & Merry Christmas to u
[Galaxy S 4 i9505 Android Development] killer!os133:
[MENTION=4763308]robcore[/MENTION]

Is there any plan to make a kernel for CM ?, this kernel is amazing, the bad thing is that it is only for the stock rom, which is not very customizable like CM or other variants.
[Galaxy S 4 i9505 Android Development] robcore:
Hey man, I see that Side has started working on one and I may beg him to let me join and help. Beyond that, I really need to set up a dual boot situation fast because i would like to expand to CM. Thanks for the kind words :)
[Galaxy S 4 i9505 Android Development] robcore:
*Edit: REMOVED*

See next post.
[Galaxy S 4 i9505 Android Development] robcore:
Aaand this fixes the video camera broken by 67...
[Galaxy S 4 i9505 Android Development] seong1:
empty???????