yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy W I8150] jassim007:
Delete
[Samsung Galaxy W I8150] hurtsky:
you're at wrong thread i guess.
[Samsung Galaxy W I8150] LeroViten:
You are asking in a wrong thread, friend! ;)

LS you can find HERE and Madridii kernel HERE is only for CM10.1 or a based on it ROM.

Powered and TapaTalked via Smooth and Jelly Bean'ed Wonder
[Samsung Galaxy W I8150] jassim007:
My bad...sorry. Anyways thanks for the response.
[Samsung Galaxy W I8150] m@ximum:
Is it just me or Hurtsky v4.1 have problem with seeder? I can't get seeder to work.
[Samsung Galaxy W I8150] hurtsky:
it is not seeder problem, this kernel completely make random pointing to necessary target and block seeder function. don't worry, since this kernel already implemented with random tweak that act as seeder function but not fully fill the entropy aggressively like seeder and won't use your battery power... ;) hope help your understanding
[Samsung Galaxy W I8150] m@ximum:
Oh..okay. Thanks for your answer. :D
[Samsung Galaxy W I8150] xlollomanx:
Flashed new version now see how it works with uksm. Recently I had an stupid issue: my camera flash work only the first time that I switch on the phone and after it don't work until i reboot the device. Anybody has noticed that?
[Samsung Galaxy W I8150] hurtsky:
my camera using stock CM software look fine here.. taking picture much. try clear dalvik and cache again then reboot..
[Samsung Galaxy W I8150] xlollomanx:
I had done it for install your lastest kernel's version...boh maybe I' ll do a pristine one day and see if change anything
[Samsung Galaxy W I8150] hurtsky:
something conflicting maybe, only once can use camera? right? it didn't happen at there.. later i will publish normal kind of size RAM maybe you could test it out soon
[Samsung Galaxy W I8150] xlollomanx:
Now i tried to use flash with app likes https://play.google.com/store/apps/details?id=com.devuni.flashlight&hl=en but the effect is the same: the flash works only first time when i switch on the phone
[Samsung Galaxy W I8150] hurtsky:
owh u mean torch light ? nope, it doesn't have problem also here. i think u need prestine your rom.. maybe too much flashing mods ;)
[Samsung Galaxy W I8150] xlollomanx:
I'll pristine when I'll be able to find the desire...now I haven't much time. Thanks for supports
[Samsung Galaxy W I8150] dollyaja:
How to make ksm on by default and every boot? Just followed on the op but its off when reboot
[Samsung Galaxy W I8150] hurtsky:
yup it is off by default each reboot, you want make it on by default ? if like that i make a script to put init folder.

how the battery consumption? i had no noticeable battery consumption even i compile default on.
[Samsung Galaxy W I8150] dollyaja:
Yes if its possible..battery? never had battery issues with your cm9 kernel bro,even on 4.1 previous still had my 15 hours for normal usage LOL :silly:
[Samsung Galaxy W I8150] egagah:
i too do not see a noticable difference. I have it default on as well
[Samsung Galaxy W I8150] hurtsky:
haha, because rumors said that UKSM abit battery hunger since it use compression to make the RAM size more available, but don know about the new version because i cant see the different. :P i will make the script for default on

did you make script to make it default on? that nice.. because the setting is auto default off every reboot.
[Samsung Galaxy W I8150] egagah:
Yup. Simple init.d script to ensure my UV and under clock, governor, scheduler settings all stick with boot (cuz I have a problem with incredicontrol not saving at boot). So I just add the few lines of command to add Whitelist as well as enable uksm.
[Samsung Galaxy W I8150] hurtsky:
share it bro ;) just left for UKSM enable on boot.. i still at out side now
[Samsung Galaxy W I8150] hurtsky:
here [MENTION=4667370]dollyaja[/MENTION] and other users that want it enable on boot :)

- Download the script named uksmenabler.txt at attachment below this post

- the file has been saved with .txt extension (stock browser) because xda wont allow no format file

- edit the file by removing the ".txt"

- Copy the new file inside /etc/init.d

- Give the rwxr-xr-x permissions to the file (read, write, execution for owner, read and execution for group users, read and execution for others)

- Reboot

enjoy it friend ;)
[Samsung Galaxy W I8150] honeyx:
You dont need a script. You can make it enable by default :) You need to change "static unsigned int uksm_run =" from "0" to "1" in mm/uksm.c
[Samsung Galaxy W I8150] hurtsky:
thank you mate ;) i know that parameter already, but i don't think not all users want it enable since there are some devs said it is battery eater abit that why i left it default off rather than on
[Samsung Galaxy W I8150] honeyx:
Ok I will check the battery life for a while and report it consumes more or not. Just Ultra KSM istn´t giving me the results regarding ram usage I expected to be in CM9, but it´s slightly better than before.
[Samsung Galaxy W I8150] dollyaja:
Alrite!! thanks a bunch mate :silly:

