yashsingh1/xdaforums huggingface dataset:
[Streak 5 Android Development] TiGuy82:
_nop_,

Most of my freezes/reboots were fixed by changing the Kernel! Thanks for the advice.

Regards
[Streak 5 Android Development] _n0p_:
Thats good :D Are you sure you didn't mean the kernel?
[Streak 5 Android Development] TiGuy82:
Sure I wanted to say "Kernel" eheh! I fixed the last post! :D
[Streak 5 Android Development] _n0p_:
Phoenix test kernel.

Yes, again :)

--

I found that i actually build wrong steps in frequency table, so it was like when you set 998400 - you actually set 1075200 and so on.

Sorry.

Therefore i fixed this and changed VDD a bit.

--

Also - i propose 128000 as minimum and 998400 as maximum.

To reduce lag - 50% freq step for conservative.

--

http://n0p.8bit.fm/streak/DSC_Phoenix_Test.zip

--

@Dude_Virus:

I think setting

echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

(or bigger)

might have a positive effect on WiFi freezes for you.

This is not kernel dependent, so you might check it on Mugen kernel.

You could also try disabling all tweaks to do a fair test - remove

#streakOwner's tweaks, revised 2

section from init.streak.post_boot.sh

--

@Everyone:

I'd like to get a test on this kernel in this manner:

Set performance qovernor. Set high frequency from 998400 to 1344000 step by step, running a benchmark on each frequncy several times to test stability. Thank you.
[Streak 5 Android Development] djmax81:
cheers @ Nop +team.!!!

Hey .!!! thanx Nop +team i was looking for this patch ehhee now lets work it out ICS porting gather ....coz we Love Dellstreak 5 is't it .???

(peace)
[Streak 5 Android Development] _n0p_:
hPa stated that Phonix kernel is enough to make CM9/ICS working.

But it requires extensive testing and I need my Streak working (now it's my only phone).

I mean we need to get hPa back somehow :)
[Streak 5 Android Development] djmax81:
for sure NoP

For sure N0p think we did enough R and D soon gonna ...fair run ICS :)
[Streak 5 Android Development] sinan33:
@ Sergei

I have tested phoenix kernels many times with the value of wifi supplicant 15,and i have never met an wifi issue at this value.
[Streak 5 Android Development] ivantastic:
@sergei

will be my fun pleassure to try your newest kernel.. ;)

may i know why "performance"? i mean not "ondemand"?

@streakowner

i hope there's a chance to try some "ondemand" tweak ;)

cmiiw :)

thanks in advance :)
[Streak 5 Android Development] _n0p_:
I think such short interval will eat battery. Would you provide a bit more - for example a screenshot witb CPU Spy results? Thank you in advance.

Setting performance will ensure CPU run at max, so can test real stability at each frequency and avoid unneeded failures at future updates ;)

Ondemand is ok, but I don't like tbe idea of CPU jumping up and down :) conservative gives smoother curve, and should be nicer even in high load apps.
[Streak 5 Android Development] Dude_Virus:
Sergei I am not sure if I follow , by "I think setting

echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

(or bigger)" do u mean entering this string in build.prop because if I follow the path /sys/devices/system/cpu/cpu0/cpufreq/ i dont have conservative option there.

Although since I have set the cpu on performance governor and min and max at 1267 there have been minimal wifi freeze , to be precise 3 freezes in 4 days. I am currently on the 0.65 b with the Mugen kernel for the 0.65 .

One thing that I have noticed is the stability , while using it sometimes becomes so slow that i cannot do anything and even after waiting or tyring to close the program doesnt help, and suddenly it would reboot. Now on reboot the cpu frequency and the governor changes . Normally if u use setcpu or cpumaster and check the box for set at boot the frequencies and the governor should stay as per the settings made ..however here it just goes to the default settings on reboot ( unexpected or a normal reboot ).
[Streak 5 Android Development] _n0p_:
Look into /etc/init.streak.post_boot.sh :)

Initial cpu setup is done there.
[Streak 5 Android Development] sinan33:
cpu spy screenshots

