yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Original Android Development] Socotroco:
I have WANAMLITE 3.3(JB 4.3) and had kernel 'Adam' that comes with the ROM. After noticing that the battery performance wasn't good enough I flashed Perseus 14 'Alpha' and found in the middle of the WiFi issue. Your hint helped me to solve it.

I only used Perseus kernel when I had the i9100 in 2011 and 2012 but since May I'm enjoying the i9500 ;)

Regards.
[Galaxy S 4 i9500 Original Android Development] cmd512:
Got it, so you're the second user reporting no Wifi issues on Adam kernel. Has to be kernel related then, we need to start grabbing logs for Andrei.
[Galaxy S 4 i9500 Original Android Development] skivnit:
OK i tried both perseus and Adam. I always prefered Perseus, however since updating to 4.3 and latest Perseus I had big sec-battery-monitor drain along with wlan wakelocks. With latest Adam everything is fine (no wakelocks at all) but battery is not lasting a day. The wake time and screen on time difference is very small so I don't get why it's draining this fast. Now i just wanna throw my phone away
[Galaxy S 4 i9500 Original Android Development] cmd512:
I'm having zero wakelock issues with Perseus on 4.3. Now, before changing the router from 40MHz to 20MHz channel width, I did have a ton of Wifi wakelocks + disconnect / reconnects. But, those are also all gone now, and I'm getting fantastic battery life. For reference, I did a direct upgrade from 4.2.2 with no wiping, only cleared the caches.

I'd still prefer to use 40MHz channel width, so with logs, we'll hopefully get that issue resolved with Andrei's help.
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
The drivers are identical minus I have a few added filters which have nothing to do with channel aggregation. I'm running 40MHz and haven't had issues on any Wifi since I merged the current ones over a month ago.
[Galaxy S 4 i9500 Original Android Development] cmd512:
Thanks Andrei, I'm really puzzled then. I can say for sure I was seeing horrible disconnect / reconnects before applying the two known fixes (turn of power save mode OR use 20MHz only). After applying either, the issue stops completely.

I also updated the Tomato F/W for my router this weekend, and 40MHz still wouldn't hold.

I'll grab a log for you when I get back home, something strange is going on...
[Galaxy S 4 i9500 Original Android Development] alawadhi3000:
I can report that my phone sleeps correctly now, I only had to disable WIFI power saving as per your tip.

I left the channel width at 40MHz.

WLAN Wakelock went down from like 8 hours per day to ~5 minutes per day.
[Galaxy S 4 i9500 Original Android Development] cmd512:
I know you mentioned you need 40MHz channel width, but for the sake of comparison, try 20MHz + Power Save Mode ON for a few days. I've confirmed what a few others have said: When properly working, Power Save Mode does save even more battery.
[Galaxy S 4 i9500 Original Android Development] skivnit:
My battery is just diving. As you can see phone is hardly awake yet I'm losing prc

Sent from my Perseus powered octa
[Galaxy S 4 i9500 Original Android Development] machhho:
me too , since I updated to 4.3 using both kernel ( Andrei and Wanam ) I'm having issues with wifi and I'm always getting these messeges :

Network disabled because internet connection is slow

Sign-in is required

Hopefully we see a fix for that
[Galaxy S 4 i9500 Original Android Development] mastrix:
Works on i9505?
[Galaxy S 4 i9500 Original Android Development] tabenf:
No only for 9500 cpu's differ
[Galaxy S 4 i9500 Original Android Development] susmitpatil:
Can i flash this kernel on my i9500 running mj9 firmware 4.3?

I'm not yet rooted.
[Galaxy S 4 i9500 Original Android Development] 95mediatech:
Yup you can flash on 4.3.
[Galaxy S 4 i9500 Original Android Development] tabenf:
If you dont have cwm recovery then u can flash trough odin just download the tar file
[Galaxy S 4 i9500 Original Android Development] svavartr:
4.2.2

