yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] alb3rtt:
I do use that as well and that shows no change in the time that my device was in deep sleep after 30 mins of listening to music. Semaphore manager under deep idle stats shows top=off 44565, top=on 0 and idle 290015
[Galaxy S I9000 Android Development] Nicolae-Daniel:
hello

does this kernel work on the latest cm10(18.10.2012)?I flashed it from recovery and installed semaphore manager from google play and it does not work.

Got it working,srry.
[Galaxy S I9000 Android Development] stratosk:
'v' is for vibrant version. You have to flash 2.4.0 for galaxy s.
[Galaxy S I9000 Android Development] stratosk:
I don't think there is a connection between them. Did you plug in your phone in USB during this period?
[Galaxy S I9000 Android Development] stratosk:
You may read the deep idle guide and FAQ (link in OP). There is a method to debug issues with deep idle.
[Galaxy S I9000 Android Development] alb3rtt:
Thanks for replying, I checked the FAQ and its making more sense. I have just one question that isn't on the FAQ, if I have only idle and top=off stats, (top=on has 0 next to it) does it mean its working?
[Galaxy S I9000 Android Development] Kees-Jan:
I think listening to music will put the CPU in "deep sleep" modus because CPU is needed for reading the music file (MP3) from SDcard and transfer the bits to the audio chip (DAC) which converts the bits to the music you hear.

try: enable "deep sleep" in "Semaphore Manager"-app, reboot and let the phone rest (for a while), then with "CPU Spy-app" check if "deep sleep" is listed

I can confirm "deep sleep" is working:
[Galaxy S I9000 Android Development] stratosk:
Top=off is better (deeper) idle than top=on.

Top=off has the less battery consumption during MP3 playing.
[Galaxy S I9000 Android Development] alb3rtt:
So technically, cpu spy should show the phone running in deep sleep? I wonder why it still shows it at 100mhz and deep sleep time unchanged. Maybe I'm not listening to my favourite song like the FAQ suggests :p
[Galaxy S I9000 Android Development] stratosk:
Yes, maybe... :)

Anyway, deep sleep is different that deep idle. CPU spy does not count deep idle time.

You may check deep idle times through Semaphore Manager app.
[Galaxy S I9000 Android Development] Neel.I:
No didn't connect to USB

phone was disconnected from charger at around 70% charge,put it on flight mode

woke up,around an hour of music and test idle time,when I posted the stats

will let the battery settle for a couple of days .. had flashed cm nightly yest night

Thanks for the help :D .. just confirm if changing the settings led to this thing
[Galaxy S I9000 Android Development] HTC=Hero:
Random reboots on CM10 nightly

Random reboots happen to me once or twice a day. I made a last_kmsg for the first time, so hope it's useful for you.

I realise this is most likely a problem in CM10 since others have experienced the same, but i happened to run semaphore when it happened so I'll post in both threads. People don't seem to like anybody without stock kernel posting in the CM10 thread...

Thank you in advance for taking a look at my problem.
[Galaxy S I9000 Android Development] stratosk:
Custom kernels are evil and always they cause issues. :)

Can you please clarify, when did you get the last_kmsg? Because, I can't see any errors there.
[Galaxy S I9000 Android Development] najarc:
Semaphore 2.4.0 s + latest nightly works so perfect!!! My sgs is as quickly as s3 on JB. THX awesome job Stratosk!
[Galaxy S I9000 Android Development] HTC=Hero:
Hehe, well I know for a fact I also get the reboots stock kernel, so no doubt it's a CM10 problem.(or hardware but that seems very unlikely give the fact that other CM10 users have complained about it as well)]

I got the last_kmsg after my phone rebooted.
[Galaxy S I9000 Android Development] stratosk:
Hmm, strange. Was it soft reboot or hard reboot. Did you see kernel's logo?
[Galaxy S I9000 Android Development] HTC=Hero:
Yes I always get the kernel logo. When I'm on Semaphore it sends me to CWM recovery first, so I thought it was a OC or perhaps deep Idle problem. I disabled Deep Idle a week ago and the reboots still happened once or twice a day.