Hi Sergei,i have added the scrennshots.
[Streak 5 Android Development] _n0p_:
Thank you!
[Streak 5 Android Development] Dude_Virus:
Sergei thanks for the step I was wondering as to where to go to add that echo. Now this is the info from the /etc/init.streak.post_boot.sh

#

target=`getprop ro.product.device`

case "$target" in

"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_surf" | "streak" | "thunder" | "qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "qsd8650a_st1x")

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold

echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_down_factor

echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 1075200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

;;

esac

sysctl -w kernel.panic_on_oops=1;

sysctl -w kernel.panic=0;

So the modified should look like this

#

target=`getprop ro.product.device`

case "$target" in

"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_surf" | "streak" | "thunder" | "qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "qsd8650a_st1x")

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold

echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_down_factor

echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 1075200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

;;

esac

sysctl -w kernel.panic_on_oops=1;

sysctl -w kernel.panic=0;

However one thing I would like to confirm with you if we look at this string

echo 1075200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

this shows that the max cpu frequency is 1075 which is set at boot but then how come in set cpu on a reboot the max and min values which automatically get applied are 1267 and 245.
[Streak 5 Android Development] lordmorphous:
I just get rid of SetCPU or CPU Master and input my values in this file. No sense having another app consume resources to do the same thing unless of course you are using their profile options.
[Streak 5 Android Development] Dude_Virus:
could you help me with the settings that needs to be done as I am facing some conflicts here if you check the post that i did the max frequency is set to 1075 however it goes more than that . Basically what I need is performance governor on boot plus the max value to be 1267 and min also to be 1267. So what values that I need to set for the following in bold below

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold

echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_down_factor

echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 1075200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

and understood conservative will be changed to performance.
[Streak 5 Android Development] lordmorphous:
This line:

echo 1075200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

should be changed to:

echo 1267*** > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

with the *'s representing the numbers I'm not sure of. I leave mine at 1075200.

Then change conservative to performance and min/max will automatically be at the 1267*** since that's what the performance governor does, is run at max all the time.

Can someone chime in with the 7 digit number for 1267 processor speed?

Edit: I'm pretty sure it 1267200
[Streak 5 Android Development] sinan33:
It is 1267200
[Streak 5 Android Development] _n0p_:
If you plan to use performance scaler, you need to change only max value to exact frequency.

1267200 (it's evening, but I think it is the exact value).

And yes, change word conservative to performance.

Now you can uninstall cpu controlling tools as obsolete :)
[Streak 5 Android Development] TheManii:
does the dsc kernel support dynamic overvolting?

Some samsung kernels expose the voltage values so apps such as cpu control can let you overvolt without recompiling the kernel.

Just a suggestion, though then that opens up the risk of someone being too agressive and breaking it :D
[Streak 5 Android Development] Dude_Virus:
[FONT=&quot]Thanks for the help however just to confirm before I apply the changes… it should be like below.[/FONT]

[FONT=&quot] [/FONT]

[FONT=&quot]echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor[/FONT]

[FONT=&quot]echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/performance/up_threshold[/FONT]

[FONT=&quot]echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/performance/down_threshold[/FONT]

[FONT=&quot]echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/performance/sampling_rate[/FONT]

[FONT=&quot]echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/performance/sampling_down_factor[/FONT]

[FONT=&quot]echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq[/FONT]

[FONT=&quot]echo 1267200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq[/FONT]

[FONT=&quot]echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/performance/freq_step[/FONT]
[Streak 5 Android Development] _n0p_:
Dude_Virus, looks fine for me.

Just realised that you had a lot of answers :)

--

TheManii, it's impossible by design right now. Kernel uses static freq table. I planned to make control interface via class, but got no time.
[Streak 5 Android Development] Dude_Virus:
Which answers..?
[Streak 5 Android Development] _n0p_:
From lordmorphous and sinan33 :)

Never mind.
[Streak 5 Android Development] Dude_Virus:
oh, however those changes didnt take effect. i edited and saved and rebooted but the cpu governor still on default goes to conservative and the max and min going to 1075 - 245
[Streak 5 Android Development] _n0p_:
Recheck file contens.

Are you sure changes are there?