Can i flash this kernel on i9500 with android 4.2.2 ?
[Galaxy S 4 i9500 Original Android Development] susmitpatil:
Does it work with any recovery? Like twrp..

Or do i have to use cwm only?
[Galaxy S 4 i9500 Original Android Development] tabenf:
yes but older version you wil find at download page

---------- Post added at 08:13 PM ---------- Previous post was at 08:12 PM ----------

Any recovery should do mate!
[Galaxy S 4 i9500 Original Android Development] susmitpatil:
Didn't get you bro. Older version of what?
[Galaxy S 4 i9500 Original Android Development] svavartr:
Thank you :)

But do you know wich version should do the trick :) ?
[Galaxy S 4 i9500 Original Android Development] tabenf:
Check if Auto network switch is on or off under wifi advanced

---------- Post added at 08:18 PM ---------- Previous post was at 08:16 PM ----------

12.2 Regards
[Galaxy S 4 i9500 Original Android Development] Socotroco:
Undervolting?

Noob question : how much would it be safe to Undervolt the cpu's using Synapse?

I'm scared to undervolt too much and the phone won't boot....

Any advise would be appreciated, thanks.
[Galaxy S 4 i9500 Original Android Development] alawadhi3000:
My phone sleeps well with the WIFI power saver off (still get WIFI wakelock for like 30min a day) which is fine, but something else is draining the battery, and its not shown in the settings, Better Battery Stats or Wakelock detector which is strange.

I went from %100 to %35 with only 1hr of screen time and ~9hrs deep sleep with WIFI always on, I used to do 2hr-3hr under the same circumstances on 4.2.2 roms.

Will do in the next few days.

Every CPU is different, but safe to start with these:-

A7 Cores:-

200MHz-1000MHz -75mV.

1100MHz-1200MHz -50mV

A15 Cores:-

800MHz-1200MHz -50mV.

1200MHz-1600MHz -25mV.

And work from there.
[Galaxy S 4 i9500 Original Android Development] tabenf:
Older versions of kernel
[Galaxy S 4 i9500 Original Android Development] skivnit:
I'm getting same thing. I get a 3%/hour drop while the phone is deep sleeping 98%of the time. A week ago my phone would last 2 days now with same usage it can hardly last 14 hours
[Galaxy S 4 i9500 Original Android Development] Degrated Shadow:
Something is very wrong with exynos chip.. because I dont get any major wakelocks.. I unistalled FB. I unistalled all social apps that was on sync. I disabled sync.. and phone shows deep sleep too.. but.. I sleep with the phone having having 70% charge at 10 pm.. wake up at 7 and phone has only 40% left.. I'm so done with this ****.. if I use the phone constantky it always gives me about 4 and halg hour screen on time. On 4.2.2 it was like 5 and half hours..

Also when I sleep I enable airplane mode

So I flashed back 4.2.2 omega rom

gave me some audioout wakelock..

But lost only 6 % battery after 10hrs of sleep and betterbattery stats showing huge amount of deep sleep.

It must be something with 4.3

On constant use it performs better. Overheats less. But is a battery drainer
[Galaxy S 4 i9500 Original Android Development] skivnit:
I discovered that my phone gets stuck at 200mhz during deep sleep .now I gotta find out what's causing it

Sent from my GT-I9500
[Galaxy S 4 i9500 Original Android Development] bnnajem:
Did it Work with miui v5 ??????

My English is bad

Sorry
[Galaxy S 4 i9500 Original Android Development] tabenf:
no friend
[Galaxy S 4 i9500 Original Android Development] Anakha56:
To those that are seeing huge battery drain try switching off "Use wireless networks" in Location settings. My massive amount of wakelocks are from the npc collector service which just so happens to be related to that setting and Google Now.

/sorry Andrei for the OT just curious to see if this helps anyone else.
[Galaxy S 4 i9500 Original Android Development] plotinus:
What's the latest purseus for 4.2.2 roms?

Galaxy s4

---------- Post added at 03:58 PM ---------- Previous post was at 03:39 PM ----------