So I tried stock CM10, which didn't help either.

These reboots sometimes happen when the screen is off, sometimes when I turn the screen on(sleep of death I believe you call that), and today when I was using whatsapp.
[Galaxy S I9000 Android Development] stratosk:
If your phone reboot into recovery, you should got last_kmsg when you were in recovery. That's why your last_kmsg is normal.

Do you OC? any other tweaks?
[Galaxy S I9000 Android Development] test123456789012:
Hi Stratosk. I am having similar issues with latest version „s“ and SlimBean. Phone randomly reboots into recovery. I OC at 113%, no deep idle. The same settings at 2.3.0s are rock stable though. Unfortunately I cannot give any log, but I will, as soon as I can afford an unstable phone, later this week.
[Galaxy S I9000 Android Development] Darkrabbit:
Same problem....my phone random boot in recovery...semaphore 2.4.0 and gnex port 13v3

Inviato dal mio GT-I9000 con Tapatalk 2
[Galaxy S I9000 Android Development] Turtuga:
stratosk one question...

What settings you recomend for your kernel for applications no games...

Sorry my bad english
[Galaxy S I9000 Android Development] stratosk:
I don't play games. I want max performance. These are my settings:

LiveOC: 114

ondemand (smooth_ui)

SIO (sometimes noop)

SD card read ahead 512

bigmem

for less aggressive values, don't use liveoc and you may switch to interactive (I like it)

Other settings (don't affect performance)

Semaphore auto brightness

touchwake

@all about reboots.

If you want to help on this, please be more specific.

Try not to use 'risky' settings like OC, under/overvoltage or deepidle. Please make sure that NO application or you ROM apply OC or other performance tweaks.

I use the above settings on CM 20121017 - had not a single reboot. Though, I reboot myself the phone due to development. Since 2.4.0 max uptime 35 hours.
[Galaxy S I9000 Android Development] jrongi1:
The s version is for patched roms of which CM10 is not.

Also there is an option for huge mem in both versions but you lose 720 video options.

Also get the semaphore app from the play store.

PA_Vibrant 360° Productions
[Galaxy S I9000 Android Development] Starsream88:
Hi Stratos, huge thanks again for the greatest kernel ever :)

No random reboots, no bugs, nothing bad at all, my phone is super smooth.

Ondemand(smooth_ui), OC120%, bigmem, SD Card 1024K, SIO.

Just one question please, is Kernel Samepage Marging supported by semaphore ?

Big THANKS :good:
[Galaxy S I9000 Android Development] crucialstogie:
Oh man do I feel dumb flashing the wrong Semaphore. Got it now. Working great. Thanks
[Galaxy S I9000 Android Development] husamco1990:
Thank u sir for the great kernel i have pretty mutch the same settings like yours and not a single repoot and my up time is 79 hours until this moment

My question is do u plan to add zram or swap to ur kernel in the future

Thanks in advance
[Galaxy S I9000 Android Development] roshan2989:
hi there im using cm10 14/10 and im using the s version of semaphore kernel...if i apply the big mem can i record 720p video?or just 480...?
[Galaxy S I9000 Android Development] Midomad:
Just 480p

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Android Development] Ledanur:
Yeah, so this is happening:

http://review.cyanogenmod.com/24489
[Galaxy S I9000 Android Development] TheLach03:
What does that one do?
[Galaxy S I9000 Android Development] DerBobo:
you have to watch out for 'oc steps'. Not all (100-120%) are stable. I remember at oc steps in old sema app: 100 (default), 110, 114 and 120. I'm having on 114 best performance and stability ;)

send from my SGS with latest Slim Bean @ latest Semaphore Kernel

---------- Post added at 12:55 AM ---------- Previous post was at 12:41 AM ----------

