[DEV]Comparison of CY-MOD test1 and test2+3 - G1 Android Development

In my opinion, test 1 connection speed and respond is much faster than test2 and 3.
For example, when I browse website, the connection is fast in test1, click and load is continuously.
However, test2 and 3 just click and then wait for 5-10 seconds to load.
I tried to flash test 2 kernel to test1, it just makes test1 as same as test2 and 3.
Does it means that test 2 and 3 kernel is the problem of making connection responsless?
Anyone has the same problem?

Related

I fixed my gps!

If you use a program like visualGPSce, you may notice that you can see lots of satellites, but you can't get a fix. I managed to fix it by:
1) Setting my log file to 3200bytes (using advanced config)
2) Disabling aGPS
3) I then turned off the phone, took out the battery for 10-20 seconds and replaced it.
4) Ran the quickgps program
5) Managed to get a fix and have it working quite fast!
I don't think all of this is necessary, but I have a theory:
I have a holux gpsslim 236B and sometimes it exhibits similar behaviour if you send it screwed up commands. The way to fix that was to remove the battery and then open the case to short out the backup battery (Yep, they were so helpful in enabling it to "remember" your corrupt settings). Reassemble and the gps device works fine. I get a feeling that the raphael may also benefit from such treatment (a forced reset on the gps module).
The only other theory I have is that the gps log file was corrupt (I couldn't delete it so I just made another one) and maybe that fixed it.
I've only given it limited testing, but if it breaks, I'll let you know so you don't waste your time!
I noticed my GPS performance was much better when I set my gpslogfile to 32KB as opposed to setting it's size to 0.
Just my 2c.
Isn't the quickgps tool for agps?
So either the disabling of agps or the quickgps is not necessary
ledg3 said:
I noticed my GPS performance was much better when I set my gpslogfile to 32KB as opposed to setting it's size to 0.
Just my 2c.
Click to expand...
Click to collapse
what's the logic/reasoning behind adjusting he gpslog file? i occasionally use GPS/tomtom though i would probably consider using it more frequently if getting a signal lock didn't take anywhere from 5-15 minutes.
i currently have disabled agps (no data plan so it's useless anyway) and have no logfile set to 0 as per the suggested settings i saw on fuzemobility.com post.
Can you post the file you used to load QuickGPS? I tried to download one but could not get it to run on my XDA Serra.
@kimbja98
how long has it been working? get back to us after a month or so of solid performance... the GPS issues seem to be so random that doing almost anything can seem like it fixes it... but i hope you're right
Just used it on the train on the way into work and it was fine, took about 2 minutes to get a location.
One thing I think may have been the problem is that it thinks it should see X satellites but obviously can't and gets confused (even if there are others in clear view), which may be down to agps, quickgps (I'm not sure if they're the same thing) or corrupted log file but now those satellites it can't see get dropped from the list (you can see this happening in VisualGPSce) and it gets a location after about 5 or 6 have been found. The holux seems to get positions at 4 (which theoretically, is the minimum but could be done with 3 if altitude is negligable) but that uses the sirfstar III chipset...I don't know what the raphael uses though.
I should mention I use ROMeOS 1.40 and that may have something to do with it. Either way, I'll be giving it some fairly rigorous testing. If it does break, I'll know how long it took and it may be that the log file got full and if it that, some regular deleting may be called for.
kimbja98 said:
If you use a program like visualGPSce, you may notice that you can see lots of satellites, but you can't get a fix. I managed to fix it by:
1) Setting my log file to 3200bytes (using advanced config)
2) Disabling aGPS
3) I then turned off the phone, took out the battery for 10-20 seconds and replaced it.
4) Ran the quickgps program
5) Managed to get a fix and have it working quite fast!
I don't think all of this is necessary, but I have a theory:
I have a holux gpsslim 236B and sometimes it exhibits similar behaviour if you send it screwed up commands. The way to fix that was to remove the battery and then open the case to short out the backup battery (Yep, they were so helpful in enabling it to "remember" your corrupt settings). Reassemble and the gps device works fine. I get a feeling that the raphael may also benefit from such treatment (a forced reset on the gps module).
The only other theory I have is that the gps log file was corrupt (I couldn't delete it so I just made another one) and maybe that fixed it.
I've only given it limited testing, but if it breaks, I'll let you know so you don't waste your time!
Click to expand...
Click to collapse
YES, your method seems to be one of working the best.
Congratulation.
I use the mix of some methods in the forum, and my GPS reception is quite good, even in my room inside!!
MY CONCLUSION:
1. to get rid of useless stuffs from the system (which also bad for the sat reception), use
[ROM] [WWE]RAPHAEL WM6.1 V05 - Build 20758.1.4.1 - pdaviet.net (http://forum.xda-developers.com/showthread.php?t=438488&highlight=20758.1.4.1) and
[RADIO] Raphael Radio 1.02.25.28 (http://forum.xda-developers.com/showthread.php?t=437219)
(before installing these ROM, the first step should be installing the HARD-SPL to save your device (http://forum.xda-developers.com/showthread.php?t=410150)
2. to get a really quick fix,
take the battery out, as mentioned above, for a few minutes, to clear the GPS memory. (You can try for example igo now, you will see nothing on the sat view at this time...).
After that download QuickGPS data (the ROM I mentioned has a correct quickGPS data download!) If you see iGO sat view this time, you will see a lot of red dots immediately, and after a not too long waiting, you'll have fix)
3. to make the GPS even faster,
adjust the baudrate to 38400 (with comport4) in your navigation program. (But leave port4 and baud4800 settings in the Windows Mobile settings!!)
4. there could be some navi software, which couldn't get fix (iGO yes, for example Googlemapsmobile not every time), use GPStest (http://www.chartcross.co.uk/products/WM00002_details.asp), select com4 and baud 38400 also, minimize, and run the other navi. It WILL work!
5. after getting a fast signal, in order to get rid of lag while navigating, use this excellent method from the forum:
A. With Advanced config 3.2 http://www.touchxperience.com/fr/out...ol-32-cab.html
1. disable A-GPS
2. disable GPS logging
3. logfile name must be empty
4. old logfile name must be empty
5. maximum size of logfile must be 0
6 delete the files : \windows\GPSLogFile.txt and \windows\GPSLogFileBack.txt
Under: HKLM\SYSTEM\CurrentControlSet\GPS Intermediate Driver\
- Drivers\GpsOneDevice\PollInterval -> 100 (default is 1000)
- Drivers\InputBufferSize -> 256 (EDITED!!) (default is 4096)
- Drivers\OutputBufferSize -> 256 (EDITED!!) (default is 4096)
- Drivers\SleepOnNoData -> 100 (default is 1000)
- Multiplexer\MaxBufferSize -> 256 (EDITED!!) (by default not present, you have to create it)
AND: from
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver] leave blank the followings (delete the data from inside):
"CurrentLogFile"=" "
"OldLogFile"=" "
With these settings, I have a really cool reception!!
One more thing: if you feel that the reception going worse, do the battery-taking-quickgps-using trick again!
FOR ALL THESE INFOS THANKS FOR THE DIFFERENT MEMBERS OF THIS FORUM!!!!!
(ps: some series ((series "2" ?!)) have no any gps reception problem. If you have this series, be happy, and don't do anything...)
ps2: I've tried other methods also from the forum (for example Nadavi HTC GPS tool, etc.), and made hard reset on my phone many many times to try other methods, but the mix of these methods seems to work, the other ones are not really necessary. So this mix has no contains all the possible solutions from the forum, and this was not the way of selection without thinking..
g2tl said:
Isn't the quickgps tool for agps?
So either the disabling of agps or the quickgps is not necessary
Click to expand...
Click to collapse
as I know quickgps and agps are quite different
-quickgps is downloading the latest sat positions to get faster fix
-agps is using phone cell informations also for positioning, besides the satellites
you NEED quickGPS, DO NOT USE aGPS!!!

TURBO GPS fix on Touch Pro

TURBO GPS fix on Touch Pro
(contrary to many of the GPS fixes offered on the net)
I read a lot of fixes on how to make the Touch Pro lock on to GPS faster. Being an ex-owner of toshiba G810, which is the fastest GPS PPC i tried ever before, and noting that it uses the same GPS chip as in the Touch Pro. I tried to emulate the settings in the registry, and i got an excellent result, so would like to share that with you.
1) Many of the fixes on the net talk about turning off the A-GPS , i think this is "wrong" thing, cos when A-GPS is turned off, it would not be able to use the valuable satellite data downloaded from QuickGPS. Therefore, i use Advanced Configuration Tool to turn it back on (ENABLED).
2) I changed the HKLM\SYSTEM\CurrentControlSet\GPS Intermediate Driver\Drivers\GpsOneDevice\PollInterval -> 500 (default is 1000),
which is the same figure as in my Toshiba G810 before.
3) keep the log files untouched, i.e., DO NOT delete:
\windows\GPSLogFile.txt and \windows\GPSLogFileBack.txt
(if you have deleted those 2 files before, just create 2 blank .txt files with those filenames and put them back in \windows. When new GPS data comes in, it will append to the blank files, older data get deleted once reached the 32K limit set below.)
4) keep maximum size of logfile to the default which is 32K
Voila, now my Touch Pro always get 4 to 5 BLUE bars on my mapking (which mean dead lock on!!!) And it it wont fluctutate lock on and off intermittently.
Really urge you to try it, and let me know if you get the same results~~
Cheers everyone!
(For those who dont like tweaking with registries manually, krish_nank has been kind enough to make it into a .cab which i attach here.)
nice experience, i'll try it
hoangtuvn said:
nice experience, i'll try it
Click to expand...
Click to collapse
Please write back to see if it works welll for you. And make sure you use QuickGPS once afterwards to get the satellite data before you start GPS.
I don't have any kind of data connection with my network so AGPS is useless for me, however I did try changing the polling from 1000 to 500 and I managed to get a lock with GPS test within a few minutes inside my own house! Can't remember getting the same results before.
I can only agree that
1 - touching log files is BAD.
2 - reducing poll interval will improve the GPS lag slightly
3 - keeping A-GPS up - in my country there is no A-GPS data available since thats the data provided by the provider over the local network cells. I dont think it has anything to do with the data from Quick GPS. But i might be wrong. Anyway, Quick GPS is your friend.
4 - if you have fix problems its usually either not having Quick gps data or trying to get a fix in a bad area or under a shielded windscreen.
overtweaked?
I changed the pollig interval to 100... is it milliseconds?
I haven't tried it yet but would it be a battery drainer like this (100)?
Actually I was hoping to reduce the delay of map in garmin or oziexplorer (which are my favourites) in higher driving speeds. I tried garmin while driving over 200 km/h and there was a damn nasty delay on the map. Of course it was a stupid risk to watch the screen during these speeds
I tried 1000 (default), 250, 125, and 64 Pollinginterval and none of them were as fast as 500.
well it would be slower because you are polling to often then. best thing to do for your gps speed is update your radio to 1.12.25.19. it doesnt take long to do. then make sure agps is enabled and update your quickgps data. increasing polling from 1000 to 500 might help but i havent tried yet.
ok i changed the polling and with my radio and quickgps i got a lock in under 2 seconds. i havent seen any gps device that could do that.
The Jack of Clubs said:
ok i changed the polling and with my radio and quickgps i got a lock in under 2 seconds. i havent seen any gps device that could do that.
Click to expand...
Click to collapse
Thanks for your testing.
It seems that Toshiba G810 polling setting (i.e. 500) really works for a lot of us.
I was originally so amazed at how G810 could do it, and was so sad to see how bad my Touch Pro (which costs twice compared to the G810) is performing.
I'm glad at least now i can make my Touch Pro just as fast.
hkwildboy said:
TURBO GPS fix on Touch Pro
(contrary to many of the GPS fixes offered on the net)
I read a lot of fixes on how to make the Touch Pro lock on to GPS faster. Being an ex-owner of toshiba G810, which is the fastest GPS PPC i tried ever before, and noting that it uses the same GPS chip as in the Touch Pro. I tried to emulate the settings in the registry, and i got an excellent result, so would like to share that with you.
1) Many of the fixes on the net talk about turning off the A-GPS , i think this is "wrong" thing, cos when A-GPS is turned off, it would not be able to use the valuable satellite data downloaded from QuickGPS. Therefore, i use Advanced Configuration Tool to turn it back on (ENABLED).
2) I changed the HKLM\SYSTEM\CurrentControlSet\GPS Intermediate Driver\Drivers\GpsOneDevice\PollInterval -> 500 (default is 1000),
which is the same figure as in my Toshiba G810 before.
3) keep the log files untouched, i.e., DO NOT delete:
\windows\GPSLogFile.txt and \windows\GPSLogFileBack.txt
4) keep maximum size of logfile to the default which is 32K
Voila, now my Touch Pro always get 4 to 5 BLUE bars on my mapking (which mean dead lock on!!!) And it it wont fluctutate lock on and off intermittently.
Really urge you to try it, and let me know if you get the same results~~
Cheers everyone!
Click to expand...
Click to collapse
I have not had issues with mine with warm or hot starts (most was 30 seconds). What I need to know is from a cold start, how long it takes to perform a fix (you can verify using the HTC GPS tool).
To do a cold start, reset the unit with the button near the USB connector or if you have StartXP, use that.
I think wildboy did do a soft reset, it's kind of standard on XDA.
ok i changed the polling and with my radio and quickgps i got a lock in under 2 seconds. i havent seen any gps device that could do that.
Click to expand...
Click to collapse
Without AGPS? Or is quickGPS similar... can't remember I forget now
agps needs to be enabled for quickgps. agps hindered gps on older radios. the newest radio works really well with agps and quickgps.
Agent Blair said:
I think wildboy did do a soft reset, it's kind of standard on XDA.
Click to expand...
Click to collapse
I kinda figured as much, but I just want to be sure. Mainly because with my current settings I am getting the same performance, except when I have a cold start. I am trying to figure out a way to get better cold start performance.
Thanks a million .. your tweak is working great. now i can get my GPS locked in 7 seconds
Once again thank you.
omg, this worked for me indoors
I never played with the Log file....
I do not have a GPS*.txt file in my windows folder, using EnergyROM 2.0 4.12.09...
Will those/can those files be generated by a program other then quick gps or visualgpsce?
BBM-Lee said:
I never played with the Log file....
I do not have a GPS*.txt file in my windows folder, using EnergyROM 2.0 4.12.09...
Will those/can those files be generated by a program other then quick gps or visualgpsce?
Click to expand...
Click to collapse
Just install AdvancedConfig, this will allow you to edit the buffer size of the log files and verify their are log files in that ROM. Then you just need a Registry Editor to adjust the polling time.
Pretty strange but I haven't modified mine at all and it locks on in about 10-15 seconds which I think is pretty good, or isn't it?
TriAxisFL said:
Just install AdvancedConfig, this will allow you to edit the buffer size of the log files and verify their are log files in that ROM. Then you just need a Registry Editor to adjust the polling time.
Click to expand...
Click to collapse
Sorry, slight miscommunication..
I'm using EnergyROM 2, and i'm familiar with Adv. Config & Registry editing..
Default setting was no logging, and I can't point adv. config to the log file that doesn't exist.
If i just make ablank log/text file, and point it, will that work? Or do the log files need to have certain information in them in order to not screw up?