Nevermind. Found the answer

Galaxy s4
[Galaxy S 4 i9500 Original Android Development] mw86:
Hi Andrei, got some basic tinkering I had done and found couple things. You got the gpu issue on 4.3 here solved. You got max frequency blank set to 2000mhz now to cover all the overclock ranges and it still works when that value is raised higher than actual scaling max.

I was very annoyed at the 4.3 samsung boost built now into the framework. I never had sucess with this in 4.2.2 but you had disabled boost successfully so that issue of Samsung crap dissappeared. Well before you had fixed gpu overclock mhz reseting you suggested lock max gpu mhz file via permissions. That worked so even though on 4.2.2 this never worked for me the following worked fine on 4.3.

chmod 444 /sys/class/thermal/thermal_zone0/boost_mode

Ran in an initd after synapse and system boots. The boost file can't be triggered so I was very happy to test. Even benchmarks don't trigger it like that. So this allowed where I set my own lower temperature throttle of Exynos and now even the benchmark listen to what I set there instead of Samsung boost to 100/105/110 throttle limit 0/1/2

Just wanted to note for the mass of users :)

Next thing is I had an issue whenever I overclock sometime I boot up and even though Synapse shows my overclock 1800mhz in my example... the max it would hit was 1600 and not due to thermal limit. So I discovered something at boot is setting 1600mhz on the IKS max frequency file. I don't know if anyone can reproduce this. I'd have to tinker on benches and try to get it to throttle before eventually it would scale to my oc step. Then I discovered that the iks was being set to 1600mhz. Since I believe Synapse checks cpu scalung max and not iks max frequency I think is why it never showed the overclock as not being set.

So super easy fix ive tested is do the same Andrei you did to max frequency blank. I set in my initd script launches after synapse and normal boot processes to set 2000mhz on iks max frequency and lucky enough it doesn't scale to 2000 just like the way max frequency blank works instead scales right to 1800mhz as it should as thats what I had my overclock set to.

echo 2000000 > /sys/devices/system/cpu/cpufreq/iks-cpufreq/max_freq

The second part can you build a check into the kernel or synapse for this IKS max frequency file? The first part it's up to you but maybe you can build an option to disable the permission to the samsung boost file like I do I my script into Synapse. Maybe some want it enabled but it could be an extra option as it worked just setting read only permission.

I hope I was accurate in my report to you. Thanks for hearing me out :)
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
I need somebody with one of those insane write/read speed SD cards (Preferebly faster than 20/70?) to try out this build. A comparison with a dedicated UHS USB 3.0 reader if you have one would be nice. Please use this benchmark on the phone. You can use CrystalDiskMark on the PC.

A before/after this kernel would is what I need, and the PC test is for validation.

I'm talking about something silly as a SanDisk Extreme Pro or Extreme Plus or equivalent.
[Galaxy S 4 i9500 Original Android Development] aminhasi22:
Hi Andrei,

I did the test with my sandisk 64 gb card.

Persues alpha 14.1:

Read - 30.39 mb/sec

Write - 6.74 mb/sec

Persues alpha 15:

Read - 8.51 mb/sec

Write - 5.65 mb/sec

I used the benchmark application on the phone.

Regards,

Amin

Edit:

Did the benchmark a second time:

Read - 17.31 mb/s

Write - 6.34 mb/s
[Galaxy S 4 i9500 Original Android Development] kenn7:
can't see any link for perseus 15, can u post a link?

thx
[Galaxy S 4 i9500 Original Android Development] gun@id:
sdcard test

Perseus 14.1

read 35.62 write 21.58

perseus 15

read 69.87 write 24.15

use AI bench

*edit sdcard sandisk extreme 64gb
[Galaxy S 4 i9500 Original Android Development] farid993:
Are you sure you have UHS SD card?? Or simply did not read Andrei post carefully?

I have this with class 10:

Write 11.3 MB/s

Read 44.2 MB/s

then you have those low score with UHS??
[Galaxy S 4 i9500 Original Android Development] lukair1983:
Hi Andrei.

