yashsingh1/xdaforums huggingface dataset:
[Streak 5 Android Development] streakOwner:
Tweaks for DSC

Here are the fırst batch of tweaks that would make thıs ROM even more responsıble, faster whıle surfıng ınternet , more "multıtask capable" and wıth focus on longer battery lıfe. As always ın such tests ıt ıs hard to fınd the golden measure that fıts all the needs of the user but ı thınk these wıll cover at least 80 % of the normal users ın a gaussıan dıstrıbutıon curbe.

These were tested wıth the benchmarks avaılable on the Market.

Quadrant Standard, NenaMark1, Antutu Benchmark, Lınpack for Androıd, RL benchmark SQLıte, SDTools, Speedtest.net Mobıle, StabılıtyTest, Vellamo Mobıle Web Benchmark.

Dıfferences wıth the latest release 0.52b ıs the governor "ondemand" used durıng the tests.

#############################################

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 "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

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

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

;;

esac

echo "0" > /proc/sys/net/ipv4/tcp_timestamps;

echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;

echo "1" > /proc/sys/net/ipv4/tcp_sack;

echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;

echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;

echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;

echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;

echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;

echo "404480" > /proc/sys/net/core/wmem_max;

echo "404480" > /proc/sys/net/core/rmem_max;

echo "256960" > /proc/sys/net/core/rmem_default;

echo "256960" > /proc/sys/net/core/wmem_default;

echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;

echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;

echo "4096" > /proc/sys/vm/min_free_kbytes;

echo "0" > /proc/sys/vm/oom_kill_allocating_task;

echo "0" > /proc/sys/vm/panic_on_oom;

echo "0" > /proc/sys/vm/laptop_mode;

echo "0" > /proc/sys/vm/swappiness;

echo "50" > /proc/sys/vm/vfs_cache_pressure;

echo "90" > /proc/sys/vm/dirty_ratio;

echo "70" > /proc/sys/vm/dirty_background_ratio;

echo "500" > /proc/sys/vm/dirty_expire_centisecs;

echo "1000" > /proc/sys/vm/dirty_writeback_centisecs;

echo "512" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

###########################################

the last one ıs about the sdcard , thıs was the vlaue that gave the best results for my system and dependıng on the type of sdcard you have the values you can try are 1024 2048

More tweaks are about to come after they wıll be fully tested.
[Streak 5 Android Development] _n0p_:
streakOwner, thank you.

I'm testing them right and almost sure they will be included in the next release along with your name.

This tweaks actually can be included right into init.rc to avoid postboot cluttering.
[Streak 5 Android Development] uglyrooster:
Yes, no change. Wifi is on, but data connection is lost.
[Streak 5 Android Development] lordmorphous:
Same thing happens to me even with wifi set to never sleep. Has happened to me with every GB rom i have tried.
[Streak 5 Android Development] maxicet:
LIKE I SAID in others threads, the only way to fix this and lots of others problems is : use streakflash and make a full resume, flash sm recovery and 2.4 amss ONLY, flash the rom.
[Streak 5 Android Development] _n0p_:
Guys, simply telling about the problem won't get us far.

I'd like to ask you to get logs (Streak connected to PC, from command-line):

adb logcat -d -b events > events.txt
adb logcat -d > main.txt

after you've experienced the problem. This might help to reveal the root of the problem (i don't encounter WiFi problem, so i might suggest it happens on some undefined circumstances)

As this logs may contain some private information, i'd like to ask you to send them (or links to them) via PM to me for analysis.

--

maxicet, this problems are reported on clean install, so leave that absoluty immature approach somewhere else. No offence.
[Streak 5 Android Development] mba07:
query

Given the 406 Rom has proven to be safe in certain circumstances. How does people feel about using the dsp and amss from streakdroid(405) and the zip version of the 406 Rom? Would this be safe or would it still suffer from the problem described by themanii
[Streak 5 Android Development] _n0p_:
mba07, 405/406 ROMs are safe. No any brick reports so far.
[Streak 5 Android Development] takodijkman:
Why would you want to try that? You have the chance, oppurtunity and a good reason to just go with 406 dsp + amss, go for safe?

My Streak is rock solid, working like a charm with this DSC rom + 0.52 update!
[Streak 5 Android Development] zsolti256:
wowoowow nice rom guys! Faster and more stable than streakdroid 2.4, I had alot of reboots on the rom in browsers, so far this rom is rock solid woot woot :)
[Streak 5 Android Development] lordmorphous:
Did you get my logs? While trying to turn off wifi, which was unresponsive, i got a forced reboot. Don't know if that helps...

