yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] vitoski:
Guys can anyone confirm whether init.d script are working with v4.0?

I wrote a script that changes governor settings (pegasusq) and it works completely fine with Script Manager (I checked that three times). I put the script into system/etc/init.d directory. The script is named: 99governorAgr

I gave it approproate rights rwxr rx r

When I boot the phone and check what are the settings for governor with setcpu I see the values come from the kernel. When I manually launch the script with ScriptManager, the values change to what I have in the script.

Again if I restart the phone to let the governor settings change according to the script, nothing happens. I end up with rebooted phone and default kernel settings.

EDIT

Afaik it was working fine with 3.5.2 version - will check that to be sure.

EDIT 2

Wired... I went back to 3.5.2 and the script does not change the values as well.

Does anyone use script to change governor settings?
[Galaxy S II Original Android Development] WearTheFoxHat:
Fantastic. Thank you. That was my understanding, but I just wanted to confirm.
[Galaxy S II Original Android Development] CamoGeko:
No worries mate.

Have fun flashing. :cool:
[Galaxy S II Original Android Development] quijote1:
Mine is Deep Sleeping really well - as good or better than any previous Siyah kernel. Of course, I have mine set on Conservative. Very pleased!

Slim ICS 4.2

Siyah 4.0.1

XXLPX
[Galaxy S II Original Android Development] onua444:
Hi guys, one question, can i install rom from sammobile, this one:

I9100XWLPT_I9100NEELP4_NEE

and via odin flash siyah kernel 4.0.1 without cf-root?

steps i wanna make:

1. format everything

2. flash I9100XWLPT_I9100NEELP4_NEE via odin

3. flash syiah 4.0.1 via odin

?
[Galaxy S II Original Android Development] ciprianruse88:
yes u can.

boot into recovery,format data/factory reset,boot into download mode,connect phone to usb, flash xwlpt via odin,boot into recovery then flash syiah 4.0.1
[Galaxy S II Original Android Development] onua444:
How to boot into recovery if I don't have cf-root?

Послато са GT-I9100 користећи Тапаток 2
[Galaxy S II Original Android Development] gohan040:
Flash siyah also with odin.... download the .tar file

Sent from my GT-I9450
[Galaxy S II Original Android Development] nihilista:
http://xdaforums.com/forumdisplay.php?f=1056

http://xdaforums.com/showthread.php?t=1555259
[Galaxy S II Original Android Development] It_ler:
Although it is a little bit OT here:

You don't need to boot into recovery (press Volume UP + Home + Power buttons until recovery menu appears).

Just boot into download mode (Volume Down + Home + Power buttons and confirm with Volume UP) to flash the new ROM with Odin.
[Galaxy S II Original Android Development] domingoo:
How is battery life compared to cm9 default kernel?

Verstuurd van mijn GT-I9100 met Tapatalk
[Galaxy S II Original Android Development] CamoGeko:
More, if you know how to configure this kernel properly on your phone.
[Galaxy S II Original Android Development] domingoo:
What do you mean with configure? I know how to UV and stuff like that. I know extweaks, is this what you wanna make clear?
[Galaxy S II Original Android Development] raptor22:
I'm having battery drain from a wakelock called AudioOut_3 can someone help me out?
[Galaxy S II Original Android Development] monex12:
LED TIMEOUT DOESNT works on the new releasee of the kernel..HELP!!! how to fix it ???
[Galaxy S II Original Android Development] JohnBonchie:
Use the the freaking search button! This has been asked several times. Seriously?!?!
[Galaxy S II Original Android Development] Tungstwenty:
Is it a Kernel wake lock, or a Partial WL?

If its the latter, I don't think you need to bother with it. It corresponds to the time you have the phone playing sound. Suggestions like "turn off touch sound in keyboard" isn't very helpful. Sure, it might lower this value, but if you're using the keyboard the device is already not in deep sleep, right?

Unless you're talking about a KWL *and* the device wasn't playing any music when the screen was off, the values you might be seeing are really just an evidence of the time spend playing audio - and probably doing something else as well, so no big benefit of eliminating it apart from the energy to power the speaker.

Only if this is not the case, could it be a problem with the audio drivers.
[Galaxy S II Original Android Development] Manitax:
Nice battery and deep sleep with syiah 4.0 and pa 1.97. (2000 battery)

Tanks for this great kernel!

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Galaxy S II Original Android Development] raptor22:
It is a partial wakelock, however the value it shows in BBS increases as my phone is supposed to sleep and causes drain of 3% per hour.
[Galaxy S II Original Android Development] CamoGeko:
Use Siyah + my MagicConfig and you will be getting more battery life than on CM9 stock.