I have SAMSUNG 64GB PRO microSD Class10 which has stated max at 20/70, so it wouldn't fit your requirenments. But if you still would like me to test it, let me know.

cheers

Lucas
[Galaxy S 4 i9500 Original Android Development] Caspersky83:
I've got an error while installing this benchmark and i can't write to SD or delete anything using "USB mass storage enabler". Readspeed is about 28mb/s. Write available only MTP mode.

In MTP mode writespeed is fantastic, copying 1GB->sdcard takes about 35sec

I hope you can fix this bugs with MassStorage mode.

SDcard: SiliconPower UHS 64gb

Another bug: I copied 2x1GB files, then I tried to delete them on PC & got error while removing second. Then I tried to delete it with TotalCommander but nothing happens, then I tried to delete it in ES explorer & got reboot. After that I've got reboots every time I tried to get access to SDcard. Flashing 14.1 solved this problem.
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
Thanks, looks good.

I have the same card, but you can always try. And that's an UHS card not Class10.
[Galaxy S 4 i9500 Original Android Development] lukair1983:
I see. Well the intention is what counts, I guess.

---------- Post added at 04:49 PM ---------- Previous post was at 04:25 PM ----------

Andrei, I humbly would like to aks for a tiny feature (if it's doable).

I was searching all over the web, and I cannot find a way to change the behaviour of a volume rocker in a way, that it will control media volume only, at all times. Usually what I do (and I cannot imagine that most people do it otherwise), is I set the volume for notifications/ringers etc, and I just leave it be, I never reset it. The only time I "adjust it" in any way if I go silent/vibrate, but I never change the volume of it in any other way. While with media volume, I change it all the time, either if I listen to something through speaker (music, call), or if I listen to music through headphones. So really, changing other volumes (like for ringer/notifications) is incredibly irritating, even more if I do it by accident, and I notice after few days my ringer is 50% quiter than before.

Is it possible on your kernel level, to change the behaviour of that rocker button to ALWAYS control the media volume, irrespectively if the music is playing or not? E.g. if there is no sound at all, if I push the rocker, currently it adjusts ringer volume, but I would like for it to adjust media volume, just the same as in any other situation.

You would make my day if you said it is doable, and you would be able to implement it in one of the future Perseus itterations.

(A simple checkbox setting for this, in the audio panel of the Synapse would make a world for me).
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
That's a framework business and has nothing to do with the kernel, go ask an Xposed dev to do something like that.

Edit: I'd still like more people to test their SD speeds with that test kernel.
[Galaxy S 4 i9500 Original Android Development] lukair1983:
I see... That's a shame. (I already posted in xposed, so I'm investigating if it could be done)

ps. If anybody poking around this thread, knows if it's doable already to achieve it, please pm me. I desperatly looking for something of that sort.
[Galaxy S 4 i9500 Original Android Development] deadirony:
I can't see Alpha 15 link? Can anyone share?
[Galaxy S 4 i9500 Original Android Development] HannibaL_kk:
Sd bench

Sd card: Samsung pro 64Gb (r70/w20)

Perseus 14.1 : read 31.66 mb/s write 14.52 mb/s

Perseus 15 pre1 : read 60.40 mb/s write 16.32 mb/s

tested with A1 Sd Bench with accurate method

---------- Post added at 06:33 PM ---------- Previous post was at 06:32 PM ----------

here https://www.dropbox.com/sh/l9iwbpelw3fz1d6/_UDHSz1lZa/Perseus-alpha15-i9500pre1.tar
[Galaxy S 4 i9500 Original Android Development] ktouy:
There is any v15 CWM flahable to test it?

|KTO¹³|

Sent from my i9500
[Galaxy S 4 i9500 Original Android Development] mw86:
Perseus 14 same card as You guys ie samsung uhs 70 read 20 write.

Mine is packed full for a very bogged down comparison if you will. 52gb partition 4.5gb about free.

Alpha 14 40.93mb read 7.65mb write