Never mind....just seem the pm. Thanks for the awesome rom. It will be perfect for me if we can get the wifi issue ironed out. I'll do what i can to help.
[Streak 5 Android Development] uglyrooster:
Regarding the WiFi problems use Wifi-Fixer with max. Wifi and everything is fine.
[Streak 5 Android Development] _n0p_:
What i've learned so far - WiFi shutdown initiated by system. That's not a fault.

To everyone, having WiFi issue - try to disable apps, that have right to do so. And Picasa sync, just to pin down the issue.
[Streak 5 Android Development] lordmorphous:
When you refer to wifi shutdown, do you mean the "hanging"? My wifi still shows connected, just won't allow throughput. I think this is what you mean, I just wanted clarification. Thanks.
[Streak 5 Android Development] borijess:
Tried it doesn't work. Wifi still hangs.
[Streak 5 Android Development] _n0p_:
It's not hanging. It's shut. I almost sure. But somehow higher level framework part (UI) don't recieve message about this, so wifi still shows as connected.

Anyway, i'll try to get similar widgets and reproduce the issue to be sure.
[Streak 5 Android Development] lordmorphous:
If I recall correcty, watch_mania posted that turning off wifi power management altogether was his suggestion. He got better performance that way without much of a noticeable impact on battery life.
[Streak 5 Android Development] _n0p_:
http://n0p.8bit.fm/streak/DSC_TeamP2.zip.

Power management disabled in WiFi driver.

Uploaded.
[Streak 5 Android Development] lordmorphous:
I had actually read that about a certain brand of phone with gingerbread as well.
[Streak 5 Android Development] greg9100:
Hello all-

After some hours, I had patched the Dell source up to 2.6.39.4, but building the kernel results in

A build that does not boot, and the wifi drivers disappear to be able to be configured,

So I went back and patched to 2.6.36, and the same occurs;

There must be some kind of hurdle to overcome there, from 2.635.14 to 2.6.36

---------- Post added at 11:09 AM ---------- Previous post was at 11:06 AM ----------

@ Sergei

Going to test the latest !
[Streak 5 Android Development] _n0p_:
Greg, if you find some time, would you review the config? I'm sure i've forgotten something... :)
[Streak 5 Android Development] greg9100:
Sure I'll take a look at it within the hour;
[Streak 5 Android Development] ltrifonov:
1400MHz. ;) and not overheat these 5 min
[Streak 5 Android Development] :
I seen

Nexus One and HD2

OC upto 1900mhz

Without any problem
[Streak 5 Android Development] _n0p_:
Yep. But I don't see the device flying :)

Lubo, would you teach me how to properly push changes to git?

I'll properly define changes to dhd and willing to push current state tomorrow.
[Streak 5 Android Development] slaydog:
I used an app called aLogcat from the market. You can set filter to "bat".

Will copy to. txt, share via email etc. Very cool...
[Streak 5 Android Development] _n0p_:
I personally don't beleive in overclocking.

Properly wriiten code has much more effect.

Maybe Google will come up with faster DalvikVM.

I do remember MophunVM running fast on SE T300. And basic principles of mapping cpu registers to virtual is still here :)
[Streak 5 Android Development] :
My

Galaxy s2 goes to 2000 mhz

By simply modding freq tables of stock kernel

Not sure if it really does
[Streak 5 Android Development] _n0p_:
Kolte, so what's the point of saying that then?
[Streak 5 Android Development] :
My point is

OC only boost quadrant

Nothing much

Can Greg add freq's upto 1500 mhz to gxkernel new version
[Streak 5 Android Development] _n0p_:
And?

I absolutely don't care about quadrant scores.
[Streak 5 Android Development] _n0p_:
And why don't you ask him in corresponding thread or via PM?
[Streak 5 Android Development] greg9100:
The config looks good!

when you disabled power management in wifi driver would it disable other aspects in the config?

< > Advanced Power Management Emulation

[ ] CPU idle PM support

these are changed when I view the config, but otherwise nothing is missing;
[Streak 5 Android Development] _n0p_:
Thank you! I always miss that part :)

In short - i've changed parts of code in dhd from PM_FAST and PM_MAX to PM_OFF.

Right now i've disconnected from buildserver, but I will tomorrow wrap the code in defines and try to push it to git.
[Streak 5 Android Development] _n0p_:
And I forgot to add, thanks to the Team and especially dsteingberg and Greg for (fingers crossed :)) finally resolved timer issue.
[Streak 5 Android Development] greg9100:
AH gotcha! Fantastic!! Hack the living heck out of that driver!