More, are you sure no cpu controlling app makes any changes on boot?
[Streak 5 Android Development] Dude_Virus:
Yes I have checked the file contents and the changes reflect, please check the attached screenshot. And in set cpu the set at boot box is unchecked. This is the same thing which is happenning since a long time. Even if I make any changes in setcpu and check the box to apply the changes at boot , still it takes the default as conservative and 1267 - 245.

The second screenshot shows the setcpu where the scaling has changed to 1267 - 245 and the governor to conservative and this is just after reboot. i have not made any changes and if u can see the sliders are both reflecting 1267.
[Streak 5 Android Development] arleybarros:
Alpha tester

he also sayd:

Here some news from the video driver

http://www.xda-developers.com/android/qualcomm-releases-adreno-2xx-gpu-binaries-for-ics/

i'm offering myself as a alpha tester :rolleyes:

i heave ADB skills.
[Streak 5 Android Development] Dude_Virus:
Sergei it seems any changes made to tht file is not registering. I thought maybee its not having any effect for performance governor so I reverted the changes to conservative but with different values.

changed the max value to 998

Changed the min value to 576

Uninstalled setcpu so tht on boot diff values r not applied

Rebooted streak and then checked in system panel lite

Cpu clock shows as 1267 whereas max value i set as 998 and on being idle i monitored it goes down to 245

I installed setcpu and checked there and the same scaling is shown 1267 - 245

I even tried making the file run as root and at boot using script managet however no effect.

Is there any other app with which we can find the current running frequency and current set scaling besides set cpu or system panel lite.
[Streak 5 Android Development] Dude_Virus:
For some reason the screenshots didnt come
[Streak 5 Android Development] TheManii:
Might as well ask the most obvious question:

does init.streak.post-boot.sh have the right permissions and owner?

It's rw-r-r and 0-root/0-root right?

It actually shouldnt matter, but it couldnt hurt to ask.
[Streak 5 Android Development] Dude_Virus:
Yes the permissions are as per your post.
[Streak 5 Android Development] _n0p_:
Look closer. There's spaces where they shouldn't be.
[Streak 5 Android Development] Dude_Virus:
Thats wierd...it seems while copying from gmail to ghost commander those spaces came up..let me edit those and recheck...i believe they are in the latter part. The start part echo 70 > this part is meant to have spaces right..??
[Streak 5 Android Development] _n0p_:
Yes, you need to fix part that goes after ">"
[Streak 5 Android Development] Dude_Virus:
Ok changes done as below still no change

target=`getprop ro.product.device`

case "$target" in

"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_surf" | "streak" | "thunder" | "qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "qsd8650a_st1x")

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/performance/up_threshold

echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/performance/down_threshold

echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/performance/sampling_rate

echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/performance/sampling_down_factor

echo 1267200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 1267200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/performance/freq_step

;;

esac
[Streak 5 Android Development] _n0p_:
Let's check contents of file. Attach the script here, i'll take a look.
[Streak 5 Android Development] Dude_Virus:
The xda app or the dolphin and standard browsers are not letting me attach it... shall i email you on ur gmail account...??
[Streak 5 Android Development] _n0p_:
Sure, or you can simply rename it to .zip

I suspect you have unix line breaks replaced by dos/windows ones.
[Streak 5 Android Development] Dude_Virus:
Its not he naming part the xda app doesnt let u attach nething but images...and using the browsers even after selectingthe file when i click on upload it says please select a file.. so i have sent u an email on the90 email add
[Streak 5 Android Development] TheManii:
If you're copy/pasting them on and off of xda, use [CODE][/CODE]

as the xda forum software intentionally adds spaces to things that look like urls but dont use [URL][/URL] to break them up so web spiders/spambots dont try to follow them.

Perhaps that's why? as you're pasting a lot of it into your posts but arnt putting them into [CODE][/CODE]
[Streak 5 Android Development] djmax81:
just install the patch provided by N0p

Easy like that just install patch ibn prev post and its all set .!!!!

---------- Post added at 11:54 AM ---------- Previous post was at 11:46 AM ----------

Check this out :http://xdaforums.com/showthread.php?t=1550185
[Streak 5 Android Development] _n0p_:
Another approach at WiFi problem.

