yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] gokhanmoral:
you are right.

if I do not launch setcpu until the media scan completes the freq. doesn't change...

damn :) I have been testing this for an hour and I launch setcpu as soon as my device boots up.

again, I've learned that patience is a virtue :)

so, there is nothing to fix.

just set the permissions to readonly and do not launch setcpu or anything else which restores the permissions on the device file.

make sure that you have this line in the script after setting the frequency:

chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
[Galaxy S II Original Android Development] kwerdenker:
Just tested this myself and can confirm. I know there was something why I put this line in the script, just couldn't remeber why ^^ Seems like SetCPU was

responsible for that :rolleyes:
[Galaxy S II Original Android Development] jdmcivic:
update.

for o/c daemon users. i changed the permissions for virtuous_oc in xbin and setting clock speed works now.
[Galaxy S II Original Android Development] jmblazquezh:
I quote myself. Problem solved installing superuser from market...:):):)

Regards.
[Galaxy S II Original Android Development] jackiechan8:
May I suggest an update to CWM recovery for the next version? :)

http://xdaforums.com/showthread.php?t=1118693
[Galaxy S II Original Android Development] alcurtis93:
Twitchy/ Stuttery

Is it just me or is this kernel quite twitchy when used with go launcher ex or launcher pro when there's a homescreen transition animation. I find the best governor to stop this is conservative of all governors ha.
[Galaxy S II Original Android Development] gokhanmoral:
I was about to forget it :)

done.
[Galaxy S II Original Android Development] tonysac:
+1 for adw ex..

Sent from Galaxy!
[Galaxy S II Original Android Development] AndreiLux:
Wasn't your smartassV2 supposed to have a screen-off max freq of 500?
[Galaxy S II Original Android Development] gokhanmoral:
no. it has no limitation for max freq.

it just tends to scale down to 100MHz very fast and scale up very slowly when the screen is off.

ondemandx and interactivex have screen-off max frequency of 500MHz.
[Galaxy S II Original Android Development] Mayday_XL:
Where is the Dl-Link for the 1.78RC1 ?
[Galaxy S II Original Android Development] mihapodb:
What is the problem with init.d scripts?

Overclock and undervolt not working :/ I do not have any OC program except Daemon O/C. Mine SGS with Siyah 1.7.8 b5 is working only at 200-1200 instead of 100-1600.

98overclock:

#!/system/bin/sh

checkgov=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | grep smartassV2 -)

echo "Setting scaling_max_freq to 1600mhz"
echo 1600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "Setting scaling_min_freq to 100mhz"
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "Setting governor to smartassV2 (if available)"
if [[ -n "$checkgov" ]]; then
echo "smartassV2 found"
echo smartassV2 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
else
echo "smartassV2 not found, using standard governor"
fi

96undervolt

#!/system/bin/sh

#customize voltages to you values
#All Steps in MHz
#Steps are: 1400 1200 1000 800 500 200
NORMAL_STEPS="1250 1150 1050 950 875 850"
#Added Step is for 1600mhz
HIGHER_STEP="1375"
#Added Step is for: 100mhz
LOWER_STEP="800"

#Checking stuff
checkfreq1600=$(grep '1600mhz' /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table)
checkfreq100=$(grep '100mhz' /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table)

if [[ -z "$checkfreq1600" ]]; then
echo "No 1600mhz stepping found -> using 6 steps voltages"
echo $NORMAL_STEPS > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
else
if [[ -n "$checkfreq1600" ]]; then
echo "1600mhz max stepping found"
if [[ -n "$checkfreq100" ]]; then
echo "100mhz min stepping found -> using 8 steps voltages"
echo $HIGHER_STEP" "$NORMAL_STEPS" "$LOWER_STEP > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
else
echo "No 100mhz min stepping found -> using 7 steps voltages"
echo $HIGHER_STEP" "$NORMAL_STEPS > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
fi
fi
fi
[Galaxy S II Original Android Development] moepkid:
hey all,

do i get good battery life with this kernel if i don't do anything about it and just install? i don't want to overclock or something like that so...
[Galaxy S II Original Android Development] AndreiLux:
Do SetCPU profiles not work then? I'm setting it up to limit itself to 500MHz with smartass, doesn't work. I set it up to use ondemandx, and it still goes up to 800MHz.
[Galaxy S II Original Android Development] gokhanmoral:
you have, lets say 100-1200 smartassv2 and setcpu screenoff profile 100-500 smartassv2?