The wifi issue on friday had made my hair go a little grey

I did some reading that broadcom had some issue with releasing drivers to GNU, but

our chip may be supported in bc-43 and or bc-legacy

http://linuxwireless.org/en/users/Drivers/b43?action=show&redirect=en/users/Drivers/bcm43xx
[Streak 5 Android Development] _n0p_:
I just wish this helps.

Where's still a chance that framework is the one that causing the problem, and if you compare "sleep on" process in 2.2 and 2.3, you'll see some additional wakelocks in 2.2.

I wish it's just in my mind :)
[Streak 5 Android Development] Dude_Virus:
@ slaydog : thanks buddy , that was useful.

@ n0p : Thanks , now logcat is cable freee.. lol ...please find attached the logcat for battery, have attached 2 of them

1) bat.zip is from the commands that i ran from terminal emulator ( made a zip as it was not letting me upload a 330 kb txt file.

2) battery.txt is from the alogcat app that i downloaded
[Streak 5 Android Development] _n0p_:
battery.txt was just enough. Thank you!

I'll rethink percent calculations, so far it seems right to substact 200 from voltage when on charger (positive mA value) and disregard mA in calculations.

Interpolation should be taken on 8 samples at least.
[Streak 5 Android Development] Dude_Virus:
No issues with WIFI however what I have noticed is that there is a lag after the device is woken up from sleep. Have kept the cpu at max 1075 and min 245 ondemand and whenever i wake the device from sleep and then for example try to pull down the notification bar there is a lag and it comes down in jerks.

---------- Post added at 11:10 PM ---------- Previous post was at 11:09 PM ----------

Ok an update battery percentage was showing 90% around 5 min back and now it has dropped to 50% and fluctuating around there.
[Streak 5 Android Development] _n0p_:
Are you sure you have no very active background processes? My device simply rock when set to ondemand.

And I know the reason for that drop. I haven't got better idea than to set initial interpolation value to 4000. I'll fix it in next test mugen kernel.

Still, I have no idea how to detect mugen...
[Streak 5 Android Development] Dude_Virus:
same as they were before flashing this kernel... For testing wifi I am on ondemand with low and max of different values since yest and there was no issues... now everytime I wake the device its happenning still let me check
[Streak 5 Android Development] _n0p_:
Maybe that jittering percents are causing the trouble making battery widgets update to much.
[Streak 5 Android Development] Dude_Virus:
hmmmmmmmmmmm possible.
[Streak 5 Android Development] lordmorphous:
Sergei,

I just wanted to report that wifi seems to be working well. I'm using your first power management hack. I haven't tried the second one yet, as i wanted to give this one a fair test.
[Streak 5 Android Development] Dude_Virus:
@ lordmorpheous : as suggested by you i downloaded the cpu spy and yes my device goes into deep sleep.

Ok there is one issue, my firewall doesnt work anymore.... I get an error message while applying the rules ( please see the thumbnail attached)
[Streak 5 Android Development] attila.m:
i had wifi freeze with _PM version and then flashed _P2 and it is working perfectly

pls note that i flashed Lubo's experimental DSC-build_12161926 and as i've looked into it there's a config patch in it

i suppose that config remained with these 2 flashes

on Lubo's DSC-build_12161926 i had 3 black SOD's after longer idle times and could only restart by pulling the batt out

cheers

a.
[Streak 5 Android Development] _n0p_:
Shane, Attila! Thank you!

I feel like 0.64b is near.

--

I think we'll provide dhd.ko with PM_FAST and PM_OFF as additional updates.

Special thanks to watch_mania for the method.
[Streak 5 Android Development] _n0p_:
Oops. Looks like NetFilter IS needed :) Will fix.
[Streak 5 Android Development] androidunia:
It happened to me when I switched from Maxicet (405) to DSC (406)...

Several times flashed with 406 baseband but still remained as 405..:confused: I just ignored it and I checked someday after reboot, it showed as 406...:eek:

So I don't think that will be big issue as _n0p_ said..
[Streak 5 Android Development] borijess:
Got a wifi freeze with P2. 30 minutes into it. Will keep testing.

Sent from the SuperStreak! ;-)
[Streak 5 Android Development] Dude_Virus:
@ n0p : i checked the battery monitor pro app history.file and the lowest value when the phone turned off was 3375 mV
[Streak 5 Android Development] lordmorphous:
Using the PM file, I got a Wifi freeze almost immediately, did a power cycle and haven't have one since. However, I did have something new happen and I don't know if its related. I left my house, out of range of wifi and the phone still showed as connected to wifi. Obviously there was no data throughput and I had to turn off wifi for it to switchover. I turned wifi back on and its operating as it should. I'll be paying attention to this tonight to see if it repeats itself, or was just a hiccup.
[Streak 5 Android Development] MellowHype:
?