Hello guys ... I'm getting reboots after cleaning dalvik cache. Rom (slim bean 2.7) will not boot and phone will start restart Kernel Logo. After that it's also not possible to enter recovery. Only way is to flash devil kernel via odin (reflash sema odin version will not solve the problen). Than install sema via zip and reinstall rom clean (full wipe incl. System).

That will always after cleaning dalvik. Also very often (maybe always, I can't remember :) ) after creating a backup via revovery in internal SD-Card.

send from my SGS with latest Slim Bean @ latest Semaphore Kernel
[Galaxy S I9000 Android Development] stratosk:
I'm not sure that I will follow on this.
[Galaxy S I9000 Android Development] rah606:
Anyone have problem with video recording? Im on slimbean 2.7 and when i try to change photo camera to camera i see that application gallery has been stopped and camera crashes. Any solution?

Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
[Galaxy S I9000 Android Development] Bejda:
Something related to bigmem option probably?

If you want bigmem enable you have to set the camera to 480p BEFORE activating it.
[Galaxy S I9000 Android Development] test123456789012:
Thanks, will try this. So far my phone is stable with 2.4.0 without oc and DI.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 Android Development] Turtuga:
I think it's a new feature...

http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
[Galaxy S I9000 Android Development] stratosk:
Yes, it's new feature in CM.

Devil use these since long time ago.

Some kernel devs used swap in GB kernels.

Linux kernel has many goodies. I think we have to find the minimum set of them that makes our phone working good. Again, I'm not sure that we need swap or compcache.
[Galaxy S I9000 Android Development] knedlyk:
Did you try to wipe data of camera application? I had similar and it helped.

Надіслано з мого Samsung GT-I9000.
[Galaxy S I9000 Android Development] Funnnny:
I also think we don't, but maybe they just give the option because it's cheap, then everyone's happy.
[Galaxy S I9000 Android Development] pxrave:
thank you very much :)
[Galaxy S I9000 Android Development] stratosk:
You welcome. I just added a small section in the guide about the kernel configuration.

If you want to change the default governor, make sure that you change the governor setting from 'm' to 'y'. For example if you need smartass as default you need these:

CONFIG_CPU_FREQ_GOV_SMARTASS2=y

# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set

# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set

CONFIG_CPU_FREQ_DEFAULT_GOV_SMARTASS2=y

# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set
[Galaxy S I9000 Android Development] TheeWolf:
I'm surprised. Doesn't the CM team want their rom to be more stable? I thought this feature make the rom much less stable and may cause issues.
[Galaxy S I9000 Android Development] stratosk:
I didn't say that linux swaping is unstable.

I mean that I'm not sure if swap in android phone is efficient .
[Galaxy S I9000 Android Development] TheeWolf:
Ohh, didn't say you said it, that's just what I heard somewhere.
[Galaxy S I9000 Android Development] benbezalel:
Overclock 1140mhZ with voltage 1.325 is normal?

And why its not stable with deafult one 1.300?
[Galaxy S I9000 Android Development] roshan2989:
what is the best setting for games...im having lag issue when playing temple run games...
[Galaxy S I9000 Android Development] DerBobo:
Dude make some settings and try. Live oc 114 SHOULD be stable. Gov on demand is most responsable and sheduler simple i/o. sd read ahead is (mostly) not very important. Deep idle should be disabled of you don't listen hours of music day by day :)

send from my SGS with latest Slim Bean @ latest Semaphore Kernel
[Galaxy S I9000 Android Development] Syntaxer:
I just wanted to ask, with swap enabled we will have more RAM?
[Galaxy S I9000 Android Development] stratosk:
You will have the same RAM.

If you will have swap enabled, kernel will swap memory pages in SD (in a reserved space) when it runs out of RAM.
[Galaxy S I9000 Android Development] rah606:
Knedlyk, unfortnately, wipe gallery ,data dont help me.