how do you test if it goes above 500mhz when the screen is off?
[Galaxy S II Original Android Development] gokhanmoral:
v1.7.8rc1 is up.
[Galaxy S II Original Android Development] Crescendo Xenomorph:
Thanks anyway but still no luck. The settings still stuck at 1600 for max speed. :confused:
[Galaxy S II Original Android Development] kilian7th:
Thanks lol I thought siyah worked on many samsung models... don't know why ...
[Galaxy S II Original Android Development] K Rich:
Thanks GoKhan, 2.6.12 has everything beastly about it, and great battery life to back it up!! This kernel is a keeper.
[Galaxy S II Original Android Development] EnemyOfGlaDOS:
Hey Gokhanmoral, I mentioned this in the i777 thread but the storage mounts are backwards in recovery.. I found out the hard way by formating what I thought was the SD card... turned out to be emmc .. formatted emmc and it formatted my SD card. Just lettin you know mate..
[Galaxy S II Original Android Development] KcDaRookie:
Do you have any other init.d scripts loading up, if so are you sure none of interfere with the uc/uv part? (You can just upload them on pastebin.de and provide the link)

If you don't have any other scripts make one only containing these lines:

#!/system/bin/sh

echo "1550 1350 1150 1000 800 500 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/freq_table

After bootup check with VoltageControl/SetCPU/etc. or just follow the path with any root explorer (e.g. EFS File Manager) and check if the frequency tables are set to these values.
[Galaxy S II Original Android Development] omniwolf:
Thanks for 2.6.12 gok. I had no SODs with 2.6.9, i'll try out .12 and see how it goes. i noticed in the first post it says:

is this still true? I've been using a 2.3.6 ROM (checkROM v4) for a while now, and apart from my SODs, i haven't noticed any issue. even the ROM i believe you run (gingermod?) is 2.3.6 i believe..
[Galaxy S II Original Android Development] c19932:
hey guys, I did a search about this issue but couldn't find a solution. WOuld be nice if someone could help me out.

I am currently on CM7, using siyahkernel 2.6.4. Everything works fine except autobrightness.

So I tried to flash a newer version of the kernel. I tried 2.6.8 and 2.6.12 (latest), but both led to my phone getting stuck at the samsung splash screen (with yellow triangle).

I find that very weird because 2.6.4 works, but newer versions dont :confused:

any help is appreciated. Thank you.
[Galaxy S II Original Android Development] msgfromside3:
This is quite common, not by intention.
[Galaxy S II Original Android Development] msgfromside3:
Just reporting that I am experiencing weaker wifi with 12 than 11 and just wondering if anyone else experience it. It seems wifi always goes weak then it gets a bit stronger. I am using i777 miui and kh7 modem.
[Galaxy S II Original Android Development] marioh:
The .12 seems good. Battery life looks higer than .11 but lower than .9. With .9 in airplane mode my phone drains 2% in 8 hours. With .12 it has drained 5%. However this is only the first charge after kernel flash, and, as we know, the kernel needs to settle.

Inviato dal mio GT-I9100 usando Tapatalk
[Galaxy S II Original Android Development] mekhonte:
first charge with 2.6.12

3% in 6 h on gsm same as 2.6.11

2% in 6 h on gsm 2.6.9
[Galaxy S II Original Android Development] dica:
Yes happened to me yesterday, with ki3 but it takes few seconds

Did you try wiping cash and dalvik after flashing?
[Galaxy S II Original Android Development] :
+1, initial feeling is impressive! Moreover syiah boots so fast...it's amazing!!

Sent from my SGS2 - Hyperdroid v5.2 | Vertumus ICS Theme |
[Galaxy S II Original Android Development] MistahBungle:
Good job with .12 Gokhan ;) Haven't tested it overnight or with heavy usage yet, but it's been sitting next to me idling most of the afternoon & seems to be spending a few % more deep sleeping.

Will try it out over the next few days.

.11 was probably slightly worse battery-wise for me with heavy usage, a couple of % more battery used over 5 hrs (constant playing of music, some calls, an hour online, an hour of games, other stuff) with say 3 hrs screen on time, but nothing major like some people reported.

Really looking forward to .13 given how well .12 is going so far :)
[Galaxy S II Original Android Development] UpInTheAir:
Must agree with MistaBungle.

Similar results so far. Seems to idle/sleep nicely with either 3g or wifi on etc.

