yashsingh1/xdaforums huggingface dataset:
[Streak 5 Android Development] _n0p_:
Since it's the playground:

I took the zram+snappy sources from

https://github.com/cosmicdan/semc-kernel-msm7x30-cosmic (only Makefile changed to allow standalone module compilation)

Here's the result for MIUI:

boot.img and zram.ko (attached to post, unzip zram.ko before pushing to /system/lib/modules)

To use the module - something like

#!/system/bin/sh
#ZRAM
insmod /system/lib/modules/zram.ko
echo $((64*1024*1024)) > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

should do.

Use this script to check how it goes(i named it zramstats):

#!/system/bin/sh
# n0p - stats for zram
export ZMEMU=`cat /sys/block/zram0/mem_used_total`
export ZMEMO=`cat /sys/block/zram0/orig_data_size`
echo Used physycal mem: `expr $ZMEMU / 1024`KB
echo Swapped to zram: `expr $ZMEMO / 1024`KB
echo Ratio: `expr $ZMEMO / $ZMEMU`
[Streak 5 Android Development] rajatsood:
Hey n0p.. can u pls provide the link for the latest kernel for miui i.e. U29 in .zip format..??
[Streak 5 Android Development] (InsertNameHere):
Use the boot.img and .ko file provided instead, and reflash, that way the MIUI screencapture functionality is maintained.
[Streak 5 Android Development] djmax81:
How about....cm7 boot.img.?
[Streak 5 Android Development] _n0p_:
Attached.

CM, MIUI boot images and lowmemorykiller+zram modules.

Note that LMK moved out of kernel, so you have to load it via insmod:

#Low Memory Killer (now removed from kernel itself)
insmod /system/lib/modules/lowmemorykiller.ko
echo 0,1,2,4,7,15 > /sys/module/lowmemorykiller/parameters
echo 2048,3072,4096,6144,8192,10752 > /sys/module/lowmemorykiller/parameters/minfree

Flashable zips attached as well.
[Streak 5 Android Development] (InsertNameHere):
U29 and U30 work in MIUI 2.4.20 absolutely fine, included all the modules too.

Personally after using the swapfile for a while and issuing the $ free -m command, i can see no real use for the swapfile, it does get used a little, but not sure its useful as i think it handles what ram it has fine, maybe if you multitask in a big way.
[Streak 5 Android Development] rajatsood:
I flashed the miui.zip. kernel u30 going really good.. Thanks..

now do i need to flash the modules.zip aswell..??
[Streak 5 Android Development] _n0p_:
You need to load lowmemorykiller.ko at system start to provide LMK functionality.
[Streak 5 Android Development] rajatsood:
Pls can you explain me how to do that..??
[Streak 5 Android Development] _n0p_:
Oh, sorry.

You don't actually need anything - if you flashed .zip version.
[Streak 5 Android Development] Crinos512:
What is the suggested baseband to use with this kernel