Other solutions?

Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
[Galaxy S I9000 Android Development] themanssx:
I thought zram and sawp werent too battery friendly and this is why it wasnt used by all kernel devs. Something about cpu beeing more active?... idk. Im a user not a dev. But it makes sense... we have enough ram. If you play a heavy on system resources game you don't expect to fly through multitasking.... my 2 cents. We will see. Anyway, since modems still drain the battery on 3g we wont get better battery life soon.
[Galaxy S I9000 Android Development] monkeywithbanana:
What rom would recommend with this kernel? It needs to be more stable than CM10
[Galaxy S I9000 Android Development] stratosk:
Yes, it is.

30 secs it's too much for opening an app. Do you have the same issue with your ROM's stock kernel?
[Galaxy S I9000 Android Development] twisturandroid:
yes i can see

s10enable_gov_ondemand_efficient

S11enable_smoothui

s20enable_netfilter

s45enable_vibrator_4low

The perm of the files is -rwx------
[Galaxy S I9000 Android Development] Maddmatt:
I cannot see the CFQ scheduler in the Semaphore app. Only Deadline, SIO and no-op.

Double checked in settings, I'm definitely using version 2.0.0b1s.

Am I missing something?

Edit: Searched the thread some more and I see it's just because the script is missing. No worries, I'll wait for the next update.
[Galaxy S I9000 Android Development] stratosk:
The script for cfq is included in 2.0.0b1.

Please check your /sdcard/ for a directory SemaphoreScripts. If you have it delete it and retry.
[Galaxy S I9000 Android Development] stratosk:
Please run this in terminal emulator:

busybox > /sdcard/busybox.txt

ls -l /sbin >> /sdcard/busybox.txt

And post the busybox.txt file.
[Galaxy S I9000 Android Development] Tkbf:
Tested on CM10-20120729 with Semaphore 2.0.0b1s, got 398 MB ram and 1080p video is playable.

Camera will FC, but possibly caused by issues from ROM side, so 720 video recording can't be tested here.

Thanks.
[Galaxy S I9000 Android Development] rajeshbabushrestha:
if u use semaphore "s" version kernel in CM10 or ROMs without hugemem configuration and use the patch then u can enjoy 386.5mb ram+HD recording and playback.... but after u tick bigmem option in semaphore kernel manager, u can enjoy 398.7mb ram but HD recording wont work... and one more thing... u have to change the video recording to 480p before u apply the patch if u are planning to go for 398.7mb ram... otherwise camera fc... i hope this helps...

Thankx a lot for the awesome kernel... cheers :)
[Galaxy S I9000 Android Development] Tkbf:
Yes, I use "s" version with Big mem enabled.

I know it that I should switch video recording to 480p before patching, I did it and camera got fc at that point. So I have no chance to test 720p recording. :rolleyes: And I believe the fc has nothing to do with your patch.

Thanks for your sharing, good job~
[Galaxy S I9000 Android Development] twisturandroid:
As requested i have attached the output and along with that i have provided the contents from init.d folder too. i am on 2.0.0b1 version
[Galaxy S I9000 Android Development] super_extreme:
@stratosk

Is it possible from kernel side to have the music from the phones speaker and from earphones/stereo at one time, like the time phone is ringing by incoming call?
[Galaxy S I9000 Android Development] stratosk:
Thanks.

busybox seems OK. But, I asked you the listing from wrong directory. I wanted to check /system/xbin/.

You may check with ls -la /system/xbin. There must me this line:

lrwxrwxrwx root root 2012-07-30 00:10 run-parts -> busybox

I'm sorry for inconvenience.
[Galaxy S I9000 Android Development] yahyoh:
1080p :eek::eek::eek: with huge big ram too ,is there magic here or what :laugh::laugh:
[Galaxy S I9000 Android Development] stratosk:
I have no idea... :p I would guess, yes. :)

Do we really need this?
[Galaxy S I9000 Android Development] super_extreme:
Sometimes it would be nice as a module. :D

But I think I would survive without ... :p
[Galaxy S I9000 Android Development] twisturandroid:
I have updated the busybox.txt with the requested details.. I can see the softlink u have mentioned