Using Geko's UV and modified Andrei 3-step GPU (slightly increased freq/voltage) setup. SIO/smartassV2.

No SOD or lags etc.
[Galaxy S II Original Android Development] Crescendo Xenomorph:
Hmmm, I'm using Siyah init.d script generator. And those script I pasted before were from that generator. Before using Siyah, I was using LulzKernel and Tegrak Overclock Ultimate handle all those things. But since it (TegrakOC) can't control Siyah, so I disabled that program.

I only got that script and named S98Siyah and another Supercharger script named S99Supercharger.

Pastebin link for download.

#!/system/bin/sh

echo "1204 1152 1100 1000 800 500 200 100" > /sys/devices/system/cpu/cpu0/cpufreq/freq_table
echo 100000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1204000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1200 1175 1150 1100 1000 900 875 850" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

echo lulzactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "100 160 267" > /sys/class/misc/gpu_clock_control/gpu_control
echo "850000 900000 1000000" > /sys/class/misc/gpu_voltage_control/gpu_control

echo "0 0 0 1 1 2 2 2" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static
echo enabled > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static

echo 3 > /sys/module/cpuidle/parameters/enable_mask

echo bfq > /sys/block/mmcblk0/queue/scheduler

echo 35 > /sys/module/pm_hotplug/parameters/loadl
echo 90 > /sys/module/pm_hotplug/parameters/loadh
echo 60 > /sys/module/pm_hotplug/parameters/loadl_scroff
echo 90 > /sys/module/pm_hotplug/parameters/loadh_scroff

echo 2 > /sys/devices/system/cpu/sched_mc_power_savings

I tried to echo in terminal (Script Manager) manually but Voltage Control, SetCPU, and ZDeviceTest reported max speed is 1600 and voltage is 1200mV@1600Mhz which make my S2 hang in 30secs after reboot.

I also tried to echo those lines via ADB but it still won't stick. I also checked in /sys/devices/system/cpu/.../ all values still the original Siyah for the CPU freq table and min/max freq. :confused:

All values provided in script is echoed perfectly except the CPU speed. :confused: I even waited for 10 minutes (after removing the voltage line otherwise it'll hang because the voltage is too low for such speed) after boot to check, still the same original value. :confused:

Do I need to provide dmesg/logcat to help you to diagnose?

Thank you very much for helping me...
[Galaxy S II Original Android Development] c19932:
yup i did. =[[
[Galaxy S II Original Android Development] OrangePL:
Hm, weird bug in .12 - it seems the CRT off animation (provided via JKay mod) will not be played most of the times (I did notice it once since flashing this morning).

Nothing else was changed in the config(s) so I presume this is kernel related somehow.

Not a big deal though.
[Galaxy S II Original Android Development] voncrane:
As you can see from my signature, I'm running CM nightlies on my device with latest Siyah kernel... i'd advise you to re-download the zip file, wipe cache & dalvik b4 installing Siyah and if that still doesn't work. Then, use titanium app to make a backup of only user apps & data, perform a full wipe, flash stock, wipe again and then flash latest CM7 kang (can give u a link if u don't have one), allow d device to boot then restart into recovery & wipe again, try flashing siyah kernel then..

Kinda a long process but worth a shot.
[Galaxy S II Original Android Development] AlexMagik:
works just fine here.
[Galaxy S II Original Android Development] mefistofelis:
For me it always works fine
[Galaxy S II Original Android Development] CamoGeko:
This is not kernel related. CRT off effect is simply a graphical mod, must be something you changed within your ROM that has interfered with the animation. :)
[Galaxy S II Original Android Development] ozzyita:
Hi can someone explain to me these wakelock?
[Galaxy S II Original Android Development] Saisuay:
Just flashed 6.12, when charging i got msg: Battery disconnected. Unplug charger and retry, work again for 2min and then same msg appear. have to turn off phone and charge?

No script, no VC, everything on default.

Wipe everything before and after flashing(Cache,davilk,battery stats)

p/s: cannot charge at all!
[Galaxy S II Original Android Development] AJ.Rockwell:
Hello, it's skype and google talk eating up your application wakelocks - either log out every time you don't need to use them or freeze them with titanium backup.

As for kernel wakelocks, see here : https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/svnet-dormancy
[Galaxy S II Original Android Development] Entropy512:
I can explain it easily - Skype sucks and this is a perfect example of why. It's using cell data (svnet-dormancy) way too often. Discussion of apps draining your battery doesn't belong in a kernel thread though.

I disagree with A.J. Rockwell on GTalk's contribution to the problem - GTalk is rarely problematic wakelock/drain wise - but Skype sucks.
[Galaxy S II Original Android Development] CamoGeko:
+1 on Skype sucking.

As far as I know, there are a few alternatives on the market. Just have a look around. :)
[Galaxy S II Original Android Development] ozzyita:
Infact I've never used gtalk. Thanks for the information and sorry for the wrong thread. ;)
[Galaxy S II Original Android Development] AJ.Rockwell:
I know it is a miniscule wakelock but I wanted to clear out to the guy what is causing the two "biggest" wakelocks in his device ;)