[KERNEL] data streaming/VOIP in standby, wifi module for HTC's OTA 2.6.35.10 kernel

Edit 31/07/2011
Updated diff files for gingerbread kernels (HTC and AOSP), and a module for the more recent HTC kernel (2.6.35.10-g308ba26) can be found later in the thread Here.
The current issue...
Note: This isn't related to the sleep mode wifi disconnections caused by MAC addresses that don't begin 00, so far as i'm aware that's been patched for a while now. Wifi remains connected fine in standby mode, but the throughput is only suitable for very light traffic.
Since compiling the cifs module for the HTC official 2.2 kernel on monday i hit a pretty massive problem when listening to music over wifi from a network share - when the screen enters standby, bandwidth drops massively, well below 100kbps. This makes music you're playing from a cifs share over wifi stutter and cut out and basically become pointless.
A little googling and searching these forums i came to find this has been a fairly massive bugbear of the nexus one and htc desire? Any kind of normal bandwidth streaming over wifi is practically useless once that screen goes into standby. Ditto for high speed transfer of large files.
That means difficult VOIP calls, and no internet radio at a decent bitrate, or cifs access to your music library.
Finding a solution...
As luck would have it, the HTC Incredible 2.6.32.15 source code was released on tuesday, and as it's basically the non-GSM variant of the Desire, i was fairly certain the HTC customised bcm4329 source code was the same as the Desire's, and it seems like it is. So armed with HTC's customised bcm4329 module sourcecode and the output of dmesg when the phone was in various states, i had a poke around.
First of all i tried editing the DTIM update interval, so the phone would wait fewer beacons to collect incoming packets while the wifi was in sleep mode, and this improved the situation, barely. In the end i just locked out the phone's deepest wifi sleep mode, PM_MAX, in favour of PM_FAST, the low power mode for wifi used when the screen is active but the phone is relying on the battery alone (There is a third mode, PM_OFF, used when the phone is powered by a usb connection, but as the name implies, all power management is disabled by it, so forget that one).
PM_MAX appears to have a very fixed latency depending upon the DTIM update interval (300ms with DTIM as the default 3), and severely limited bandwidth. PM_FAST appears to be a listen mode or active rx mode, with latency scaling to the bandwidth used. An initial ping at idle will be up to 1000ms (or even no reply) before steadying at 100-300ms. During light streaming it's more of a steady 50-70ms, and during a file transfer it's a very low 5ms. So it looks like PM_FAST keeps the wifi receiver powered up to some extent, and only powers up the transmitter when needed.
You can guess the edit i've made: Essentially my new kernel module tells the phone to keep wifi in low power mode when the screen is switched off, rather than in a full sleep mode.
Just give me the damn kernel module...
Downloads are attached to the bottom of this post.
Files are unsigned, and install with clockworkmod recovery's 'Install zip from sd card' option.
Your wifi driver must match your phone's kernel version. To check your kernel version go to Settings - About Phone - Software Information and look at Kernel version.
Files including _N_ in the name have wifi mode N support for HTC kernels (non HTC kernel versions should include mode N by default).
If you don't see a version of the module that matches your kernel version, post a request in this thread.
The results..
Well obviously now the wifi bandwidth when the screen sleeps is the same as when the screen is active, so streaming data during sleep mode is perfect, wonderful even! However, i was a little concerned with the effect on battery usage when the connection is alive but fully or partially idle.
So i just did some practical testing. Note i'm connected using 802.11g, my router doesn't support mode n, and my signal is a less than ideal -80dBm so i'm probably using a little extra power.
With the original HTC wifi module, my phone lost about 1% charge an hour with wifi permanently enabled, push gmail enabled, and sync for weather and contacts every 15 minutes.
With the new wifi module, and the same conditions (wifi always on, gmail push, sync 15 mins), i lose around 1% an hour still. Excellent, no difference.
60 minutes of 200kbit VBR mp3 playback through the speaker with the screen off used about 8% of my battery.
60 minutes of 800kbit FLAC playback through the speaker with the screen off used up 10% of my battery.
volume was set at roughly 75% for both tests.
I didn't do any testing with the earphones, but i suspect they'd be marginally lower on the power usage.
To conclude, from my brief testing this afternoon i couldn't discern a difference in battery usage when the wifi connection is left on but mostly idle, and when data is streaming it doesn't eat the entire battery charge in minutes.
Note to ROM authors
Any rom authors using 2.6.32.15 who would like to include this module in their rom, you're quite welcome to. You don't need to credit me either, although it would be nice.
This looks like it could be interesting, but I downloaded and tried to install the b/g/n version and Clockwork spits it out, aborting it as a bad zip.
Anyone else succeed in applying this mod?
Quist said:
This looks like it could be interesting, but I downloaded and tried to install the b/g/n version and Clockwork spits it out, aborting it as a bad zip.
Anyone else succeed in applying this mod?
Click to expand...
Click to collapse
Disable sign check?
xmoo said:
Disable sign check?
Click to expand...
Click to collapse
Signature check was disabled. I'm running an unsigned version of Paul's v8 WIP rom (lightning fast by the way).
Anyway, double checked and manually toggled the sign check on and off again, still same results:
Can't open...
(bad)
Installation aborted.
I just downloaded the b/g/n file and rebooted to clockworkmod and it applied without error.
Possibly you have a bad download? does the zip file open on your computer?
I'd recommend you download again, open the zip on your pc to check it downloaded properly, then copy it to your phone. Let me know how you get on.
Edit:
Just reuploaded without the signature (and erroneous boot.img stuffed in each zip by Kitchen), i downloaded and installed both versions to be sure they work. Links are updated in first post.
Works great.
I use "Twonky Server" to view pictures on my TV and the connection was lost as soon as the phone went to sleep mode. No problem now!
Thanks.
Anymore information about g or n mode?
Im still unsure if it would be good to enable n mode... there were some reports about significant higher battery drain.
Can someone compare the g and n versions running on a stock-near rom?
Thanks in advance!
Myshkinbob said:
I just downloaded the b/g/n file and rebooted to clockworkmod and it applied without error.
Possibly you have a bad download? does the zip file open on your computer?
I'd recommend you download again, open the zip on your pc to check it downloaded properly, then copy it to your phone. Let me know how you get on.
Edit:
Just reuploaded without the signature (and erroneous boot.img stuffed in each zip by Kitchen), i downloaded and installed both versions to be sure they work. Links are updated in first post.
Click to expand...
Click to collapse
Before you re-uploaded it, I noticed that when I downloaded it directly to the phone, it was clipping it at 47 kb (both the standard browser and Dolphin). Apparently Rapidshare is doing something strange through the phone browsers.
Anyway, it worked fine even before you re-uploaded. Good one!
Now I just have to figure out why I keep dropping the wifi connection after a while (didn't do that before).
May I ask you such you are using to have those incredible values for battery?
1% with WiFi and Sync (over 3g?)is a dream for me !
Thanks.
Sent from my HTC Desire using XDA App
sjauquet said:
May I ask you such you are using to have those incredible values for battery?
1% with WiFi and Sync (over 3g?)is a dream for me !
Thanks.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
The wifi signal is only -80dBm, but barely used at idle. My cell signal is amazing though (the cell tower is 100 yards from my flat), and i run the phone in 2G mode with no mobile data. My sync is done over the wifi, not the cell network.
Nice. This is exactly what I want.
Have you looked at 2.6.34.1 kernel by the way? It is the one that most AOSP ROMs in this forum build on and I do not think I have met the latency problems with those ROMs.
tested and works great my friend
A bit more info on the battery usage in this wifi power mode...
I've been out all day and took my other phone, i left the Desire on the desk, 2G 5 bar signal, wifi always on, sync enabled for gmail and weather. Battery was charged to 100 then unplugged.
After 16 hours, battery is at 93, and battery usage breaks down to:
cell standby: 34%
wifi: 33%
phone idle: 33%
That's roughly 2.5% battery usage over 16 hours, from an idling wifi always on connection just doing 15 minute syncs all day, on a fairly poor -80dBm wireless-g network.
I think it's safe to say the power usage differences are negligable compared to the stock wifi module.
Regarding the 2.6.34.2 kernels, i'm not entirely sure if i'd look at them, since they don't include HTC's own kernel changes, i'm a little wary of them working properly with all the features. Part of it is i like the sense-ui too, it seems responsive, and i'm not lacking for free ram, so i'm not sure why people dislike it so much?
I just tried to reproduce the initial effect with the original WiFi module and some music streams. Switching off the screen actually sets my ROM into powersave mode at 245MHz only. Still, I did get smooth streaming without any problems.
Is there any good way to recreate and test this issue? I simply seem not to have it.
Thanks!
I don't suppose this will work on 2.6.34 kernels, will it? I'm trying to find a fix for OpenDesire (CM6 based)...
bemymonkey said:
I don't suppose this will work on 2.6.34 kernels, will it? I'm trying to find a fix for OpenDesire (CM6 based)...
Click to expand...
Click to collapse
I'm afraid not, since the module kernel version has to match the running kernel version.
The HTC roms also use a modified wifi driver with some of their own custom code added for VoIP and a few other things, so i'm not entirely sure the sleep functions are the same in the stock bcm4329 (wifi chipset) driver.
I'll check out the opendesire kernel source and post a patch file to apply to the source if it's possible though.
Myshkinbob said:
I'll check out the opendesire kernel source and post a patch file to apply to the source if it's possible though.
Click to expand...
Click to collapse
That would be AWESOME. Might as well patch Cyanogenmod as you're at it, as all the other AOSP ROMs (including OpenDesire) will receive those changes down the line
I should warn you though: My request has already been met with resistance... some people seem to think that this is actually the way WiFi should work in standby (i.e. it should be connected, but shouldn't actually be able to do anything ). Is a toggle setting (between PSP and CAM) in any way possible?
I thought about a toggle when i first made the patch, but then i'd have to learn to add a /proc interface to the driver to do that. I'm far from a kernel guru, and hadn't touched kernel code in years till i got my Desire last month.
I had trouble locating the new git for opendesire, the old one appears to be closed. So i got hold of the teamdesire 2.6.34.5 CM6 source instead, i expect the two are identical or very close to being so.
While i was looking for the opendesire kernel source git in the rom thread, i noticed the hostility toward altering the wifi power management mode, but at least for the HTC-modified driver it's not a problem. I leave my wifi connected whenever i'm at home, and my results for overnight standby are hard to tell apart. I lose between 5-8% battery over 12 hours of standby depending on txts and pushed emails received.
Here's a patch for the CM6 stock bcm4329 driver. It's power management code is a little different to the HTC-written driver, but it should work fine. I don't really want to wipe my phone to test it on opendesire, so one thing you'll want to test is standby battery usage. I get 6-8mA standby according to CurrentWidget.
To apply it, cd into <kernel source root dir>/drivers/net/wireless/ and copy the .diff there, then do
Code:
patch -p0 < bcm4329_pmfast.diff
then it just needs a make modules with the crosscompile toolchain etc.
Let me know how you get on.
Myshkinbob said:
Here's a patch for the CM6 stock bcm4329 driver. It's power management code is a little different to the HTC-written driver, but it should work fine. I don't really want to wipe my phone to test it on opendesire, so one thing you'll want to test is standby battery usage. I get 6-8mA standby according to CurrentWidget.
To apply it, cd into <kernel source root dir>/drivers/net/wireless/ and copy the .diff there, then do
Code:
patch -p0 < bcm4329_pmfast.diff
then it just needs a make modules with the crosscompile toolchain etc.
Let me know how you get on.
Click to expand...
Click to collapse
I guess I didn't read your previous post carefully enough - thought you were talking about just posting a patch in the form of an update.zip, or a replacement driver file to push via ADB in Recovery...
I think this is a bit over my head . You may not be a kernel guru, but you're talking to an average Windows user here
Let's see if I understood this correctly: This actually patches the source code of the wireless driver by adding/removing code, before compilation? Hmmm, I'd need to learn how to compile Android first, I guess (my experience with compilation is limited to hitting the "Compile & Run" button in Visual Studio)...
Thanks for the hard work though. I'll hit up AdamG and Kali and see if they feel like integrating this...
Oh, sorry
if you're familiar with adb, do an adb shell and then in the console do...
Code:
cat /proc/config.gz > /sdcard/config.gz
then attach that to a reply here. I need the 2.6.34 config to build the module here, then i can just post a zip to apply in the recovery console.

[Q] WiFi can connect, but wont load pages and no Sync

I have problem with my Froyo Android and 2.6.25 kernel (but it was similar on .32).
I can turn ON WiFi and connect to my home network, but it has problems with loading pages (it wont load page at all most of the time, I only loaded google.cz once) and I cant even login into Google acc and Market.
My WiFi is working on notebook or other phone, but cant make it work on my Polaris and Android.
Anyone know how to fix this? Maybe some WiFi settings that Android or Cruise cant handle? Or some other fix or suggestion?
Thank you for all tips...
it wasn't kernel releated, try to change release (Fresh Froyo, Scoot's, Clemsys's)
I have tryed a few builds, but it seems to be allways the same. Wifi is connected but cant load any pages, when I restarted phone, it loads 1 page just after restart and then nothing again all the time (I cant even reload the same page again).
Its probably some settings or maybe hardare problem? I really dont know what to do or how could I test where is a problem. Probably only option is to flash WM 6.5 back and try to do something there... but still I dont know how to test if its maybe hardare problem.
So I have tryed WM 6.5 again and Wi-Fi works great there. I am glad its not hardware problem, but still it would be great to make it work on Android.
I cant access Market or sign-in account and Android is useless because of that, since USB connection also doesnt work :-/
So after I was sure WiFi is working in WM 6.5, I have tryed another Android again.
With clemsyn's RC1 build and 2.6.32 kernel I was able to at least log into Google account and access market. But WiFi is very slow only 1kB/s at max and drops a lot. I wasnt able to download Opera from market after 3hrs mainly because of disconnects. Sometimes it also crashes and show startup animation.
Now I know problem is in Android OS only, but I still dont know what to do to fix it or if it can be fixed at all (if not I have to flash WM back again :-/).
So noone has an idea?
I would be glad for any tips, because I tryed everything I found, but Internet is still dead :-/
Also with Radio 1.58.21.23 you still have that problem?
Yes, even with this radio ( 1.58.21.23) it remains exactly the same. I didnt re-flash system after latest radio update, because I dont have enough battery left for flash, so I hope it wont mind.
I will re-flash soon anyway because I am trying different setups all the time now
Only little difference seems to be between 2.6.32. and 2.6.25 kernels. While in .25 it never loads any page, in .32 I am able to load google homepage after a lot of trying (but nothing else).
I am allways downloading these throught Atools, because I dont know how to prepare different POLAIMG.NBH by myself, so I only tested two versions available there.
I dont know if it doesnt load page at all or if its sooo slow that loading timeouts. Is there any utlity where I could see if packets are being send or received? On the other hand it doesnt solve anything anyway.
But it can connect to WiFi site and with .32 it even transfer google page sometimes, so it somehow "works" and transfers some packets occasionally.
Sad thing is, that there arent much settings in Android system, so I cant play with that. I also tryed different settings on my WiFi router, but it didnt help at all.
if you use adb and ping google did you have time out?
I never used adb, but I cant find any console or link to shell in my ROM.
Should I install Android SDK and adb driver in Win or can I access it somehow in my phone?
I have downloaded "Better Terminal Emulator Pro" and "Terminal Emulator" and installed from SD card.
In command line I write
Code:
su
ping 74.125.87.104
after a few tries where I get 100% packet loss, I manage to get better results:
Code:
--- 74.125.87.104 ping statistics ---
72 packets transmitted, 9 packets received, 87% packet loss
round-trip min/avg/max = 158.338/328.306/1143.300 ms
similar on other website, also only after a few tries:
Code:
--- 77.75.72.3 ping statistics ---
51 packets transmitted, 3 packets received, 94% packet loss
round-trip min/avg/max = 1003.263/1090.418/1141.900 ms
Seems to be a problem with the connection with router...
How many devices are connected to it?
Do all devices work good?
Router itself isn't a problem. Only 1 or 2 devices are connected to it and they are all mine (notebook and mobile phone).
I thought it may be a problem, that Android port for Polaris cant handle my settings, so I tried different settings, but it was the same.
Router works well with LG Optimus One (Froyo) and even with my Polaris, only with WM 6.5.3 ROM and of course my notebook works well too.
I wonder where could be the problem as most of Polaris users have working WiFi. I dont thinkI have any different part of hardware in it and I changed all software related things many times ROM, radio, kernel.
PS: results above are with kernel 2.6.32 I believe with 2.6.25 I would have 100% packet loss all the time. As change of kernel is only thing so far that have some impact on this issue I think it could be with some setting in there. I dont know what things can be changed in there or how I could try different versions, so I only tried three versions (two that I can select in Atools) and one that came with Eclair ROM.
So I have found where can be a problem and it rly seems to be hardware releated.
As I said before, in WM 6.5 WiFi works well, but I found its only because there is option to set "Best Wi-Fi Performance (May consume more power)" in advanced settings of WiFi.
When I turn this option off, I get similar results like in Android. Wi-Fi is very slow, so it wont even load page.
I cant find similar option in Android settings, so I want to ask if there is similar option in Android hidden somewhere or maybe some shell command or file edit, how I can change it?
try to extract wifi_levels.sh from K_K vaniljeclair and change the level.
Hi,
I set it to "extreme" and it seems to be working!!!
Thank you VERY much for all your help.

T-r42 slow download speed

I have T-R42 V2.0 device and I have slow download speed over Wifi.
At start up WiFi download speed is about 7MBps, but after 1-2 minutes latter download speed drops to 0,5-06MBps and stays at his speed or lower. Upload speed is OK!!!
I have:
- excellent WiFi signal
- Wasser 1.2.5 Rom and 1080Kernel (same problem was on original ROM)
- Linksys router
- 15MB/15MB home connection
- tried to connect device on few different routers and connections and I get same result - slow DL speed
- more people have this problem.
One guy solved this problem on V1.0 device with "bin" - I'm not exactly sure what this means! Maybe driver modification????
Can you please help me solve my problem because at this point my device is useless.
mpivar said:
I have T-R42 V2.0 device and I have slow download speed over Wifi.
At start up WiFi download speed is about 7MBps, but after 1-2 minutes latter download speed drops to 0,5-06MBps and stays at his speed or lower. Upload speed is OK!!!
I have:
- excellent WiFi signal
- Wasser 1.2.5 Rom and 1080Kernel (same problem was on original ROM)
- Linksys router
- 15MB/15MB home connection
- tried to connect device on few different routers and connections and I get same result - slow DL speed
- more people have this problem.
One guy solved this problem on V1.0 device with "bin" - I'm not exactly sure what this means! Maybe driver modification????
Can you please help me solve my problem because at this point my device is useless.
Click to expand...
Click to collapse
Can you give me the link to the guy who solved the issue?
buhohitr said:
Can you give me the link to the guy who solved the issue?
Click to expand...
Click to collapse
I contact him over private massage on Freaktab. Guy nickname on Freaktab is crshNbrn.

Categories

Resources