First, sinan33 - setting scan interval to 15 didn't work with my faulty test router. WiFi stays disconnected, showing connected status.

--

So i decided to take different route. This is not to replace WiFi fixing tools you use now, but just as "proof of concept".

We take wpa supplicant status, and if it's thinks it's connected, look at driver state via wlarm_android. If supplicant is down, we do nothing.

If driver is disassociated, we issue reassociate command. If not - just proceed to sleep delay :)

--

Script is controlled with two variables (in build.prop):

ro.build.DSC_CONFIG_WFIXER - if it equals "1", script will be spawned at start.

ro.build.DSC_CONFIG_WDELAY - how many second to sleep between checks.

Also -

ro.build.DSC_CONFIG_TWEAKS can now be used to enable/disable postboot tweaks.

--

http://n0p.8bit.fm/streak/DSC_WiFi_Fixer.zip

--

Sergei
[Streak 5 Android Development] lordmorphous:
_n0p_, would you mind if I played around with this to add to the CM7 rom? I'm going to put it on mine and see how it affects battery life as opposed to using something like Wifi Fixer. If it works out well it could potentially benefit all the GB roms.
[Streak 5 Android Development] _n0p_:
Sure, if it's really usuful. I suspect that deep sleep might also prevent script from running, so testing is required.

--

Edit: I think best way would be to patch framework screen on and sync on procedures, to ensure reassociation is done when needed.
[Streak 5 Android Development] Dude_Virus:
after applying this zip i am getting wifi freeze as soon as the screen turns off
[Streak 5 Android Development] _n0p_:
I don't think it's related.

Does it reassociate in twenty second when you turn device on?
[Streak 5 Android Development] Dude_Virus:
I have not counted the time but yes when i turn on the device the wifi is back...but again as soon as the screen goes off the wifi goes , same behaviour while on charger.

Maybee like 10 to 15 sec can be the time.

---------- Post added at 11:18 PM ---------- Previous post was at 10:34 PM ----------

Sergei , btw were you able to find a reason for that init.postboot script not working.

Just our of curiosity is this wifi fixer ok to be isntalled on versions lower than v 1.0 of DSC rom.
[Streak 5 Android Development] cdzo72:
Hello again gentlemen, sorry I've been away for so long.... since I aquired the SGS 2 and the TouchPad I haven't played with my Streak much except for bouts with MIUI and CM7 that were both bad experiences....

OK, Sergei I tried out this wifi fix, and also went back to using wifi fixer and wifi reassociate, and no matter what I do, to get wifi back I have to reboot the phone.... just lettin' y'all know. I can remember SEVERAL tens of pages back that someone was having this same issue, but I haven't gotten that far in my catchup reading in the thread yet so I haven't found out if there was a solution yet
[Streak 5 Android Development] _n0p_:
Kartikaye, your edits worked fine for me. No idea.

--

cdzo72, it only proves my point that we deal actually with several WiFi bugs.

--

Anyway, i'm now trying to find more elegant way to include driver disassociate workaround directly into framework.
[Streak 5 Android Development] Dude_Virus:
I will try to do a fresh install and check again with the edited file. Hopefully it works as running on performance governor and full frequency has kept me away from the wifi freeze.
[Streak 5 Android Development] Dude_Virus:
Ok i installed the v 1.0 and then the mugen full kernel and the init.sh script showed me the min value as 128 and 245 and max as 1075 . I have editted the script however I am in a confusion here as there are 2 entries for the min values. Please check the screenshot which shows as #echo 128000 and then below it there is another entry for echo 245760. Should there be 2 entries as the previous versions did not have the # echo entry. Do i need to remove any of the scaling_min_freq entry
[Streak 5 Android Development] lordmorphous:
The # sign comments out the line so that it isn't actually looked at by the system. Just remove the # sign for the min that you want and put a #sign in front of the one that you don't.
[Streak 5 Android Development] Dude_Virus:
Thanks for the update let me then save the editted script and check if it reflects the governor change.
[Streak 5 Android Development] sanyokt4j:
_n0p_, I'm not sure if anyone has had this issue but i'd gotten a 32gb class 4 kingston micro sd and my streak won't mount the card when the phone starts up, everytime i restart i have to remove and insert the card to make it work.
[Streak 5 Android Development] rebski:
I assume that this is in the external slot?