how do you remove crt animation? thanks
[Streak 5 Android Development] Dude_Virus:
@ n0p : can the kernel be extracted from a stock rom ...????
[Streak 5 Android Development] Dude_Virus:
@ n0p.... check out the fluctuations.....seems like a heartbeat....lol....
[Streak 5 Android Development] :
Dude

+1 for that

Mine too goes like a ssiesmograph
[Streak 5 Android Development] Dude_Virus:
Abhiman are you too using an extended battery
[Streak 5 Android Development] :
Yeah

Mugen 4800
[Streak 5 Android Development] Dude_Virus:
Great then if you wud please provide the logcat to n0p as he needs to identify the id with which the battery is detected

Also were u able to find a way to hack the kernel to detect the battery....

I am thinking of installing android 1.6 as the battery works fine on tht.... then get the logcat for analyzing....
[Streak 5 Android Development] :
That sounds great

But I dont use that battery much

I prefer to use stock

Cuz ext bat makes.my streak heavy

Where to get 2400 mag
[Streak 5 Android Development] Dude_Virus:
I use this as my primary battery as with my usage the stock lasts for like 8 hrs for me...sometimes even less....atleast this gives me 40+ hours ... 2400 is not available in mugen however there is a 1800 available which fits in the original battery cover...the 2400 is a diff company
[Streak 5 Android Development] :
Thanks for info

stock lasts 12+ hr

3 hrs 3g

1 & half hrs games

2 hrs video

15 mins voice calls

Remaining stand by
[Streak 5 Android Development] Dude_Virus:
@ n0p : finally the battery died after 1 day and 18 hrs ...but now when i started to charge it something very strange has happ....the charging has started from - 137% and the battery meter has vanished....lol
[Streak 5 Android Development] _n0p_:
MellowHype, you can download and install GingerTrue theme w/o CRT.

Other way is to set debug.composition.type=mdp in /system/build.prop

--

Dude_Virus, what did you mean by extracting kernel?

Fluctuations ok so far, but what i'm interested most - is overall curve as expected?
[Streak 5 Android Development] _n0p_:
Dude_Virus, I want the log again :)
[Streak 5 Android Development] Dude_Virus:
By extracting the kernel wht i meant was tht if i flash android 1.6 on my streak as the battery works fine on it then from tht 1.6 can we extract the battery reporting code from the kernel and put tht in the 2.3 kernel
[Streak 5 Android Development] _n0p_:
There's sources available at Dell, and if battery code is interoperatable, which I doubt, we can give that a try.
[Streak 5 Android Development] Dude_Virus:
Hi there is no way to attach a .txt file feom the xda app hence i am sending u the log via pm
[Streak 5 Android Development] _n0p_:
Looks like PM dont have this feature. Send me it to n0p(at)ukr.net or the90h(at)gmail.com
[Streak 5 Android Development] Dude_Virus:
Yeah it got stuck at processing....so i logged in via website on the streak but even tht is not allowing me to attach a file...even after file selected it says select a file hence i sent u an email on ur gmail.
[Streak 5 Android Development] :
Hey if you wanna send log.txt as attachment

Give extention as .txt.pdf nop will rename it

This can alloww large txt's attcah
[Streak 5 Android Development] Dude_Virus:
Tht i can even zip it....issue was tht the xda app doesnt allow attachments besides images or select file from url.... and the website was working strangely..even after selecting the file it tells me please select a file when i click on upload...
[Streak 5 Android Development] _n0p_:
Ok, no hurry. You can revert back to 0.63 or other preffered kernel, and send the log later.
[Streak 5 Android Development] :
Use xda site rather
[Streak 5 Android Development] Dude_Virus:
I already sent u the log via email on ur gmail

Did u not receive an email with subject battery logcat
[Streak 5 Android Development] _n0p_:
And I've read it :)

My guess was right, we should disregard mA in calculations.

I will publish new test kernel later (in about 3-5 hours).

Btw, how do you charge the battery? With std charger?

--

Sergei
[Streak 5 Android Development] Dude_Virus:
Ok coool..... yea i charge it via the dell charger which was shipped along with the streak