Sent from my HTC One X
[Galaxy S II Original Android Development] monex12:
men...the LED TIMEOUT doesnt work on the new release of the kernel...i read the previous post... anyone has this issue??? its on the latest release of the kernel..the option of the LED TIMEOUT doesnt work....i am on Resurrection remix with ice cream sandwich
[Galaxy S II Original Android Development] Tungstwenty:
Please don't post the same stuff on multiple threads.

You also posted this on the discussion thread (which is the right place, but after a search of course).
[Galaxy S II Original Android Development] JohnBonchie:
Why do i feel that im also at fault :/
[Galaxy S II Original Android Development] apk_xiz:
ooops got bug

ji OP today i flashed your siyah 4.0.1 kernel but i got around 10 frezzes like your siyah 3.xx beta and also please fix wifi keep getting on automaticaly . thanks :/
[Galaxy S II Original Android Development] lyndonguti:
10???? Really??

What is your settings in exteaks?? Be clear ..never had a single freez here...install the kernel with cleaning script
[Galaxy S II Original Android Development] apk_xiz:
my extweaks settings are all set to be default (i just changed cpu steps from 18 to 5 (which is samsung default) )

and what anout wifi anybody geting wifi keep switching on ??
[Galaxy S II Original Android Development] lyndonguti:
not having that problem too...if you still use ics rom..i suggest you to use siyah kernel old version before it start to support jb....u may not encounter problem there ....

sent from my lovely phone....hmmm wait its a tablet...waaa i dont really know.....im PARANOID NoW!
[Galaxy S II Original Android Development] apk_xiz:
you don't check signs do you ?
[Galaxy S II Original Android Development] lyndonguti:
ohhh you dont even see this sent from my lovely phone....hmmm wait its a tablet...waaa i dont really know.....im PARANOID NoW!

i was in tapatalk mate well soory for that.....anyway,,,the best thing for now is to back in old siyah ok? :)

to maintain siyah smoothness and stability in your device

have fun
[Galaxy S II Original Android Development] gsmdb:
You guys,

Is there anyone, who encounter boot probl. w. 4.0.1 build. I implemented this build in ROM and flashed it by CWM recovery. It didn't boot up (bypassed boot logo). Reverted back to beta1 no boot probl. at all.
[Galaxy S II Original Android Development] cybernetus:
I still using ics here and I don't have any problem with the wifi on paranoid android 1.6 ...
[Galaxy S II Original Android Development] hankhandsome:
i've got that as well. i've just unplugged at fully charged not 20 seconds ago and i still have it. i did have my music playing for a good hour or two this afternoon, but it's now 9:23pm and I haven't had it playing since about 2pm and the partial wakelock (which is what it is) is still there.

i'll check it again in a few hours to see how it's going.
[Galaxy S II Original Android Development] crypticc:
There is a wakelock for audio out caused by phone key touch vibration being enabled I read somewhere once.
[Galaxy S II Original Android Development] hankhandsome:
interesting - i do have that set. although i've just checked the phone and it's been in deep sleep since just after i posted and is still at 100% battery after an hour and 10 minutes. I think a "YAY!" is in order there :D

I'm on RR 3.0.2 and Siyah 4.0.1, for the record.
[Galaxy S II Original Android Development] minidou-77:
Come on everybody this is NOT the discussion thread so don't bother us with your battery life or anything else but DEVELOPMENT

Please
[Galaxy S II Original Android Development] Many40:
@gokhanmoral

We all know or should have known that our standard scalling frequency range is 200 MHz-1 200 MHz and not 200 000 MHz (200 GHz)-1 200 000 MHz (1 200 GHz) as ExTweaks app says. Probably nobody took care that in the app there is a mistake - should be kHz instead of MHz. Could you please cotrect it (SCALING_MAX_FREQ and SCALING_MIN_FREQ) by changing units or deleting 3 x zero just to be more precise for newbies? (Thanks to androidsgs2noob for remainding me this issue).
[Galaxy S II Original Android Development] FeuchtVonLipwig:
WTF MY PHONE NO GO INTO DEEPSLEEP WITH LATES siyah KERNAL 4.0.1 I GO BACK TO 2.122.rc5 (on iphone) ?!?!?