ah anyways, let's keep this thread back on topic

CheckROM v5 + v 2.6.12 + thunderbolt is smooth as butter, still waiting the kernel to settle for a few days, but very happy as usual ^^
[Galaxy S II Original Android Development] OrangePL:
It may not be directly related i.e. new kernel "breaks" the animation, but rather some part of new code (wild guess - like screen off settings) are responsible.

It's a simple implication process: CRT-off works fine > kernel flash > doesn't work so no, it's not something I've done.
[Galaxy S II Original Android Development] cheewaca:
This version 2.6.12 is simply awesome. The best of all in terms of performance and BT runs perfect.

Thank you Gokhan

XWKL1 Deodex stock rom and XXKI4 modem.
[Galaxy S II Original Android Development] AJ.Rockwell:
If you are using JKay's deluxe settings to apply the CRT effect, did you try reflashing it / resetting and reapplying the settings?
[Galaxy S II Original Android Development] NoOneCanHelpMe:
Uninstall skype and install again, that fixed my skype wakelock as for gtalk, I have frozen it and still shows in betterbatstats. Dunno why but It doesnt cause a problem for sure :)
[Galaxy S II Original Android Development] tolis626:
Gokhan,after many(more than 10) hours of having wifi on,I can happily report that wlan_rx_wakelock(or whatever it was :p ) didn't even show up in BBS.There were 8-9 minutes of deleted wakelocks,but nothing too serious.Plus,it drained some 6-7% overnight with wifi on,so standby drain is actually more than good.I also noticed smaller drain while actually using the device,but that could as well be placebo.

All in all,.12 is more than a-okay. ;)

If you wiped dalvik cache,then that's the problem.Sometimes,if not always,JKay deluxe doesn't apply settings at the first reboot after a dalvik cache wipe.Go to the Deluxe Settings app and disable and reenable a random option,preferably the CRT-off one.It should be alright.
[Galaxy S II Original Android Development] dylanprins:
can you tell me how to use the thunderbolt script?

i dont get the tutorial in the thread of pikachu01...
[Galaxy S II Original Android Development] AJ.Rockwell:
mkay,

1) enter CWM recovery

2) enter mounts menu and make sure that /system /data and /sdcard is mounted

3) install zip from sdcard -> script zip

4) reboot

enjoy, you are now scripted :)
[Galaxy S II Original Android Development] veyka:
Thats not the Gtalk wakelock, its the C2DM/other market services wakelock, its also called gtalk (As in talking to google ya know).

But looking at those pics, its not a problem.
[Galaxy S II Original Android Development] AJ.Rockwell:
Oh okay, now I see what THEY did there! Thanks for the explanation mate!! :)
[Galaxy S II Original Android Development] OrangePL:
Didn't cut it.
[Galaxy S II Original Android Development] ozzyita:
I rebooted my phone and battery whent down, I'm on v12. Also camera has got a red round tint in the middle. Any ideas.
[Galaxy S II Original Android Development] veyka:
The sudden drop is due to the fuel gauge chip getting confused, this is normal, give it a bit to sort itself out, it may even "charge" itself if its overcorrected.

Red camera tint is a camera firmware issue and has nothing todo with the kernel.
[Galaxy S II Original Android Development] ozzyita:
I've only noticed the tint today, I've got the Gs2 since last april:eek:
[Galaxy S II Original Android Development] CamoGeko:
I think this is now going off-topic.....

Try asking in thread of the ROM you're using, also if you do return here with those kind of questions (CRT-effect doesn't work, etc..) it would be helpful to post your current setup so it's easier for other to help you.
[Galaxy S II Original Android Development] atua:
What is the purpose of having three steps (1100, 1152, 1204) that are so close in frequency? Also I remember having to use this hack:

chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