And please don't say sorry.. I should thank you for the efforts u r putting in to resolve my issue :)
[Galaxy S I9000 Android Development] stratosk:
OK, busybox seems fine.

Did you try to run the scripts manually in terminal emulator:

su
cd /etc/init.d
./S10enable_gov_ondemand_efficient
./S11enable_smoothui
./S45enable_vibrator_4low

Please check for possible errors on screen.
[Galaxy S I9000 Android Development] Maddmatt:
Thanks, that worked. Some of the settings in the Semaphore pp disappeared like profiles but I guess that's because they're supposed to be removed.
[Galaxy S I9000 Android Development] stratosk:
Yes, these are compatible only with GB version.
[Galaxy S I9000 Android Development] Op3a:
Guys after install the Semaphore @ CM10, i loose my BLN? Any ideia why?
[Galaxy S I9000 Android Development] habylab:
Just popping back to say something... the kernel development for S3 is nowhere near as vibrant as galaxy s! There are many devil like kernels, but not one plain and simple kernel like Sema.
[Galaxy S I9000 Android Development] exjc1986:
Is anyone having problems with Youtube app on Semaphore 2.4.0s... For me the video just keeps loading and it never starts and after 3 load cycles it just says unable to load video or something... Never had this issue on 2.3.0s...

I'm on Slimbean 2.7, switched to Devil 1.7.5 and Youtube works again... Is anyone facing this issue ?
[Galaxy S I9000 Android Development] tanivula:
yep, I'm having the same problems with Slim 2.7 and Sema 2.4s - even with youtube app from the market (as opposed to inverted gapps or normal gapps package). Seems very strange that a kernel makes this difference but it does.

Cleared cache and dalvik both times I've swapped between the two. Both times youtube works on Devil and not on Semaphore. :confused:
[Galaxy S I9000 Android Development] erpurohit:
Did you flashed the 720 video patch?
[Galaxy S I9000 Android Development] stratosk:
This is weird. Any specific video, or everything? Do you have also issues with video recording/playback?

Youtube is working fine here (CM10).
[Galaxy S I9000 Android Development] erpurohit:
Yes it working fine on remics/xbean as well however it didn't if you flash the one with s and not flash 720p patch...

No issues with sema kernel...it ls working fine....
[Galaxy S I9000 Android Development] exjc1986:
Its happening for all the videos, I had flashed 2.4.0s on Slimbean 2.7...

EDIT: No issues with normal video playback or recording. Only happening for Youtube!!
[Galaxy S I9000 Android Development] Bejda:
I often had or seen this strange issue here and there since hugemem kernels appeared,you're on semaphore or Devil S or XL versions,you already have the modded libs installed but you see youtube that keeps loading videos forever and sometimes finally gives an error,you flash the 720p patch again and now it works.

Could someone check this again and report?

http://xdaforums.com/showpost.php?p=30619870&postcount=755
[Galaxy S I9000 Android Development] stratosk:
Anyway, Semaphore does not touch system libs.

If reinstalling libs resolves the issue, then something's wrong with the libs.
[Galaxy S I9000 Android Development] Syntaxer:
Hi stratosk, can we use Semaphore 2.4.0 with CM10 and swap enabled or it requires kernel update? :)
[Galaxy S I9000 Android Development] tanivula:
Checked just now with the file from this link. YouTube is working again. So that begs the question....
[Galaxy S I9000 Android Development] stratosk:
Hi, it requires kernel update.

I'm sorry, but I will not enable swap in Semaphore.
[Galaxy S I9000 Android Development] Syntaxer:
That's bad I want to use Semaphore and CM :D What choice do we have now? Stay on nightly 1017 and lower or use another ROM? :)
[Galaxy S I9000 Android Development] stratosk:
I'm sorry, I misunderstood your question.

I guess there will be an option on CM10 to use swap or not. Simply, with Semaphore will not work (swap).
[Galaxy S I9000 Android Development] Kees-Jan:
With CM10 comes it's own Kernel isn't it? You don't have to (must) use Semaphore Kernel, although it's good Kernel ;)