OMG I NEED HELP, i think i have KERNAL WAKELOCK FROM SCREEN OR SO, JUST L0OK AT PICTURE AND FIX IN NEXT VERSION :(

No honestly, on latest kernel everything is so super fine for me ;) , super responsive smooth animations, no problems with signals, good deepsleep and general battery consumption :good:
[Galaxy S II Original Android Development] yamen.meddeb:
Just select "battery" profile in recovery mode under "specific kernel settings"
[Galaxy S II Original Android Development] monex12:
anyone has issue with the LED TIMEOUT in extweaks????? it doesnt workk on the last release of the kernel....help please.
[Galaxy S II Original Android Development] pilgrim011:
Will somebody shoot this guy? Please? Anyone?
[Galaxy S II Original Android Development] alex__sp:
This is probably been asked sorry but

what is my magic config? I've never heard of that

EDIT:Just found the thread sorry

Just give me the rifle and I'll do it,and while I'm shooting I'll shout to him SEARCH BEFORE POSTING!!!
[Galaxy S II Original Android Development] Crescendo Xenomorph:
please leave non-dev related posts here: http://xdaforums.com/showthread.php?t=1658647

Clear already? Or need some more blink blink? :D
[Galaxy S II Original Android Development] P.x.:
Kernel v.4.0 + MIUI 2.8.3

Phone hangs up on stock camera app launch.

However, non-stock camera apps work fine. Any ideas how to fix it?
[Galaxy S II Original Android Development] Tungstwenty:
Please post this on the Siyah kernel discussion thread instead.

This thread is only for development discussion.

(do you guys agree this could be a standard answer for all non-dev questions, as-is, in order to progressively reduce the usage discussions here? I also tend to respond to questions wherever they're posted and it doesn't help enforce the separation... I'm also going to update my sig to point to the discussion thread instead)
[Galaxy S II Original Android Development] MistahBungle:
Nice thought, but people will only do it (post 90% of stuff to the discussion thread like they should) for a while, then you'll see people posting all manner of crap in here again. It's happened every single time. Only thing that makes (a little bit of/for a while) a difference is zero tolerance moderation & a few people who are constant/repeat offenders getting slapped. That worked better than anything else in the past, but like everything else only worked temporarily.

Might as well save your breath/fingers.
[Galaxy S II Original Android Development] tlf55:
With 4.0.1 PegasusQ my phone don't go under 500mhz .. Before with 3.5.2 it was most of the time 200mhz .. So 4.0.1 is eatin more battery by staying at more high frequence ?
[Galaxy S II Original Android Development] CamoGeko:
Its been made more aggressive in the latest version, use Ondemand instead.

Check my MagicConfig link for UV settings.
[Galaxy S II Original Android Development] tlf55:
Thanks !

---------- Post added at 03:13 PM ---------- Previous post was at 03:06 PM ----------

One more thing .. Does Ondemand use hotplug ? I mean turn off second core when it's not needed ? as PegasusQ use it ..
[Galaxy S II Original Android Development] CamoGeko:
Yes, if you don't turn off any cores yourself using Core Control or something.
[Galaxy S II Original Android Development] Tungstwenty:
Not if a handful of people start using a standard response (that or any other in the same spirit) and NOT reply here at all. It this goes on for a while, even newcomers might see that this thread is low activity and the majority of posts are immediately redirected to the other thread and no answers exist here at all for the stuff they're asking.

Slapping / zero-tolerance moderation won't help much since newcomers will not be aware of it, and frequent followers will easily acquire the habit of going to the discussion thread.

I for one will start doing it like this if I happen to be the first one spotting a post which didn't yet have a redirect nor an answer.
[Galaxy S II Original Android Development] gokhanmoral:
I have uploaded v4.1alpha1 to http://d-h.st/users/siyah/testing

why alpha? because I did not test recovery fully... recovery is CWM-based v6.0.1.1

changes:

v4.1alpha1 should fix led timeout issue that some people had in some roms. I introduced another level for led_timeout_ms and it is "use rom defaults" if set to -1. Use that option in ExTweaks if you are using ROM settings for led timeout.

I have also removed the delay in fbsuspend, so please do not complain about crt animation not playing when you turn the screen off.

pegasusq is just a little less agressive.

Linux 3.0.39

even if you don't want to use the alpha version, just test it if you have led issues. it will not erase/delete anything or cause any problems.
[Galaxy S II Original Android Development] robertobsc:
Thx vry much gokhan. Flashing right now!

Enviado de meu GT-I9100 usando o Tapatalk 2
[Galaxy S II Original Android Development] Markox89:
GM, please, can you tell me where this parameter is? So, if I feel better with, I can reintroduce it :)
[Galaxy S II Original Android Development] PedroMRP:
On extweaks when setting led timeout to "use rom defaults" the toast message say "sh: write error. Operation not permited". This happens on cm9 not tested in other roms.
[Galaxy S II Original Android Development] gokhanmoral:
oops, my bad.. I will fix that write error but it was supposed to have no effect anyway, so keeping it "use rom defaults" will not change any timeout value.