after setting the scaling_max_freq. For some reason, my max frequency value kept getting overridden even though I only had one init.d script running.

It'll certainly hang at 1600@1200mV. Try 1425mV.
[Galaxy S II Original Android Development] s2dh:
mkay,

1) enter CWM recovery

2) enter mounts menu and make sure that /system /data and /sdcard is mounted

3) install zip from sdcard -> script zip

4) reboot

enjoy, you are now scripted ￼

I have followed this and updated to .12, so I should be scripted -

What does this mean/do?

Now what :)
[Galaxy S II Original Android Development] lutanica:
If you're on CM7 nightly ROM, then it's a known issue. Sometimes the animation works and sometime after a reboot or two, the animation goes bad. It doesn't have anything to do with the kernel.
[Galaxy S II Original Android Development] KcDaRookie:
The pastebin link was for not having to post the long scripts in your post but only provide a link ^^

Hmm.. did this work on earlier versions of the kernel?

Did you try reflashing the kernel?
[Galaxy S II Original Android Development] PhilAd:
hi,

checked out your kernel again and hoped that the BT HID Fix would also contain my BT usage. BT sadly still disconnects. had to switch back to cm7 stock kernel again because i need bt.

thanks for your work so far. maybe there will be a fix one day :-)

maybe it is possible to get the fix from the cyanogenmod team? because the same issue has been in their stock kernel until mid/end november

greets

PhilAd
[Galaxy S II Original Android Development] mekhonte:
I hate Siyah kernel!!!!!!

it boots too fast that I can't enjoy my razrr boot animation :p:p
[Galaxy S II Original Android Development] marcosxd:
sometimes my phone goes off with .12 ... just happened when I received a whatsapp notification... this has happened me twice since last night (last night's wasn't due a whatsapp notif, it just turned off)... anyone with the same problem?

EDIT: this was coming from .11
[Galaxy S II Original Android Development] singingshiver:
Same thing happened to me today when I had email notification. Back to 2.6.7 for me
[Galaxy S II Original Android Development] poochewer:
1% in 8 h on gsm 2.4.2 :)
[Galaxy S II Original Android Development] mekhonte:
I got one of them!

I don't know I had notification or not. wifi was on and I left it on my desk when I came back it was turned off!

Now you rule!;-)
[Galaxy S II Original Android Development] veyka:
How about posting a last_kmsg? (make sure to shut down the phone/reboot with the power button)
[Galaxy S II Original Android Development] marcosxd:
I don't know if this helps because when it rebooted, I turned it off and on and grab the kmsg after 30 mins or so :/ if this happens again I will make sure to grab one fresh
[Galaxy S II Original Android Development] xsycox:
I cannot watch videos anymore. Incorrect data it is saying. I did not have that before .12. :(
[Galaxy S II Original Android Development] cmd512:
Youtube and local copy of District 9 all working flawlessly here, user error?
[Galaxy S II Original Android Development] xsycox:
Say what you want, I reflashed an older version, 2.16.09, and now local video is running fine ... and I do not believe in coincidences (or god *g*).
[Galaxy S II Original Android Development] cmd512:
Well, then at least we can agree on 1 thing. :D
[Galaxy S II Original Android Development] veyka:
last_kmsg stays until you reboot again.

On the terminal:

su

cat /proc/last_kmsg > /mnt/sdcard/last_kmsg

Do this after rebooting using the power button after a SoD or kernel crash, or anything else which causes the phone to reboot to the boot logo (not boot animation, that's more than likely a rom issue).
[Galaxy S II Original Android Development] legendasboy:
Well i had a sod, first with .11 ill put my kmsg

had to zip it to upload it here
[Galaxy S II Original Android Development] omniwolf:
last night went to bed with my phone at about 65% battery, i was woken up 8 hours later with my phone telling me i had 5% battery left.

im my sleep haze i checked BBS, and i had about 6 hours worth of WLAN_WAKE_RX (or whatever that wifi rx wakelock is). as i wanted to go back to sleep i turned wifi off and put the phone down. maybe 5 mins later i turned it on again to double check the wakelock, and now there was no wlan_wake_rx wakelock, but there was about 6 hours of deleted_wakelocks.

i'm not sure if it was actually the deleted_wakelock the whole time and i misread it the first time, but i'm pretty sure it was the wifi one. can this happen? - wifi wakelocks renamed to deleted wakelocks when you turn wifi off?

either way, i got major wlan_rx wakelocks last night with wifi on and kernel version 2.6.12 :(