(I see it's 366 compatable, but is that the recommended one?)
[Streak 5 Android Development] mokokawi:
It seems both 366 and 406 are working good. . . I'm on 406 and running good. . . So I think it means if your already on 366,you don't have to change it.
[Streak 5 Android Development] Crinos512:
I was still on 354... Just bumped to 406.

Thanks!
[Streak 5 Android Development] mokokawi:
That's great

I had used 366 for alittle while once,and had no problems. . . . But I went ahead and flashed 406 since I was installing factory 407 rom anyway and felt better about it : )
[Streak 5 Android Development] zane19775:
Sorry,I have problem using phoenix u30 :(

i try LH 2.9.3 + 366BB + Phoenix Kernel u30 and my streak is always freeze when mobile data enabled :(

touchscreen is really not responding...waiting 30mins streak still freeze,so i remove the battery and place again...but is not solved...issues is coming back again :(

not like balanced kernel from LH which random reboot....mobile data freezes issues is very disturb for me :(

using 406BB it's same too :(

and MY ISSUE ONLY OCCURS WHEN ENABLED MOBILE DATA :eek:

update :

same issue on other CM7 like lxdroid n pcm7 :(
[Streak 5 Android Development] deysmacro:
@ _n0p_

i have 4 questions that have been bothering me.

1 - can the zram increased more than default 128mb or no? what do you say bout this?

2 - if it can be increased, increasing the default 128mb to let say 256mb or 512mb does have any significant impact or not? will it do any improvement?

3 - if it can be increased, what is the max value it is supported?

4 - last time i have try to set it to 0 (zero) mb. at first it seems working. later (not sure how long when i notice this), the default zram becomes 100mb. even after i tried to change the default value to 128mb doesnt seems to take effect. even after repeatedly restarting the phone. it seems it is stuck at that value. even after i try to clear everything, reset everything, reflash rom. nothing can change the 100mb value.

please advice. thank you.
[Streak 5 Android Development] _n0p_:
You don't need swap at all.
[Streak 5 Android Development] deysmacro:
Yeah, I figured you would say that. I have stopped using it 1 day after I ask you the question :D
[Streak 5 Android Development] shazzl:
nop can i use the zram module fo the dsc 2.3 rom
[Streak 5 Android Development] Strephon Alkhalikoi:
[MENTION=5086062]shazzl[/MENTION]: _n0p_ has a flashable zip of the swap enabled kernel for DSC available in the DSC thread. Download it from there and flash it through Streakmod to enable zRAM. Or install Traveller DSC, which includes the kernel by default.
[Streak 5 Android Development] _n0p_:
LittleNinja, do they?

DSC Gain controls lowlevel hardware parameters.
[Streak 5 Android Development] LittleNinja:
I see both of them seems to play with volume levels, question is : do i need to keep DSPManager if i have DSC gain installed...

And by the way, how can i find a tutorial for DSC Gain ?

JB
[Streak 5 Android Development] _n0p_:
LittleNinja, it's up to you to write one i guess :)

--

DSP manager is controlling software audio processing (library level)

DSC Gain - audio hardware parameters.
[Streak 5 Android Development] LittleNinja:
Thanks _n0p_,

Uninstalled DSPmanager via rootexplorer as it was using too much RAM.

and i'll use DSC Gain "as it is" to avoid exploding my streak :D

JB
[Streak 5 Android Development] nitin1978:
Using dsc phoenix kernel on miui 2.3.23 rom, For 2 days, found very stable, better battery life.
[Streak 5 Android Development] Agent5150:
Me too. Great battery life. Do see proxomity sensor issue where screen stays off when i try to end.the call.
[Streak 5 Android Development] TheManii:
n0p, how much work would it be to convert the kernel over to using MTP instead of USB-MSD?

(Or more specifically, a varient kernel since some still like USB-MSD)

Users with large innerSDs (or even the standard one if you dont have a huge amount of apps) would benefit from having /sdcard symlinked to /data/media as some apps complain about a missing sdcard even though it doesnt actually require it for use.

I believe the addition of /sdcard2 in android 3.1 (and why it wasnt in 3.0) was due to goog not having finished the docs for it and not anything from an implementation point of view(?).
[Streak 5 Android Development] webwolf_3000:
Battery life does seem to be better, one issue I've found is that Juice defender can't enable wifi when the screen is off, it gives up on wifi and uses 3G instead which in my experience uses more battery, not exactly a show stopper but I'd like the wifi to stay on when the phone is in sleep mode as I manually toggle it when I need it and let Juice Defender toggle it for synch, and certain apps I use (based on location)

Any way I can keep wifi alive when the phone is asleep ?
[Streak 5 Android Development] waichai:
After flash this kernel in miui rom, i can't take screenshot via menu button and vol down key. Does anyone have this problem?
[Streak 5 Android Development] Agent5150:
yes i have the same problem. Screen blinks as if a capture was done, but no file is present in sceeen_cap folder :(
[Streak 5 Android Development] waichai:
Thanks for reply. I have exact same thing as you. I was going to flash rom again to find out the problem. I guess i dont have to. Its the kernel issue.
[Streak 5 Android Development] sinan33:
[/COLOR]

Hi!I can't find the screen_cap folder.How can i find it?
[Streak 5 Android Development] _n0p_:
TheManii, i'm unsure of terminology, but i think it can be simply done by modifying mount points and vold.conf.

--

Screenshots - this may be a side effect of key filtering hack.

--

WiFi driver - i'll compile and upload WiFi driver with hPa's patch.
[Streak 5 Android Development] _2bad4u_:
I don't have the screen_cap problem and i'm using your kernel_n0p_(thank you), the battery life is great :X phone works flawless, right now it's unplug for 27 hours and i still have 34% left with almost 2 hours of internet watching movies and searching for movies , 40 min of phone chat and some msgs. this is the standard battery with modf to init.streak.post_boot.sh

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

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

Dpi 190 after installing all i need from market :)

p.s. i did a fresh install.
[Streak 5 Android Development] TheManii:
MTP: instead of appearing as a standard usb mass storage device (ie a glorified flash drive), MTP is a different usb protocol for sending data.

The main point is that USB-MSD requires you to unmount the partition from the device before you can make it visible to the host (ie the pc). If you symlinked /data/media -> /sdcard, you would need to unmount /data to make it visible over usb, which is a bad thing for android.

MTP lets you interact with files without having to unmount anything, with the downside that you dont have direct access to the filesystem. It abstracts the filesystem, kind of like how FTP abstracts it (you get files, folders, and permissions, but you cant format a fs over ftp as ftp isnt designed for that).

It needs to be enabled at the kernel level though (I assume) as the kernel needs to not use USB-MSD and make it visible though the mtp initatior. I'm pretty sure it's kernel level since the S7/S10 use MTP and they dont have a USB LUN file (which is used for USB-MSD mounting, or rather it's a status report meta-file that is populated when the device has sucessfully been mounted on a host pc)

vold/mounts would be how you handle the actual outerSD afterwards.

I dont know if it'll help much, but you could look at the S7 336 and 506 kern sources. I believe the S7 used USB-MSD for froyo and moved over to MTP for HC. (I'm not 100% sure about it on froyo, i've never had it on my S7)
[Streak 5 Android Development] sinan33:
The screen cap doesn't work for me too,also i can't see such a folder which named as screen_cap.ps:i am on miui 2.3.23 and it is a fresh install.
[Streak 5 Android Development] _2bad4u_:
I copy all the content from miui kernel made by _n0p_ in the miui rom and i only flash once, i had that problem in the past i don't really thinc is from the kernel i thinc is something alse.
[Streak 5 Android Development] _n0p_:
First post updated:

WiFi module with original hPa's patch available.

Suitable for both kernel versions.
[Streak 5 Android Development] waichai:
Under MIUI folder on your SD-Card.
[Streak 5 Android Development] sinan33:
There is not such a folder under MIUI folder.
[Streak 5 Android Development] sinan33:
My car's audio can't read the contents of my sd card.When i was using DSC Rom it can read the sd card and i can listen my mp3 files over my car audio.
[Streak 5 Android Development] sinan33:
When i unmount the sd card the screen cap works and stor the screen shot to /data/sdcard/MIUI/screen_cap then when i mount he sd card it moves the caps to sd card.

This problem was a common problem on old roms.

Can anyone fix it?
[Streak 5 Android Development] sbdolphine:
I'm using CM7 and It works fine.

But I experience the camera problem twice. I don't know it's the Kernel's problem or CM7's own problem which I didn't figure out it but it happens after I using the Phoenix Kernel.

This problem solve by reboot the device or just turn off the camara application and wait.

Except that this Kernel doesn't saw any problem to use. Great job _n0p_!
[Streak 5 Android Development] Akhil:
Hello nop!

Great kernel.. thank you !

Just wanted to know that can you make the phoenix_min3 kernel for cm7?
[Streak 5 Android Development] _n0p_:
It's pretty much like min3 at frequency table level.
[Streak 5 Android Development] TheManii:
n0p, can you tell me where the code is that controls if init.streak.post_boot.sh is execed on boot or not?

I assume it's somewhere in the init scripts in the ramdisk and not in the kernel itself.

CM7.2 for the venue doesnt seem to init it's equivilent (and it should, as it's nearly identical source code wise to the S5)

If it's in the ramdisk perhaps I've merely missed where it is in that.
[Streak 5 Android Development] _n0p_:
Sure, it's in ramdisk (init.streak.rc)
[Streak 5 Android Development] TheManii:
Ok thanks, I thought so.

I'm gonna need to modify the venue ramdisk then as hPa musta turned it off when he made his changes.
[Streak 5 Android Development] msprakashmmc:
Hi guys, This work is really awesome on my MIUI ROM.. Great work nop & DSC team..:) But Is there anyway to make screenshot to work since i often use this feature.. So Pls fix it, if possible.. Thanks and best regards..
[Streak 5 Android Development] _n0p_:
You see, I personnaly don't plan to migrate to MIUI and i've no idea what is really causing this bug, so it won't be fixed (at least by me) in near future.
[Streak 5 Android Development] LittleNinja:
Hello,

I'd to set values for CPU between 128 to 245 mhz, something like 160 and 192.

Values are set with 6 digits (128000, 245760, etc...), so how can i set correct values for 160 and 192 ? 160000 and 192000 ?

JB
[Streak 5 Android Development] _n0p_:
This frequencies are not in table, so you can't set them.
[Streak 5 Android Development] sinan33:
Sergei the phoenix kernel with hpa patch crashes the wifi and it sets the cpu frequency to 1.3 Ghz by default.
[Streak 5 Android Development] _n0p_:
sinan33, which exact kernel and ROM have you flashed?
[Streak 5 Android Development] sinan33:
Sergei, i flashed and tested both of the kernels,the patchless one works perfect except screen shot function.The kernel with hpa's patch breaks the wifi it doesn't turn on and it's defaukt cpu setting value is 1.3 Ghz.I am using miui 2.3.23.

Ps: 2bad4u told that if you integrate the kernel to the Rom,screen shot function works already.
[Streak 5 Android Development] Edrill:
Anyone have a problem of not being able to hear people speaking while using the handset?! The headset and the phone speaker work fine. The first few seconds of the call, I can hear the person on the other side albeit with a lot of breaking up, and then it goes silent. I switch to the phone speaker or plugin my headset and I can hear them fine.

I first started seeing this problem after I flashed the Phoenix kernel on MIUI 2.3.23. Thinking it might be something to do with that, I flashed the original MIUI zip file again, but the problem still persisted. After that, I decided to go back to CM7. Deleted caches, factory resetted, etc. and I still have the same problem with CM7 too! Tried CM7 with and without the Phoenix kernel without any change. Anything else I could try here?
[Streak 5 Android Development] nitin1978:
hey nop, i integrate the Phoenix kernel for miui in miui rom, everything is working except the wifi, wifi and wifi tethering showing error, with the same kernel. however its working good if upgraded to previous kernel.
[Streak 5 Android Development] sinan33:
Try the kernel that doesn't include hPA's patch,it works without any issue.2bad4u integrated it to 2.3.23 and i flashed the ROM.Everything works fast,stable and smooth, except video recorder; i solve video recorder issue by editing the build.prop.

Now,the ROM runs very smooth and issueless.

---------- Post added at 06:57 AM ---------- Previous post was at 06:32 AM ----------

And LordMorphous made a framework correction file for the automatic brightness-custom settings issue,he released it under CM7 thread.
[Streak 5 Android Development] sinan33:
@nop

Miui with phoenix kernel,now connects to my car audio and i can listen music from my DS 5.So usb automount works perfect.Thank you nop and the dsc team; you are the men!
[Streak 5 Android Development] mrkavanagh:
Much better battery life on CM7
[Streak 5 Android Development] pigletiger:
I can confirm that USB automount works great on CM7.2 with this kernel
[Streak 5 Android Development] Cryogen:
Please tell me how to use DSC gain to max the MIC volume. I have imstalled build MIUI 202170 and the kernel is from the link for MIUI 2.x.x.

Thank you very much. I do a lot of talking on my streak and would really appreciate the effort to help me.
[Streak 5 Android Development] _n0p_:
Mic gain control is not possible in the DSC Gain. I think it's already at maximum in the driver.
[Streak 5 Android Development] lunadomain:
fix for mic with Skype and voip apps

People can't hear me when using Skype. They just hear static. I tried using the Skype 'Echo Test' and when it plays back my voice, I hear static, hissing. Any way to fix this? I already tried adjusting the microphone with DSC Gain.
[Streak 5 Android Development] _n0p_:
I don't think it's a kernel problem, as Skyle works fine in DSC.
[Streak 5 Android Development] Edrill:
For the Skype problem, do you have your Streak overclocked to 1Ghz+?? If yes, reduce it to 998Mhz and it should work. I had the same problem where no one could heard me via Skype. Reducing the max OC to 998Mhz fixed the problem. Anything over 1Ghz seems to cause this problem.
[Streak 5 Android Development] TheManii:
I just realized something: Cm7 only saves a single file to firstboot: powerlog.log

Depending on how important it is, i was thinking of symlinking /firstboot/media to /sdcard and /mnt/sdcard to /sdcard/sd_ext

I dont know how dangerous it is to unmount firstboot as it still saves powerlog.

But if it works CM7 users can get nearly 1gb of extra space.

Also if you had replaced your innersd you could do the same with innersd0p7.

though MTP would still be better, having symlinks only require minor changes to the kern init. Hmm though there is the actual issue of mounting, as windows cant handle yaffs2 partitions, which using MTP would also fix (as its a transfer protocol, the pc simply sees files and not the underlying fs)

Merely making innersd0p6 larger isnt entirely enough since some apps simply refuse to check the size of data and want to storr stuff to /sdcard

Finally: is it safe for the CM kern to be mounted as ext4?

I dont know if you or hPa did it, but if you use streakmod it only reformats it to ext3.
[Streak 5 Android Development] _n0p_:
/firstboot is only 140M
[Streak 5 Android Development] TheManii:
Oops you're right, I was getting confusing the size of the entire nand.

It's not really worth working on that much then, but I still have my own uses for it.
[Streak 5 Android Development] Cryogen:
Is this KERNEL required for MIUI 2.3.23 ? Thanks

In about :

Build

MIUI-203230

Kernel

2.6.35-14-DSC-Team-Phoenix+985hPaKick@maverick-amd64 #60

Mon Feb 27 01:48:04 KST 2012
[Streak 5 Android Development] _n0p_:
No, it's not required.

If you experience battery drain and/or - irresponsive screen after a call or power button jittering - yiu might give it a try.
[Streak 5 Android Development] binary_boy01:
HI _n0p_,

great kernel!!!

Confirmed to be working without any issues (none at all), over miui 2.3.2X.

Camera, wifi, sound (exceptional)......no problems at all.

Also phone feels very responsive and touch also. Just installed so no feed back about battery like (i have 81% left), but as soon as I'll give it a full charge/discharge, I'll come back with feed back.

Until then, keep-up the good work :)

Great work mate,

Cheers,

C
[Streak 5 Android Development] lunadomain:
I have my Streak running at 998 or lower and I still have issues with the sound. I tried DSC Gain, and still the same problem.
[Streak 5 Android Development] sinan33:
@nop

When i flash the phoenix kernel over a miui rom,the screen cap doesn't work,but when i flash a phoenix integrated miui rom,everything works.

Would you take a look at for this issue?
[Streak 5 Android Development] _n0p_:
sinan33, tbh, i've no idea.
[Streak 5 Android Development] _n0p_:
Test kernels.

This is a test, so please keep previous release handy on SD card.

I didn't test it myself - it's quite blind patch and compile work.

About it:

http://xdaforums.com/showpost.php?p=25291276&postcount=3812

Main - configurable Mugen extended battery support.

CM7:

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

Mirror @ khoacoi:

http://www.littlemaruko.com/Nopteam/DSC_Phoenix_CM-test.zip

MIUI:

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

Mirror @ khoacoi:

http://www.littlemaruko.com/Nopteam/DSC_Phoenix_MIUI-test.zip

I hope they work :)

Sergei,

DSC Team.
[Streak 5 Android Development] _2bad4u_:
Download links don't work.
[Streak 5 Android Development] _n0p_:
Oops.

Fixed.
[Streak 5 Android Development] angelerikz:
Downloading it right now, will report once flashed and used
[Streak 5 Android Development] besony:
Flashed the new -test-kernel

Hey, n0p, I flashed the test-kernel (just like we flash any other zip - from streakmod recovery )

But- I get stuck at DELL logo itself.

( did a battery pull out twice ).

So- I flashed the (first post) previous Kernel.

again- I was at the bootanimation for quite long time.

I am through in- CM now.

I saw a bunch of FCs on first boot :(

Should I Nandroid-restore if some problem occurs in flashing something?

Anything to be done differently?

thanks,

Sony.
[Streak 5 Android Development] _n0p_:
besony, thanks for testing.

--

Did Streak respond to cable connection when it got stuck on Dell logo?
[Streak 5 Android Development] besony:
no-problem! - pleasure and responsibility to do so :)

If you are taking so much pain to build it - least rest us can do- is test/ give feedback/donate/thank :D

Streak was totally stuck at Dell logo.

No response to USB connection either.

( by response - I mean, it being even detected by PC as a device )

Thanks,

Sony.

EDIT-

___________

Strange thing- :o

I tried flashing Kernel_test again ( just to recheck- if it responds)

- over already flashed Kernel_1.0.

Now this time- It did boot - ( and bootanimation was like normal time )

___________

If it helps- (I know BMs are not exactly the indicator of actual performance or effeciency ) - but- I am sure it means something!

I did AnTuTu BM run on Kernel_1.0 -- Score- 2565 ( CPU tops-1265 Mhz)

And, again on flashing Kernel_test -- Score-2916 ( CPU tops - 1265 Mhz) :eek:

No Lags in either of the cases.

For the FCs I uninstalled - cleared cache - reinstalled the 3 FCing apps.- that's solved
[Streak 5 Android Development] _n0p_:
Ok, at least it boots :)

Next, on FC - what does logcat show you?
[Streak 5 Android Development] besony:
Hey n0p,

If you would like me to test it in any particular manner (clean wipes/fresh installs/ with or w/o any nandroids or anything basically - let me know.

I have got another base-phone for my calling/messaging needs.

Till then- I will keep the Kernel_test ON as it is now.

and check -test for stability.

Thanks,

Sony.
[Streak 5 Android Development] lordmorphous:
Gave the test kernel a run. Flashed and booted with no problems. I didn't wipe any caches. Running fine, don't know if there is a difference in performance or not.
[Streak 5 Android Development] _n0p_:
lordmorphous, there should be no difference in speed/battery.

Users with Mugen extended batteries should benefit from this test kernel, as it contains support for them.
[Streak 5 Android Development] nitin1978:
Hi n0p,

I want to know if any of your kernel support swap partition???
[Streak 5 Android Development] _n0p_:
No, swap is not supported.

I can enable it, but you must keep in mind that Android manages app mem itself.
[Streak 5 Android Development] nitin1978:
i was just asking whether the kernel supports swapping or not.

read so many articals on swapping, seem to be useless on android....

Thanks
[Streak 5 Android Development] sinan33:
Hi Nitin!

Are you working on developing another ROM for DS5?