just ignore that error for now. it should work as expected even though it gives you an error.
[Galaxy S II Original Android Development] gokhanmoral:
unfortunately it is hardcoded in the kernel code and I removed it.

I will try to find another way to fix that crt off animation problem, if I can.
[Galaxy S II Original Android Development] illuminato 67:
- CM10 (08/08) + Siyah kernel 4.1 alpha1

Thanks a lot Gokhan

CRT animation works now very well

Led timeout: setting same timeout on ExTweaks and on ROM, now work!
[Galaxy S II Original Android Development] Alkymia:
i'm also having problems with ur latest version (not alpha) keeps my phone on 500Mhz never less, its just about governor? i set it ondemand and should work fine?
[Galaxy S II Original Android Development] PedroMRP:
Just to report that besides that error, led timeout is working as it was in the previous version on cm9 but when the brightness changes the led still light up... still didn't the recovery.
[Galaxy S II Original Android Development] cardozclive:
+1
[Galaxy S II Original Android Development] Gotcha007:
Running CM10 with Siyah 4,1 alpha1 and for the moment it's working perfectly.

CRT is working great and indeed better than before !

Thanks man !:good:
[Galaxy S II Original Android Development] deniso177:
Led_timeout doesnt get saved for me in ext tweaks, and its back to 0 after reboot, even going into data/.siyah and manually changing the led_timeout to 3000 doesnt work, it doesnt seem to change that. Using performance profile. Every other change gets changed in the profile, but not led_timeout.
[Galaxy S II Original Android Development] PedroMRP:
Regarding recovery so far the progress bar is broken when flashing but its fine when doing a backup. No problem wiping cache and dalvik.
[Galaxy S II Original Android Development] illuminato 67:
CMX 08/08 - Siyah 4.1a1

On reboot my S2 work at 1200 MHz (my max freq) for 20 min (ExTweaks default, pegasusq/cfq).

Only after went to deep slep.

Is a normal behavior?:confused:
[Galaxy S II Original Android Development] gokhanmoral:
I forgot to change the name of the setting to led_timeout_ms in v4.0.1

it should be fixed in v4.1alpha1

I will test led on brightness problem tonight
[Galaxy S II Original Android Development] timberwolf60:
Just installed Siyah 4.1a1 over dream kernel 2.6.9. Restored back my 2nd rom under dual boot option no problem, now I can set led time out under extweats both rom as below. Sleep good on my first rom and 2nd rom with freezed rom control. Thank GM.