Alpha 15 test

41.55mb read 9.54mb write

Both on accurate and both non cached read. I did not include results showing cached read.
[Galaxy S 4 i9500 Original Android Development] cmd512:
Yep, still out of town here, need a CWM version of 15 to test. (Thanks mw86)

Card: SAMSUNG Pro 64GB MicroSDXC

14.1 scores on accurate: 16.41MB/s - 31.66MB/s

15 scores on accurate: 17.01MB/s - 46.75MB/s
[Galaxy S 4 i9500 Original Android Development] mw86:
At Andrei's request ill remove link otherwise ill remove link in a day or so. This was made from the 14.1 zip and the test kernel replaced the 14.1 in the zip using Zarchiver so it's zipped the proper way. Tested myself so it's working.

https://www.dropbox.com/s/mo6l1q2qk5b4u71/Perseus-alpha15-i9500pre1-CWM.zip
[Galaxy S 4 i9500 Original Android Development] cmd512:
Thanks bud, results updated in previous post.
[Galaxy S 4 i9500 Original Android Development] mw86:
No problem CMD512

My last test was not on accurate sorry it default long. So here are my results did each kernel 4 times. Last post was on noop for both internal external. this is noop internal row external the sd that was tested.

200mhz a7-1800mhz a15

Noop internal scheduler

Row external scheduler

256 read ahead internal

1024 external

Exfat original sd format

52gb partition on a 64gb samsung 70read 20 write micro sdxc uhs

Tested on accurate with reboot on all of these this time.

Alpha 14.1

Read 34.95mb write 20.33

Read 34.95 write 19.32

Read 34.93 write 19.01

read 34.74 write 16.72

Alpha 15 pre test1

Read 62.98 write 12.37

Read 59.00 write 17.33

Read 58.59 write 19.98

read 58.16 write 18.87

Nice work Andrei, there is a clear difference in these results and it was repeated several times. My micro sd to sd for my laptop card reader stopped working or id bench the card as is on crystal disk as well.

I uploaded a copy of my initd ive edited and left the two lines I mentioned in two posts of mine back. This stops samsung boost from being able to engage and sets IKS max frequency to 2000mhz over 1600mhz it's set to. I never had this issue till 4.3. I am on xxeumj8 build of 4.3. This solves it for me but I'm thinking on a kernel or app level it can be set just the same. When I boot without this in my overclock is set as synapse shows and max it hits is 1600mhz. Right as soon as the script loads and sets iks max to max frequency of the chipset, it doesn't matter how high or if on stock mhz it hits what is set in Synapse.

#!/system/bin/sh

sleep 20

mount -o rw,remount /system

sleep 30

chmod 444 /sys/class/thermal/thermal_zone0/boost_mode

echo 2000000 > /sys/devices/system/cpu/cpufreq/iks-cpufreq/max_freq

mount -o ro,remount /system

https://www.dropbox.com/s/vf26o8gyn8ldyu9/NoboostOCfix
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
Is there anybody with a card over 70mB/s?
[Galaxy S 4 i9500 Original Android Development] ktouy:
That kernel it said that my sd is blank or on an incompatible format...i dont remember the format by default but im sure that mine its that fat...something (16/or32)

...the tiny italic text...
[Galaxy S 4 i9500 Original Android Development] gun@id:
second test

With accurate

Read 70.03 write 28.50
[Galaxy S 4 i9500 Original Android Development] mw86:
That's strange ive used it to go back and forth from 14.1 to 15 test a few times and it worked for cmd512. I dont suggest use it then but it worked fine for me few times now. I do apologize for the inconvenience

That zip is 15 test inserted into the 14.1 cwm install zip via Zarchiverm it preserves the original formatting. Does the 14.1 cwm zip work for you on github.
[Galaxy S 4 i9500 Original Android Development] ktouy:
No worries i will try tomorrow formating my sd to ext4. (I need to backup a lot)

Im back on 14.1 and no issues at all, sd fine..