dont ever bother about battery life issues my friend [MENTION=4723408]hurtsky[/MENTION] never had drainage battery with CM9 based kernel, just focus on updating the performance. LOL

:good::good::good:
[Samsung Galaxy W I8150] hurtsky:
yea, it is better. because i left on my side for minied of this kernel. i still had 120+ mb for normal RAM size.. i couldn't test the battery since my phone lately during this holiday keep been play by my little bro.. but he didn't complain any lag differ to before. :D
[Samsung Galaxy W I8150] hurtsky:
good for you ;) i will try more focus on performance for now :P
[Samsung Galaxy W I8150] hurtsky:
oh sorry friend ! i forgot to write to remove the .txt format before copy the file to init folder

already re-add the steps for the scripts ;)
[Samsung Galaxy W I8150] egagah:
If you ever have to choose between the path of performance and battery life, I hope you'll make 2 different versions cuz I'm enjoying the awesome battery life + performance this kernel is giving me now but I'm more bias towards battery life XD.
[Samsung Galaxy W I8150] hurtsky:
ah, not only you dude, me also want both but more toward to battery life.. that why all my mod will be more towards to less power consumption but try maintain on performance since i love to play games also during college break time ;)

about 2 different versions, it will make my local repo messy.. i already make Mini Edition of this kernel.. i will publish that edition when it ready completely ;)
[Samsung Galaxy W I8150] dollyaja:
[MENTION=4723408]hurtsky[/MENTION] Just followed the scripts steps,does this works?
[Samsung Galaxy W I8150] hurtsky:
yea it work, but the UKSM saving is 0mb.. weird there, [MENTION=4667370]dollyaja[/MENTION] try post that result on the zep thread... this result can help he improve the scripts

Edits: fyi, i didn't use the tweak actually. just our friend [MENTION=4794891]eryzerz[/MENTION] recommend it ;) it still in beta phases
[Samsung Galaxy W I8150] dollyaja:
Just posted on [MENTION=3357461]zeppelinrox[/MENTION] thread,hope he will notice soon :D
[Samsung Galaxy W I8150] honeyx:
I´m not sure this is related to the script as it should also work without it. The script is just to improve it.

But for me it seems to do nothing. Well at least not saving ram. But I noticed a slight difference in behavior. Whenever I opened running Apps, mostly the Settings were showing me about 74MB to use. This descrased normally after a while when staying there to about 30MB. With UKSM this is much faster going to happen.

I´m not sure what is causing this annoying behavior, but it´s only related to CM9 Final. Doesn´t happen in RC2 nor in JB. There the settings are always about 30MB in size and so having more free ram aviable. However the UKSM fixes this a bit. About battery .I didn´t notice a higher drain till now. Seems to drain the same like without it.

Hurtsky I will PM you another source for UKSM I found. Not sure which version this is, but it has a good structure. So we can compare and check if everything is implemented correctly and see if this can be improved or the UKSM tweak is more placebo than useful.
[Samsung Galaxy W I8150] hurtsky:
about the link that you gave me it is same version that we had [MENTION=4410351]honeyx[/MENTION]

2012-12-31 UKSM 0.1.2.2 Minor bug fixes -

you can see at the documentation the statement.. it seem that uksm latest version is 0.1.2.2.

about the UKSM we still need to observe it. from the first implementation, i keep the zram off and let UKSM alone running.. you can see there are some changing in the RAM free size..
[Samsung Galaxy W I8150] honeyx:
I must have been blind. LoL. But well there are a few differences in the code. For example in /fs/exec.c, but not just there.
[Samsung Galaxy W I8150] hurtsky:
fs/exec.c didn't add any line just include ksm.c