Send via my GT I9100 using Tapatalk2, 1st ROM RR 2.6.1, 2nd ROM RR JB V3.0.2 with Siyah kernel 4.1 a1
[Galaxy S II Original Android Development] rearbackxperia:
I just installed SiyahKernel S2-v4.0.1 on sammy rom IML74K,UHLPE , and when i call im xperimenting so many drop calls... constantly!!!! why??? that didnt happen on SiyahKernel S2-v3.5.2:(:(:(:(:(:(:(:(
[Galaxy S II Original Android Development] t00dy:
Please post this on the Siyah kernel discussion thread instead.

This thread is only for development discussion.
[Galaxy S II Original Android Development] tdamas:
Touchscreen frequency

How can I add via extweaks interface an option to change touchscreen frequency, using kmemhelper?
[Galaxy S II Original Android Development] CamoGeko:
Change to Ondemand and try again.
[Galaxy S II Original Android Development] t00dy:
PLEASE, take a look at one post above yours:

Please post this on the Siyah kernel discussion thread instead.

This thread is only for development discussion.
[Galaxy S II Original Android Development] Tungstwenty:
Actually, this could be a dev question, right? :D

tdamas, are you asking what scripts to run to change the frequency? Or how to change the initram files to compile a kernel image where new options will appear on ExTweaks?
[Galaxy S II Original Android Development] yahyoh:
r u kidding about crt or trolling :eek::eek:
[Galaxy S II Original Android Development] tdamas:
I already know how to change frequency via kmemhelper. I want to know how change via initram files, xml files etc etc, to option appear on extweaks.
[Galaxy S II Original Android Development] carlos67:
Actually, I too have been wanting to be able to set touchscreen frequency via script.

At the moment(using pegasusq) my cpu jumps to 500Mhz when screen is touched but I want to change this to 800mHz (for better smoothness).

I just need to know which governor parameter to echo 800 to.

Anybody? Apologies if this should be posted elsewhere.

@Tungstwenty, perhaps you know this?
[Galaxy S II Original Android Development] Tungstwenty:
Look in res/customconfig/customconfig.xml.

That's the definition of all the options and the available values, and the action to perform to apply each of them.

Perhaps the closest thing to the one you want could be the spinner for "Smooth Scaling Level", look at that example or some others if that's not what you need.

If this isn't good enough, you might need to create an additional script under actions and reference it in your xml entry.

Once you have the new parameter, don't forget to edit the *.profile files and add an entry for it in all of them, with the appropriate value. IIRC, if it isn't present in the file, it will no be applied even if you edit in the app and press apply.
[Galaxy S II Original Android Development] Gotcha007:
To be honest I'm not kidding. I have now the CRT animation every time I put the phone in standby.

It's true that I don't have it when I wake it up.

What improved for me it's the fact that before when I woke up the phone and then put it again in standby without unlocking it I had a screen flickering and not the CRT animation. Now it's solved.
[Galaxy S II Original Android Development] bkjugg:
Hello, Gokhan! Will you add GPU overclocking over 400 MHz in 4.1? Thanks.
[Galaxy S II Original Android Development] yahyoh:
maybe u have super phone that we haven't :rolleyes:

cuz changelog said will be no crt :p and i don't have crt here on 4.1 a1 :D

edit : WTF now its working O_O

lol the magic is if u look the screen from home it will not work but if wake up the phone and stay at look screen then u turn off the screen it will work :)
[Galaxy S II Original Android Development] johnbeetee:
Yo...Carlos.. :)

Actually it's a tad bit more complex than just echo'ing a value ; you need to get this into a script for touch freq 800 ( level 8 ):

LVL=`cat /proc/kallsyms|grep " level\."|awk '{print $3}'`;kmemhelper -n $LVL -t int 8

To get it back to 500 (level 11)

LVL=`cat /proc/kallsyms|grep " level\."|awk '{print $3}'`;kmemhelper -n $LVL -t int 11
[Galaxy S II Original Android Development] Muchoaliento:
Hi John,

DId this per your post regarding pegasush tweaking and the output was just a numeric value before the ";kmemhelper -n..." part.

Included this line (and others) in a script, tossed it to init.d folder with rwxr-xr-x permission and tested with Script Mgr app which gave me the beforementioned output.

Rest of the script is executed correctly...but only if I run in through SM app, it does not work upon rebooting.

CM10 with Siyah 4B3 version

EDIT: I meant that after executing the script through SM it printed the same line as above but replacing the part before ";kmemhelper -n..." with a numeric value. Is this expected behaviour ?
[Galaxy S II Original Android Development] tdamas:
Touchscreen frequency

Ok, did it!

I added a option to set touchscreen frequency to the minimum scaling frequency

https://docs.google.com/open?id=0BwVQSIUBy0yhOTd0aERYbnBJRGM
[Galaxy S II Original Android Development] Crussader:
Hate to make such an absurd request but... Can you please add "reboot to second rom"... Maybe in dual-boot settings?

Thanks in advance
[Galaxy S II Original Android Development] Muchoaliento:
Could you please explain how to apply this option to my Extweaks ?
[Galaxy S II Original Android Development] johnbeetee:
This command sequence needs to applied as a whole meaning: the output of the first part is used in the second part. The first part asigns a value to LVL which is the correct variable name (symbol) containing the value that needs to be set. The second part sets the value direct in the right memory location.

This is the only way to set this parameter, as there is otherwise no exposed interface for it.

Setting values in init.d scripts may or may not succeed, because depending on downstream actions, they may be overwritten.

So if it is not applied according to your expectations, you'll need to apply it in a later stage after booting. As far as I know Script manager app has this capability (to apply after boot).

I use Tasker app for this ( in an after boot stage).

answer to edit: normally this should not be the case ; had this comment a few times before, but this is probably because you're using a windows editor to make your scripts, and this saves the file in a windows text format ( with lines ending with CRLF character) unlike linux convention (LF).

For editing I use notepad++, under windows.
[Galaxy S II Original Android Development] Gotcha007:
I probably have a super phone because for me it's working from home and from lock :D
[Galaxy S II Original Android Development] michyprima:
@gokhan theres any reason why with your sources and cyanogenmod initramfs the phone would not boot?
[Galaxy S II Original Android Development] tdamas:
You have to alter the files in /res/customconfig (just replace with the files in zipfile, and correct the permissions) to the option appear in extweaks.
[Galaxy S II Original Android Development] markjh:
I'm running Paranoid 1.97a with 4.1a1 and everything runs great! Even the Crt-off runs every time!

Thanks for this great Kernel :D:)