I have a 32gb Sandisk and it works fine.
[Streak 5 Android Development] sanyokt4j:
Yeah its the external slot, I'm not sure whether its due to mine being the aws version or something, I tried the card on my other streak with this and two other roms and it works perfectly
[Streak 5 Android Development] blubx:
dont know it make sense or not, but i exp that kind of problem once when my streak sent out for services and I used "samsung galaxy y" for temporary and stick my 32 gb patriot from my streak to samsung.

once I got my streak back I swtitch back and I notice inconsistency that card is not mount, after few days my streak won't mount it at all.

so I reformated again ....and work find
[Streak 5 Android Development] sanyokt4j:
blubx, I tried that countless times, the thing is its only my aws streak that does this, the other one I have functions perfectly with it

Edit: I just installed the miui rom and then reinstalled dsc and now the streak recognizes the card :D
[Streak 5 Android Development] arleybarros:
2 sugestions

I dont know if is possible, but would be nice if we heve in the next versions:

Toggles in notifications menu

A HDPI patch fir a better 240 DPI experience

just sugestions.
[Streak 5 Android Development] Dude_Virus:
Like for 1267 mhz the value is 1267200

Could neone let me know the value for 1075

1190 wud be 1190400 not sure wht wud it be for 1075
[Streak 5 Android Development] rebski:
Glad you got it sorted. But how to make sense out of the how and why, beats me.
[Streak 5 Android Development] lordmorphous:
1075200
[Streak 5 Android Development] sanyokt4j:
I'm totally lost on that one as well, my guess is maybe i had a corrupt rom file :confused:
[Streak 5 Android Development] Dude_Virus:
Shane as you had mentioned that the # is not looked by the system so now as per the script the # sign is before the echo 128 so that min value should not be taken , however on checking with cpu spy that is the min value which is being counted. it is starting from 128 mhz and the proc ran at 128 mhz too. Any Suggestions

Sergei update on wifi currently I am on DSC v 1.0 with Full Mugen kernel... kept the governor as performance and at 1267 which i change to 1190 due to unexpected reboot at 1267. Been 19 hours and no wifi issues .. and streak was in deep sleep for 9 hours. it seems that changing the governor from conservative to performance has helped. Will test more and report.
[Streak 5 Android Development] menting:
it's very possible that the OS has a min value it defaults to.
[Streak 5 Android Development] TheManii:
The kernel is hardcoded with a freq list.

The lowest and highest values are the default min and max values.

Pick something out of bound (or not give it anything at all) and it'll use the lowest and highest as it's min and max values.

If it's an invalid value within the valid range, it'll snap to whatever closest value is available. (i dont know if it rounds down or up, likely round down)
[Streak 5 Android Development] _n0p_:
WiFi fixer and PDroid test as 1.1 :)

1.1 test.

--

OK, i found a way to run scripts/apps from framework in root environment.

--

It's a test, so i suggest only experienced users will install it.

--

Changes:

WiFi fixer implemented into framework:

/system/etc/dsc.smart_reassoc.sh call injected into WifiService. Called on doUpdateWifi. Don't know if it's right thing to do. Anyway, cannot come up with anything better now.

Info about method.

Should have no impact on battery.

Also - test Dude_Virus solution - set CPU governor to performance.

ro.build.DSC_CONFIG_WFIXER option.

PDroid patch. PDroid app.

Info about PDroid

"Leds on" mod removed as unneeded.

Hack in Camera app - i've added "Torch" option.

Phoenix kernel with corrected frequency table.

ro.build.DSC_CONFIG_TWEAKS option to skip tweaks part of postboot script.

default frequency range: 128-998, conservative, cpu step at 50%

--

http://n0p.8bit.fm/streak/updDSCv1.1-test.zip

Mirror @ khoacoi

http://www.littlemaruko.com/Nopteam/updDSCv1.1-test.zip

--

Sergei,

DSC Team.