i try see more. i saw the others uksm commit for 3.0.x . it is same with the source that i took one.
[Samsung Galaxy W I8150] honeyx:
Yes I know, just wanted to point this out as one line in the code can make the difference between a working and a not working tweak ;) However I added the Include in exec.c but this doesn´t change anything.
[Samsung Galaxy W I8150] hurtsky:
recently i study C++ and C with my friend ;) .. the #include used to include the functional path of the file. since there is not define KSM why need to put include ksm.h in exec.c and yes there are others part that are different so i try change according to the source but it compile with error.. have you try compile according to the changes of the source?
[Samsung Galaxy W I8150] honeyx:
Not yet. Currently I´m trying to figure out what is going on here for me because after updating the sources in my git and downloading the CM9 kernel repo I first got errors while compiling. Now I got this fixed by deleting the whole Repo and cloning it once more but my WiFi stopped working in the compiled kernel :/ So first I need to figure out why this happened and get Wifi to work again before I can further investigate into UKSM.
[Samsung Galaxy W I8150] dollyaja:
[MENTION=4723408]hurtsky[/MENTION] about uksm value..solved, it just booted up like zep said . I have mine at 9.8 mb for now when checked.
[Samsung Galaxy W I8150] hurtsky:
nice bro (y) actually. based on my reading or my understanding sir zepp try lowered the deep sleep time maybe optimizing the usage of uksm also.. that why he want the result of the test. maybe he can optimize it more.
[Samsung Galaxy W I8150] hurtsky:
pure cloning without any modification and your WIFI wont work? weird.. but about the cloning through git it sometimes broke the source or not completely finish download. i also had errors before. but still WIFI work on.. why you can't :/
[Samsung Galaxy W I8150] egagah:
how do u do this? the checking xD
[Samsung Galaxy W I8150] HumansAreTasty:
I'll ask something unrelated to the talk up there :P I started having problems with the audio, again after v4.1 (or v4.0 I don't remember) I tired multiple governors, no luck. Using smartassv2 between 245 mhz and 1.4 mhz. What should I do?

Also I have another question. Does the CPU speed go down to 61mhz on deep sleep even if we set the min speed as 245mhz? I hope it does.

Thanks for your replies.
[Samsung Galaxy W I8150] hurtsky:
it is not checking, you can see the link at second post ;)
[Samsung Galaxy W I8150] dec0der:
I think it doesn't since the lowest set freq is 245Mhz. cmiiw [MENTION=4723408]hurtsky[/MENTION] :D
[Samsung Galaxy W I8150] hurtsky:
i don't know, because i didn't experienced this at others governors and only lulzactive make the audio lag. you also didn't explain in detail what is your audio problem.. i cant predict what problem you had if your statement is vague..

nope, it wont go down until 61mhz if you set 245Mhz as lowest
[Samsung Galaxy W I8150] HumansAreTasty:
Audio stutters while playing music. For 0.3 seconds or so. I followed the instructions to update to the latest version. But I couldn't fix permissions as I use the latest CWM (I don't have any force close problems btw). Do you think it might be that? I also tried reflashing the kernel really carefully. Same result.

Thank you.
[Samsung Galaxy W I8150] hurtsky:
frequent interruption ? weird i didn't experience any kind of this. maybe you use mods or any tweak that may effect your music.. try make your rom prestine and flash the kernel..
[Samsung Galaxy W I8150] dec0der:
have u tried other kernel? try it for for comparison. the audio lag only occurs on hurtsky's kernel using lulzactive governor while in sleep.
[Samsung Galaxy W I8150] HumansAreTasty:
Thank you for your replies. Probably I have a problem with my rom. Maybe I installed a tweak and I don't remember now. I know no one has this problem anymore. Thank you for your awesome kernel btw hurtsky!
[Samsung Galaxy W I8150] hurtsky:
sorry because my answer not really helping. because all complain i will do a test to confirm it..try using other player or download high quality music or last prestine up your ROM for last result... ;)
[Samsung Galaxy W I8150] honeyx:
I figured out what was causing my WiFi to not work. The compiling errors where due to a broken clone by cloning Arcos git to my git, but the broken WiFi was caused by the UKSM tweak.

Well I also figured out why this is happening for me but not for you. It´s because the "Lowering Wifi tweak" alone you use isn´t really doing anything. Your Wifi voltage keeps to stay at stock values. To successfully reduce wifi voltage you also need to edit lbo05 in both files like for example also Madridii is doing. But also change #define PMIC_VREG_WLAN_LEVEL.

So by reverting these back I also got WIFi to work again. But to the costs of a higher Wifi consumption.

Well about UKSM. It´s working correctly for me but there isn´t really a benefit in using it. After a reboot the ram consumption is even higher than without it. By waiting a while till the device was in deep sleep there I get only a difference of about 3MB whereas the script is saying it saving about 9MB. And by leaving it for hours in deep sleep I´m getting about 20MB less without it than with it.

Finally about audio lags.... I don´t really think it´s due to lulzactive governor. Ok, there were maybe some lags because the screen off frequency was set to low, but you fixed this. I once flashed your kernel to compare where some ppl were reporting lags for you but had no lags with it.