Although 1 thing i noticed the battery showed 3406 mV when it reached 0 ...otherwise it reads 3350 on reaching 0
[Streak 5 Android Development] _n0p_:
And what I think for now - amss (bb) does the battery calculations. There's a big chance that in 1.6 was the same (but without restrictions), so kernel is not in play here.
[Streak 5 Android Development] Dude_Virus:
:( stupid dell....i via dell forums have sent a message to Amy whos from the product team and have asked her to get the info out...lets see if she responds.....

Thanks for all your help in getting this working
[Streak 5 Android Development] _n0p_:
They can officially disregard the request, as product is eol'ed. From what I see where's only Dell logo (and it fallen :)) on our device. All other work is fully outsourced.
[Streak 5 Android Development] ltrifonov:
Hi, about IPFILTER, I think this can be supplied as a loadable kernel module, now will test with this (DroidWall or something).

Still wondering why firewall is needed on android?! firewall is used when you offer network services, and you have to block somebody, and allow others to that service. My point is that android device is client, and not server :)

(same in windows, if you stop server service, and no open ports, you do not need any other firewall)
[Streak 5 Android Development] _n0p_:
Lubo, i think almost everyone uses blockers (Android is really insecure in some aspects), so... :)
[Streak 5 Android Development] Dude_Virus:
Hi guys was there a problem with xda in the past 20 min or so......it was showing a PCBD ....

The reason i need a firewall on streak is because of market...i have certain cracked apps which market detects again and again especially titanium backup...and spb shell 3d.... it checks tht it has noy been purchased and then either disables it or reverts to the free version..i am unable to even freeze market as after a reboot it automatically defrosts....
[Streak 5 Android Development] Dude_Virus:
Yeah even i feel tht they wont respond, however lets see..... fingera crossed...... or i will install 1.6 and wud then bug u to tweak it for performance .... hahaha.... just kidding

I think you wud need to increase the mV value for 100% as i downloaded battery monitor app which works with the voltage so when the device reachea 4186 and shows 100% ...it actually is still at 95% or so
[Streak 5 Android Development] _n0p_:
DSC kernels and other interesting stuff.

So.

--

New prerelease:

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

link@khoacoi:

http://www.littlemaruko.com/Nopteam/DSC_Team6.zip

(WiFi set to PM_MAX (PM Mode 2), overclock, NetFilter looks like fixed)

--

WiFi module with PM_FAST (PM mode 1)

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

link@khoacoi:

http://www.littlemaruko.com/Nopteam/DSC_DhdPFAST.zip

--

WiFi module with PM_OFF (PM mode 0)

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

link@khoacoi:

http://www.littlemaruko.com/Nopteam/DSC_DhdPOFF.zip

--

Test Mugen kernel:

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

link@khoacoi:

http://www.littlemaruko.com/Nopteam/DSC_TeamM3.zip

--

WBR,

DSC Team.
[Streak 5 Android Development] Mariol:
Thanks for your rom _n0p_ , it's really neat and fast.

I have a question: what kernel do i need to flash to get the battery cover hack? My cover is a bit loose and id really like that feature.

Thanks again and keep up the good work!
[Streak 5 Android Development] ltrifonov:
Hi Sergei,

it seems that forum was down few hours...

I am reviewing your config, and there are a lot changes :)

Compiling with this .config gives error in wifi driver, (it needs something from NETFILTER, now looking exactly what option);

also you missed tun module.

swap removed,

compiling error:

drivers/mtd/devices/msm_nand.c: In function 'msm_nand_write_oob_dualnandc':
drivers/mtd/devices/msm_nand.c:2275: error: 'err' may be used uninitialized in this function
drivers/mtd/devices/msm_nand.c: In function 'msm_nand_write_oob':
drivers/mtd/devices/msm_nand.c:1937: error: 'err' may be used uninitialized in this function

and

cc1: warnings being treated as errors
drivers/net/wireless/bcm4325/wl_iw.c: In function 'wl_iw_get_link_speed':
drivers/net/wireless/bcm4325/wl_iw.c:736: error: 'link_speed' may be used uninitialized in this function

this is due to something deactivated in .config
[Streak 5 Android Development] _n0p_:
Mariol, last one published should do the trick. But it works only when system is booted.
[Streak 5 Android Development] Dude_Virus:
@ n0p downloading it now....hey does this M3 have the firewall thingy also fixed... and should I go ahead and wipe the battery stats too after flashing this ...
[Streak 5 Android Development] _n0p_:
Lubo, i've removed -Werror from Makefile.
[Streak 5 Android Development] _n0p_:
Dunno. It's test, so let's see how it works.
[Streak 5 Android Development] _n0p_:
Lubo, would you teach me (or in PM) how to push changes to git via command-line?

Got 4 changed files to merge with Phoenix (or i can send them to you)

--

Sergei