Thnks!

...the tiny italic text...
[Galaxy S 4 i9500 Original Android Development] cmd512:
Andrei:

Now that I'm back home, I was able to duplicate the WiFi 40MHz channel width disconnect / reconnect phenomena, see kernel log and logcat attached below. For reference, I'm running Perseus 15pre1, the matching modem for WanamLite ROM V3.4 XEUMK8, and the latest TomatoUSB firmware for my Asus router.

(Same settings on router as with 4.2.2. stock ROM + Perseus 12.2, which had no issues.)

Let me know if you need any other info, thanks in advance.
[Galaxy S 4 i9500 Original Android Development] core720:
Please add support for miui

Enviado desde mi GT-I9500 mediante Tapatalk
[Galaxy S 4 i9500 Original Android Development] farid993:
Don't bother yourself. I tested ext4 and does not work with v15 and neither v14.1. It shows "sd is blank or on an incompatible format"
[Galaxy S 4 i9500 Original Android Development] ktouy:
Ok.. What a shame.. Anyway waiting for some news about it...

Thnks!

...the tiny italic text...
[Galaxy S 4 i9500 Original Android Development] farid993:
I think it is strange because i was thinking linux/android supports ext4 by default.
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
Of course the kernel supports ext4 else it wouldn't boot.
[Galaxy S 4 i9500 Original Android Development] farid993:
I know that system partitions is ext4 but when i make ext4 partition in my SD i get this error:
[Galaxy S 4 i9500 Original Android Development] HannibaL_kk:
My ext4 formated sd is working just fine with Perseus
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
I'm adding localization support for Synapse so if anybody is willing to help out in terms of translation, let me know.

For now I just want to support as many as possible in terms of the app client itself, which just includes only a few lines:

The configuration translations can be added on a later date since they're not dependant on the app, but if anybody is willing to help on that one too feel free to do so too. I can handle German and French myself. Would be good to get Spanish and Russian on board since there's a few people of that region using the kernel.
[Galaxy S 4 i9500 Original Android Development] cmd512:
Just checking if you had a chance to look at the WiFi issues logs Andrei? I can grab more if needs be, it starts disconnecting / reconnecting quite frequently after some time.

(I can also open it as an issue on your github if it's easier to track that way.)

Thanks.
[Galaxy S 4 i9500 Original Android Development] AndreiLux:
I can confirm by the logs that you are indeed getting disconnected!

Anyway, try this. Else I don't know.
[Galaxy S 4 i9500 Original Android Development] susmitpatil:
Does flashing a kernel depend on the current firmware i am using? Or is it just dependent on the os version?
[Galaxy S 4 i9500 Original Android Development] cmd512:
Thanks, flashed and testing now...

UPDATE: After 30 minutes of constant use @ 40MHz, not a single disconnect. Would have definitely disconnected at least a few times by now.

Whatever crazy juju you did Andrei, may have fixed it!
[Galaxy S 4 i9500 Original Android Development] alawadhi3000:
Whats your router cmd512?? ASUS RT-N16??
[Galaxy S 4 i9500 Original Android Development] cmd512:
Yep, running the latest TomatoUSB firmware from Toastman. WiFi is going strong now at 40MHz + Power Save Mode with that version Andrei posted above, looks like it's resolved.
[Galaxy S 4 i9500 Original Android Development] alawadhi3000:
I have exactly the same setup, same router same firmware same everything. RT-N16 running Toastman version of TomatoUSB.

I'm wondering if there were other users that have the same issue running difference routers with Tomato firmware.

[MENTION=4167023]AndreiLux[/MENTION]

What did you change to correct this in alpha15WIFI??
[Galaxy S 4 i9500 Original Android Development] cmd512:
I spoke too soon, after a few hours of solid use, just had 5+ disconnects / reconnects in succession. Grabbed more logs, will upload them in the morning.
[Galaxy S 4 i9500 Original Android Development] tabenf:
What firmware do you have? Any stock or cm firmware would do as long as its 4.3