But recently I was told my kernel is doing the same and expected to fix this. However I´m also not using all the other tweaks in your kernel, so it can´t be them either. It turned out to be one single song what is doing this.

So well I´m not sure what is causing these audio lags, may it be some scripts, other tweaks, hacked audio-codecs used in these files or even viruses or trojans whose their anti virus programms on their computers can´t detect because they got downloaded from dubious sources.
[Samsung Galaxy W I8150] hurtsky:
owh! about the commit lowered wifi voltage i actually already fixed it on local repo, i just didn't upload the correct commit sorry for that.. thank you for reminding me because it is first changes that i made since i compile the kernel..that why you got broken WIFI.. ahh. sorry about that..i will fix the commit on online.

UKSM maybe had their own act, but we can change whether to use UKSM and KSM next time.. for now after reading some other kernel dev, uksm is better on handling because the UKSM code utilize the KSM.c properly hence it more proper but there is not really effective way to prove it till now. that only based on my reading. ;)

the audio lag give me a headache actually, because it really doesn't effect my player when hearing song in daily routine.. listening it without any shuttering even i set up my frequency 61mhz-1400mhz... so i guess same like you mention it. it maybe due to tweak or lower quality of the song itself. :o
[Samsung Galaxy W I8150] honeyx:
Mate, don´t bother about the commit. It´s not because of your commit why my Wifi got broken. I´m using this change too since 2.6 kernel, but this alone will not breake Wifi because this alone isn´t enough to reduce the voltage.

Maybe I didn´t express myself clearly. By just using this this tweak your WiFi voltage will be still at 3V and UKSM will not break WIFi when added. To really reduce the voltage for WiFI you need to apply the other mentioned changes. But then when adding UKSM Wifi will stop working. So you have the choice. Either really getting WiFi voltage reduced or adding UKSM and keeping WIFi at stock voltage.

Maybe you will find a workaround for this, but for now I prefer a reduced WiFi voltage over a working UKSM as this isn´t giving me the results I expected.
[Samsung Galaxy W I8150] hurtsky:
i actually already used the correct one not based on commit that you see at online.. on local repo the changes are same with madridi lowered wifi voltage commit.. and UKSM didn't interfere any wifi coding i think.. well i recheck back this matter.
[Samsung Galaxy W I8150] honeyx:
Hmmm, strange. I now downloaded your local repo but there I still see #define PMIC_VREG_WLAN_LEVEL to be @ 2900 and ldo5 + ldo05 to be set to 285000.
[Samsung Galaxy W I8150] hurtsky:
no, what youre downloaded it github, local repo is saved on my hard disk and not been upload.. wait i need to reupload the full repo since youre already mention about the wrong in commit ;) thank you for that
[Samsung Galaxy W I8150] hurtsky:
i see the problem. i created another branch for test.. the test branch already been fixed with the lowered wireless. seem the one i push to github is not correct only.. i try revert the commit and redo the lowered wireless voltage
[Samsung Galaxy W I8150] honeyx:
Ok I see. So well I did some further testing. This time I compiled the pure arco kernel with just UKSM added. The results were the same. With default wifi voltages it worked but after lowering them it stopped. But well I forgot I used a slightly different source this time for UKSM.
[Samsung Galaxy W I8150] hurtsky:
try cloning this repo, i just correct back the WIFI lowered voltage. and already test it.. WIFI not broken till now.. still can connect it normally.

https://github.com/hurtsky/samsung-kernel-msm7x30/tree/ics-3.0-hurtsky-miniEd

this repo is my Kernel for MINI EDITION that i will publish later.. due to many changes, this repo may have many different with arco pure kernel.
[Samsung Galaxy W I8150] honeyx:
Thanks mate :) Will compare your and my sources for UKSM once more to find the issue. When there is something to share, I will PM you to not to accuse this thread ;)
[Samsung Galaxy W I8150] hurtsky:
haha, what we're talking is about development of this kernel also. i didn't find it will become a problem ;)

okay, anything PM me friend :)
[Samsung Galaxy W I8150] hurtsky:
Updated to New version :)
[Samsung Galaxy W I8150] khusika:
Wowow.. :eek:

Thanks sir.. :thumbup::thumbup:
[Samsung Galaxy W I8150] abhenx:
i get experience "trrrrrr" randomly when playing music with walkman mod by ibanez, i have tested with kernel version 3.9 and 4.3 lulzactive 112-1024, but music working well when set to smartass2, although sometimes music stopped.

but no problem for me

