yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] raychang:
Newest discoveries to recreate the WiFi state corruption

In post # 161, I thought I have to wait 30 minutes for the Wifi issue to recreate. Now I think there are easier ways to recreate the issues.

With the v1.2 reoriented kernel flashed in, turn on the Wifi and set it to "Never Sleep" (it's in Settings->Wireless and Network->Wi-Fi Settings-> Menu->Advanced->WiFi->Sleep Policy.).

Then press and hold the power button for about 3 sec until the Menu "Phone options" (Silence mode, Flight mode, Power off) appears. Release the power button, wait 3 sec, then press but not hold the Power button again very briefly, the screen will be locked. Wait for 10 sec, press but not hold the Power button again very briefly and sweep the glass screen to unlock the screen, and you can see the WiFi logo is still in the top Notification bar, but at this moment, if you use browser to go to any other URLs in the bookmark (or using Market or email), you will find that the WiFi is indeed non-functional (corrupted state?). The easy way to revive the wifi connection is to turn wifi off and then turn the wifi on (from Notification bar).

The same steps will not produce this issue wifi state corruption in the stock kernel, and I think this wifi state corruption has something to do with the codes related to "Power button" and sleep mode in the v1.2 reoriented kernel.
[Captivate Android Development] Zilch25:
Couldn't say, but I'd imagine it would be a bit easier to get it rolling under WinMo.

So wait you have MobileAP running without issues using this kernel? O_O
[Captivate Android Development] TheTodFather:
i was wondering when u where going to put that together. I said it 3 times now...lol

Yes it did... WOOOOOOHOOOOOO

I flashed jh7

then sre1.3c

then kernal

then modem

bam! it worked so perhaps the kernal was pointiing there but the settings.apk wasnt there to communicate
[Captivate Android Development] Zilch25:
I kept reading it, but I didn't think this kernel supported init.d, so I didn't think the MobileAP stuff could work... perhaps it does O_o, just didn't see it int he release notes
[Captivate Android Development] TheTodFather:
this is the my attempt to let you know i got it working
[Captivate Android Development] TheTodFather:
he added it in 1.2 i had to have it to be able to tether for work. I got to get some shut eye. I can hardly wait to brag to the att guys that work 5 feet from me. LOL
[Captivate Android Development] Zilch25:
Using these steps I can reproduce the problem! Yeah that is a bit odd, not sure what to make of it. In addition when I enabled Never Sleep mode my phone lost connection to my AP (which is 2 feet from my phone), couldn't find it, then hard locked at a black screen on reboot.

However reverting sleep mode to screen off didn't result in the same lock up. Certainly something weird with never sleep mode. Now the question is- is this a problem in the I9000 kernel, or something that's occurred as a result of the merge...
[Captivate Android Development] Zilch25:
Well derp... I didn't see it in his patch notes, maybe I'm slow tonight =P Nice to know though lol
[Captivate Android Development] Psytra:
I can verify that waiting 30 mins does shut off wifi and just the phantom bars are there. I also tried your power button combo and had the same results as you.

After enabling never sleep my phone would flicker into sleep mode when I would push the button to bring it out of it. I would push it and it would wake up for a second then go back into sleep mode without me pushing the button.
[Captivate Android Development] TheTodFather:
ARghhh! I knew it! WHen i came to work my win7 laptop as predicted said limited connection. It wont connect, driver issue i'm sure of. What is so different with this that would cause my driver to freak out!???

>>>>updating drivers...i'm going to squash this bug. Bug is dead! Problem was crusty drivers! So I about to put Eugenes pimp rom back on and test it one last time! Good to Go! Everything works. Hopefully limited connection error is at bay. So far so good!
[Captivate Android Development] anosis:
When you did this, did you also follow the original's thread suggestion of flashing the JF6 first OR did you just flash the JH7 on top of what you had, then the kernal and then the modem? Also I am assuming you used the JG8 or JH2 modem as Zilch suggested, right?

Thanks
[Captivate Android Development] TheTodFather:
If you want to be extra careful you can flash jf6 first, I don't think it will give you any problems. Make sure if you have voodoo to get it off first, better yet disabled then when you flash it will totally get rid of it besides the little turd file you can erase after you reflash the kernal after disabling it. (important)

I've only used the jh8 but i would recommend the jh2.

!. So if you want to be safe flash jf6 (then optional jh7) , however i'm using Eugenes rom it comes with mobileAP and will save you a step if you want to enable it. If not you will have to flash your firmware you want then flash SRE1.3c.

2.Then flash 1.2 kernal put it in pda

3. Flash modem.bin in phone (i like jh2)

You will have Hspa working and MobileAP

If you don't want mobileAP then skip the SRE1.3c step.

Don't worry about what the OP says just follow my steps and you will be good to go. Just make sure you put the kernal in the pda and modem in phone.
[Captivate Android Development] xcaliburinhand:
The service required for mobile ap (aka wireless tether) starts with system startup in I9000 kernels. The line is commented out in I897 kernels. That is why wireless tether can work without init.d scripts.
[Captivate Android Development] Kaik541:
with all the advice I've been attempting to give out, you'd think I'd be a little more knowledgeable.

I'm currently running JM8 with OXX CSC set to EUR and reoriented kernel 1.2 (everything SEEMS to be working fine). my only remaining step is to flash the JH2 i9000m modem before I plug my SIM back in.

when I do this in Odin, should I use the 512.pit still? I'm just so happy with the setup (minus HSUPA) that I don't want to have to have to start all over if I'm not right about this

edit: was just about to add what xcalibur did. we don't need init.d scripts for mobile AP anymore since this is an i9000 kernel which has it's own functional script baked in.

edit 2: whelp, just went ahead and flashed it in odin with the 512.pit and re-partition NOT selected and seeing UGJH2 baseband. time to place a call and see if it works
[Captivate Android Development] Kaik541:
wooooooooow. ok had an issue with downloading from the market, clearing cache and rebooting fixed. when I turned the phone off though, I had to do a battery pull before it would power back on (haven't a clue why). but man, mobile AP is functional and I'm seeing Download of 1739 kb/s and upload of 895 kb/s with 2 out of 4 bars! voice calls work and so does data!

excellent work xcalibur, throw up a donation link so everyone clamoring for HSUPA can throw in their financial support :D

edit: yikes, clockwork freezes for me when I try to backup the ROM, but pulling the battery and replugging causes it to start performing the backup (hoping this battery pulling thing isn't going to be a recurring thing here >_>)
[Captivate Android Development] gunnyman:
I don't suppose you would mind putting your nandroid back up up for download? I don't have access to a PC so Odin is out. :(
[Captivate Android Development] Kaik541:
unfortunately, without flashing the kernel and the modem, this nandroid wouldn't be too helpful and the nandroid I performed has my gmail account already tied to it. you can use Odin with virtualbox or even bootcamp it. If I had more time today, I'd revert back to a clean JH8 and backup, but I'm actually about to walk out the door and need to use this thing as the GPS (which by the way locked on inside my house where I only have 2 bars of reception and am surrounded by trees o.O is entirely a new experience for me)
[Captivate Android Development] xcaliburinhand:
Try v1.2.1, I switched over to the captivate broadcom module. Seems to resolve this. Still testing it out.
[Captivate Android Development] doctahjeph:
Can you point me in the right direction for the JH2 modem? Also is there differences (better) than JG8?
[Captivate Android Development] Psytra:
Why did you use the OXX csc? I would think the OXA would be a better choice.
[Captivate Android Development] Kaik541:
it's the one Zilch suggested as known working. that really doesn't matter though since it's ubranded.

the JH2 modem was posted by zilch a few pages back, just look for it

edit: should add 1.2.1 seems to have fixed my wifi issues, will report back after letting the phone sit a bit longer.
[Captivate Android Development] tzones:
Hi,

I am using this kernel(1.2) along with the I9000XWJM8 ROM. So far everything seems to be working fine except that when ever my phone goes to sleep, there seems to be some problem clicking on the power button and unlocking the phone by dragging the frame. It's not smooth and screen keeps going on/off for sometime and it's after a little struggle, I will be able to unlock it which I haven't seen it in regular captivate rom/kernel. Is this something among the issues to be fixed or am I doing something wrong?

thanks

TZ
[Captivate Android Development] doctahjeph:
Thanks! I found it. I usually will read and seach for what I need, but I was driving around and surfing the net at the same time...hehehe.
[Captivate Android Development] Psytra:
I had the same problem on UGJG8. I would push the power button to wake the phone and it would come on then shut off again. I am in the middle of doing an install of XWJM8 and I will see if I have the same issue. I hope not because that is the biggest annoyance I have found using the I9000 roms.
[Captivate Android Development] Kaik541:
I was having this problem too with 1.2... I installed 1.2.1 over top of it and I no longer seem to be having this problem. either this is something else he's resolved (without even knowing it was a problem) or it worked itself out over time through a few reboots. either way, when I put 1.2.1 on, it's stopped entirely. the glass screen is still a bit jittery as you "sweep" it, but that's the ROM not the kernel.

JM8 with UGJH2 modem OXX CSC set to EUR
[Captivate Android Development] Psytra:
I will test in a little bit right now I am testing what happens if I do not flash a new csc file and do not partition. What I hope happens is it uses the stock csc.
[Captivate Android Development] Kaik541:
actually I've done this before, all that happens is if you use odin to auto-reboot, you'll be taken to a broken recovery complaining about a lack of CSC. from there you'll need to adb reboot download and flash a stock kernel and it'll move past it.

from there if you type *#*#1234#*#* you'll have a blank CSC :D

if you just use an unbranded Multi-CSC like OXA or OXX and set it to EUR (Europe), you'll receive the same result. the problem is, sometimes without a CSC, the phone will throw a fit.
[Captivate Android Development] Psytra:
That is good to know. I wonder if it would be possible to take the csc from a rom like UCJH7 and use it.
[Captivate Android Development] Kaik541:
as for that, I don't know if that's possible, but I don't know why you would even want to. CSC is the carrier specific apps and files, all you'd be doing is adding back AT&T's apps, which you can do from a deodexed system dump. all CSC does is essentially "brand" the phone.
[Captivate Android Development] xidium:
I just flashed JM8 with stock captivate kernel and OXXJM1 csc. I just downloaded reoriented kernel 1.2.1 and when i try to install through recovery it says installation aborted. What am I doing wrong?
[Captivate Android Development] Kaik541:
it must be done through clockwork recovery! also, you should flash the UGJH2 modem as that will give you a slightly more clear audio and better upload/download speeds
[Captivate Android Development] techmik67:
Just when I thought I understood.....

I am running UCJH7, JH7 modem, stock csc (NEVER touched it).

SRE v 2.0b7 w/Voodoo DISABLED

So i odin the jh2 modem ONLY(?)

then clockwork install from sd the 2.1 kernel from OP?
[Captivate Android Development] Kaik541:
it would always be best to go to a more "stock" option, but you SHOULD be able to just flash the modem and then install the zip from clockwork.

the thing is, it is NOT the Captivate JH2, it is the Bell Vibrant i9000m UGJH2 modem. Zilch posted it a few pages back or you can download it with the rest of the JH2 package from samfirmware.com

all the things you would gain from putting this on top of a voodoo-disabled SRE would be achieved by using an i9000 ROM. it's a little more tricky (including the additional step of flashing back to JF6), but still an easy enough trip.
[Captivate Android Development] tzones:
If someone is running JM8 with stock captivate kernel, would it still be necessary to flash with JH2 modem? Will there be any advantage of increased clarity in the audio in that case?

thx,

TZ
[Captivate Android Development] Kaik541:
no, the stock captivate kernel won't gain anything if you flash UGJH2 modem, but this is not a thread about running European firmware on our phones, this is about running the re-oriented kernel (and it's implied side effects like HSUPA). please keep questions like yours to the relevant thread (started by Reaver117 and is actually a sticky)
[Captivate Android Development] Psytra:
Since upgrading the kernel to 1.2.1 I can no longer recreate the wifi problems. I tried leaving the phone idle and using the power button method and wifi seems to stay working.
[Captivate Android Development] raychang:
xcalibur,

Thanks a lot, yes, I tested a few times, the problems seemed to have gone. I did a speedtest at a gas station (with 4 bars), the DL is 3307, the UL is 1215 kbps. The kernel is very useful and is becoming perfect.
[Captivate Android Development] raychang:
I have observed the behaviors, it sometimes becomes difficult to unlock the screen. I think it is because of some problems in the sleep mode in the cell phone (I have observed it in JM7 JM8 UGJG8 stock ROMs with rooting but no other modifications). The wifi issue may be due to the sleep mode in the wifi chip, but seemed to have been resolved by the v1.2.1.
[Captivate Android Development] TheTodFather:
xcalibur, can you include MobileAP, as in a package kernal +apk . That would make this much smoother because i am having problems here and there with this limited connectivity. I tried connecting let another captivate tether from my connection so i could show the hspa and it was doing the same thing my laptop is doing...limited connection. Anyone else experience this or is it me? Thanks for all your hard work I really love my phone.
[Captivate Android Development] designgears:
HEY, add voodoo and this will go into Cognition!
[Captivate Android Development] TMC_Sherpa:
I've been messing with voodoo all day. However some idiot, could have been anyone. did you get a good look at him? I didn't think so, didn't compile the source straight up first to make sure the build environment was sane so I, Um I mean some idiot, spent twelve hours looking for the wrong problem. Trees? what trees?

Ah well, I never got along with kernels anyway.

Sherpa
[Captivate Android Development] anosis:
Thanks for the advice. I tried to download SRE1.3b but realized that it was no longer up (likely due to the fact that designgear had released SRE2 'COG').

Though as I am reading further through the threads realized that the OP had figured out the AP issues that seemed to plague all of us on european roms.

So now I got JG8 running with the JH2 rom and the this kernal at version 1.2.1. All looks good and I am pretty happy.

Thanks again.
[Captivate Android Development] TheTodFather:
Oh yeah so Gears can make more DONATIONS!!! Open source is so awesome. So much money to be made. That so messed up. I rather see a developer like Xcalibur have his own ROM unless their was a way you would share with all the developers that contributed to your ROM.

Perhaps create a team. That would be tight! I think that would be awesome because honestly half the people that donate think that you developed half those things. Its the groundbreaking devs that need the money just as bad. Without them SRE or cognition would be nothing.

This is one of the cons of open source. People take it and make it theirs and put up a billboard size donate button.
[Captivate Android Development] BrettS:
So what are the differences between the 2.1 and 2.2 kernels? I'm running a 2.2 ROM on my captivate and the rotation/sensor issue is rather annoying. I know there is no source for 2.2 yet, but would it be possible to make a kernel that would work with 2.2 with the 2.1 source?

Just dreaming a little here;)

Brett
[Captivate Android Development] Kaik541:
no, it is not possible since the kernel/modules for 2.1 is based on 2.6.29 while 2.2 is based on either 2.6.32 or 2.6.35
[Captivate Android Development] cruiserbax:
Not Impossible but not easy by any means. If you look at the WinMo section under something like XDAndroid, you will see how slow progress is. It can take a long time to solve a small problem because there is no source for those particular devices and that requires devs to, in a way start from scratch, and that means libs, drivers, modules, ect. I know this would just be a kernel but there is still much device specific stuff that goes into a kernel before it is compiled, and all of that would have to be updated for the 2.6.32.x build. If you are really craving some Froyo you may want to read the I9000 on Captivate thread, Currently I have a (acceptable to me) workaround for sound logic, rotation and the home key. so (for me) it is usable for every day use
[Captivate Android Development] BrettS:
Thanks for the reply... I've certainly never tried to build a kernel before, so I was kind hoping it might be a bit easier than that... of course, if it was that easy then I imagine someone would have done it by now.

I suppose I'll just have to be patient and wait for the 2.2 source to be released, but I've never been terribly good at being patient.

[/QUOTE]If you are really craving some Froyo you may want to read the I9000 on Captivate thread, Currently I have a (acceptable to me) workaround for sound logic, rotation and the home key. so (for me) it is usable for every day use[/QUOTE]

I've been running JPH for a couple of days now and I've got a good home key workaround and a filed off headphone jack stuck in the phone to get the audio to work, so I'm happy with those, but I would definitely like to get the sensors and auto rotation to work.

Right now I'm just using the rotation lock and then unlocking it when I need to use something in landscape and that's acceptable and I can live with it, but it's not ideal. Are you doing anything different that might work better?

Thanks again,

Brett
[Captivate Android Development] cruiserbax:
Yes, I will undo what I've done and redo it to refresh my memory (probably this evening) I used the command line calibration tool as well as the one at the bottom of the "Display" menu in settings but cannot remember which one got me where I am. It stays rotated vertical so that you don't have to use the rotation lock and it works for apps that ignore the lock. I had to place it very still in a very odd angle when calibrating. I used an offset sideways angle opposite of the angle that showed it vertical in the "Display" calibration menu. Landscape mode requires you to slightly over compensate the rotation to get it to rotate, also it's flipped so the "SAMSUNG" logo is in your left hand" but it does work. Also I did some file pushing/changing and some other things (some of which I undid) but now my proximity sensor works perfectly in calls (I am not playing I am for real) I will make a video with my old Nexus One (now my wifes phone) if you would like.

EDIT: Ok so I was just messing around with it and noticed that I completely undid all of the file changes that I had made so I am thinking that recalibrating the sensor made the proximity sensor work, checking on it now.

EDIT: I am sorry for filling up this thread with off topic posts I will move it to somewhere appropriate (Just realized sorry)
[Captivate Android Development] BrettS:
Move it here... http://xdaforums.com/showthread.php?t=785811&page=4 I think that's more appropriate.
[Captivate Android Development] raychang:
Wifi Sleep Mode may still have some problems

I just left my phpne for more than 3 hours without touching it (but still plugged in the charger). After that, I touch the power button (but before I swept the glass screen to unlock it), the screen lightened up and asked me to unlock it, I can see that in the Notification Bar, the logo of the 3G or 'H' instead of the Wifi logo there (while I have set the wifi policy as "Never Sleep"). After I unlocked the screen, I can see that the 3G or 'H' became Wifi logo very soon after the screen has been unlocked. The wifi has been indeed waked up after that. The internet can reach out under wifi.

It indicated that the wifi did go into sleep mode in the reoriented kernel after several hours (even if I have set wifi as never sleep). I did not see the stock kernel performed that way.
[Captivate Android Development] anilkuj:
This is awesome enjoying HSUPA with Voodoo on Cognition ROM!!!
[Captivate Android Development] DOAlaboratories:
so if i flash the odin version on cognition, do i have to diasble my lagfix first? and is it built in with the JG8 modem or do i have to flash that myself?
[Captivate Android Development] Kaik541:
yes you have to disable the lagfix (this one does not support voodoo yet) and you should flash UGJH2, not JG8
[Captivate Android Development] Pirateghost:
did you just flash the modem file?
[Captivate Android Development] DOAlaboratories:
sorry, i meant i wanted to add HSUPA so i was wondering if JG8 was the right wayto go.
[Captivate Android Development] Pirateghost:
i imagine that we cant flash the jh2 modem if we are on cognition rom? or do we need to flash kernel+jh2 modem?
[Captivate Android Development] anilkuj:
i flashed cognition and w/o booting into the rom

flashed this kernel and JG8 modem with ODIN .
[Captivate Android Development] Pirateghost:
hmmmm....think i will break it all if i just flash the modem on cog?

LOL
[Captivate Android Development] anilkuj:
JG8 modem won't work with captivate kernel , HSUPA will work but your voice calls wont work ,

you need to flash this reoriented kernel ( which has voodoo support now )

and then flash JG8 modem

ou will have full HSUPA and voodoo.
[Captivate Android Development] Pirateghost:
i read that the jh2 modem was better....know anything about that?
[Captivate Android Development] anilkuj:
yes thats true , i use that one.
[Captivate Android Development] DOAlaboratories:
never mindd, i just flashed. hopefullyit's okay...
[Captivate Android Development] anilkuj:
thats correct , and put this kernel tar in the pda and put your phone in download mode and flash away
[Captivate Android Development] DOAlaboratories:
still reads 3g...
[Captivate Android Development] anilkuj:
it will still show up as 3G , run a speed test when u have 4 or 5 bars

if your upload speed is above 300 you have HSUPA

i get 2.8 mbps down / 1.2 up.
[Captivate Android Development] TheTodFather:
it will read 3g test your upload!
[Captivate Android Development] DOAlaboratories:
203kbps down, 286kbps up. no ****. wow, that's odd, guess i gotta reflash :(
[Captivate Android Development] Pirateghost:
same here....

LOL... just ran another test. -0 kbps down 265 up
[Captivate Android Development] DOAlaboratories:
flased the JH2 modem instead, all is well. 246 ping, 2497 up, 938 down.

thanks for all the help guys :D sorry for whoring up the thread.
[Captivate Android Development] Pirateghost:
sweet. reflashed the modem and all is good. 3 bars, 1987 down 1209 up
[Captivate Android Development] krazyphire:
Okay so just to dble check if I wanted this with Cognition I would do as follows:

1-Click to stock

Flash JH7

Flash JH2 Modem w/ i9000 Reoriented Kernel

Rom Manager flash Cognition

Does that seem right to you guys?
[Captivate Android Development] Kaik541:
lol if you flash cognition, you lose HSUPA support