Or disable SWAP in CM10 ROM (if it can be enabled/disabled in settings)...
[Galaxy S I9000 Android Development] TheLach03:
I installed the new CM build, and flashed sem 2.4.0 over the top.. was this a bad idea? :/
[Galaxy S I9000 Android Development] stratosk:
New version 2.4.4

- update to Linux 3.0.47

- upstream sync with android kernel

- CWM update to 6.0.1.5

- AROMA file manager update to 1.80

Many thanks to XDA and pulser_g2 for the amazing new build server. This is the first version that was built from this server.
[Galaxy S I9000 Android Development] Taomyn:
Thanks for the great work on this kernel - donated 61R776467U431884A :good:
[Galaxy S I9000 Android Development] Syntaxer:
Stratosk what you will use as ROM if CM will not have enable/disable swap feature? Or will someone compile CM without swap? :D I know stupid questions but I want to use your kernel no matter what :)

Btw thanks for the new update :)
[Galaxy S I9000 Android Development] stratosk:
Thanks so much for your help, my friend! I really appreciate this!

Thanks, my friend! :)

Maybe, I'm wrong, but I doubt that CM team will enable swap by default and don't have an option for it.

Honestly, I didn't think about it. I know that CM is the big player here. And some times I was 'forced' to implement features in Semaphore just for compatibility. Anyway, let's think about it, if it will happen. :)
[Galaxy S I9000 Android Development] Kees-Jan:
Or some others that are clones with their own features, like ParanoidAndroid ;)

btw. 2.4.4 for sure working with ParanoidAndroid! Great!

thanx, Stratos!
[Galaxy S I9000 Android Development] Icegon972:
Where can i download the hugemem patch please ?
[Galaxy S I9000 Android Development] Syntaxer:
http://xdaforums.com/showpost.php?p=30725734&postcount=61
[Galaxy S I9000 Android Development] Darkrabbit:
Sorry guys but in 2.4.4 deeple idle work properly? Thanks

Inviato dal mio GT-I9000 con Tapatalk 2
[Galaxy S I9000 Android Development] jv.batista:
stratosk, if I recall correctly the swap is to be used like ram when we run out of actual ram. and what is for the zram?
[Galaxy S I9000 Android Development] erpurohit:
Hope this helps:- http://en.wikipedia.org/wiki/ZRam
[Galaxy S I9000 Android Development] haseoxth:
In the newest nightly it says "Compress memory for increased virtual capacity"
[Galaxy S I9000 Android Development] xpc21:
Sorry my ignorance guys! But, im using latest CM10 nighlties and would like to proceed with this kernel, but im in doubt about this hugemem, should i install it or not? And what is the steps to install this kernel? Thanks!
[Galaxy S I9000 Android Development] stratosk:
If you install the normal version (not the 's' one), you should not install hugemem patch.
[Galaxy S I9000 Android Development] jv.batista:
http://xdaforums.com/showpost.php?p=33114614&postcount=9786

so, we can change the kernel without messing anything... as soon as I can I'll flash 2.4.4s...
[Galaxy S I9000 Android Development] stratosk:
Just as I thought... :)
[Galaxy S I9000 Android Development] xpc21:
stratosk, thanks for quick reply! But does hugemem, besides the more free ram avaiable, brings more better options? And sorry, but could find the steps on how to install this kernel? Thanks again!
[Galaxy S I9000 Android Development] stratosk:
No, hugemem patch (and kernel that supports it) brings only more available RAM. In some cases it breaks compatibility with some video formats (rare cases)

You can flash the zip through CWM, and tar file through Heimdall/ODIN.
[Galaxy S I9000 Android Development] xpc21:
stratosk, thanks again for your kinda attention! Do u use hugemem? To flash this through CWM, should i wipe, do any steps before?

Thanks again my friend!
[Galaxy S I9000 Android Development] Jimmy_X:
Has anyone tested 2.4.4 with Deep Idle ON?

Thanks for this amazing kernel!