thanks again Mr hurtsky
[Samsung Galaxy W I8150] honeyx:
The difference between Lulzactive and Smartass is, Lulzactive is scalling through all the frequencies aviable and mostly tuned to use the lowest. Smartass is bouncing around a preset frequency, which is generally set to 768MHz at this device. Scaling very fast to 768MHz and slow to the above frequencies. This is also the ideal wake frequency for smartass2. So the difference between both governors is its behavior.

With Lulzactive the clock simply goes down to the lowest frequency your music app or tweak should work well whereass Smartass2 will keep the frequency at a higher value and so not causing these breakes.

So this all is pointing more to be the music app you are using to cause unexpected freezes at lower frequencies rather than the governor.
[Samsung Galaxy W I8150] JustSmiLee:
Best power saving governor lulzcative. Right?

GT-I8150 cihazımdan Tapatalk 2 ile gönderildi
[Samsung Galaxy W I8150] honeyx:
Either Lulz or smartass. Depending on your usage.
[Samsung Galaxy W I8150] JustSmiLee:
Thanks for information :).

I'm using 61-518 mhz with no lag awasome! And I'm playing subway surf (last version) on 1ghz and it is very smooth Thanks Hurtsky and honeyx :)

GT-I8150 cihazımdan Tapatalk 2 ile gönderildi
[Samsung Galaxy W I8150] sigprof:
I had a spontaneous phone reboot last night and found an oops message in /proc/last_kmsg (attached).
[Samsung Galaxy W I8150] hurtsky:
it seems data cant be sync due to dynamic fsync.. it never happen on me even i let the dynamic fsync on,.. i wonder why it happen to you.. try off the dynamic fsync.. it is happen to you frequently?
[Samsung Galaxy W I8150] sigprof:
I finally looked at the message on a screen larger than my phone :)

Seems that the nosim_proc_write() function was really intended to cause a kernel panic when "PANIC" is written to /proc/nosim_handler by the rild process (although Samsung developers could use the real panic() function with a proper message instead of just sticking BUG() there). And the real problem is some compatibility issue with my SIM card which causes the phone to think that the SIM card has been removed.

Sorry for the noise.
[Samsung Galaxy W I8150] hurtsky:
arhh nvm, ;) thank you for the explanation.
[Samsung Galaxy W I8150] TiTAN-O-One:
Soooo uhhhh.... i used my phone at 7.58am, after these 12hrs... :eek::eek::eek:

Awesomee kernel HurtSky :thumbup: I need to do a project with lots of video recording and now, still using, i left with 31% :D Super awesommeee battery life!!! U shld put this at the OP! Cool results mannn !!! :D:thumbup::thumbup:
[Samsung Galaxy W I8150] sigprof:
BTW, the dynamic fsync code is buggy and cannot be turned off completely — dyn_fsync_panic_event() does not check dyn_fsync_active and always tries to sync filesystem during a kernel panic. If the panic is due to a real oops (as opposed to a forced panic after a SIM card error, like in my case), this may lead to writing corrupted data from memory to the filesystem, which could be much worse than losing some data since the last sync. Even with a forced panic the behavior might be not 100% correct, because sync_filesystems() is called in wrong conditions (with local interrupts disabled — this causes "BUG: scheduling while atomic" messages in the kernel log).

Also, I had another problem with the phone today — in the morning I found that the phone does not respond to any buttons, except holding the power button for a long time. I looked in /proc/last_kmsg again, and found that the underlying reason was the same (panic triggered via /proc/nosim_handler), but the phone did not reboot by itself — it was stuck for almost 3 hours (see timestamps in the log — the panic was triggered at 23789 seconds since boot, and the reboot signal was received from the modem side at 34126 seconds, apparently at the time when I held the power button). While hanging, the phone also drained the battery from 95% to 64%.

Looking further, I found that /proc/sys/kernel/panic contains 0 in this kernel by default — this means that automatic reboot on panic is disabled, and any kernel panic (or oops, which is converted to panic due to /proc/sys/kernel/panic_on_oops being set to 1) will result in the processor hang with large power consumption, until something else (e.g., the modem CPU) will force a reboot (it did this for me yesterday, although with the delay of 118 seconds, but today the reboot did not happen). This does not seem to be a good thing.

As a temporary fix, I created /data/local/userinit.sh with the following content:

#!/system/bin/sh
echo 30 > /proc/sys/kernel/panic

After doing this, executing sync; echo PANIC > /proc/nosim_handler results in the phone reboot after about 30 seconds, as expected.

Probably something like this should be added to the default kernel configuration (e.g., in init.rc at the same place where /proc/sys/kernel/panic_on_oops is set), so that in case of a fatal error the phone is not left hanging and draining the battery.