yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Jaiy:
Wi-Fi sleep

By the way, someone commented earlier that the Wi-Fi may now be sleeping too aggressively while the phone display is off. I am also seeing problems there. I need my Wi-Fi enabled at all times so that my phone can receive incoming VoIP calls and ssh connections.

But I am noticing that, particularly the VoIP app that I am using (CSipSimple) is often no longer registered when I turn on the screen and it quickly re-registers soon after -- which would suggest it got timed out.

I have checked in Settings >> Wi-Fi >> Advanced that "Keep Wi-Fi on during sleep" is still enabled (and it is).

You'd mentioned several versions ago that you'd improved the Wi-Fi radio-level sleep policy. Could this be affecting things?
[Nexus One Android Development] dk_zero-cool:
pm.sleep_mode=2
ro.ril.disable.power.collapse=1

Those I have played with. Try changing the first to 1 and the second to 0 and see if that helps.
[Nexus One Android Development] adio201:
I love this rom....if I want to use setcpu will it fc because the rom has a script running already for cpu
[Nexus One Android Development] dk_zero-cool:
Just go to Processor settings and disable the sleep state. Then the script will do nothing.
[Nexus One Android Development] memnochlv:
Maybe this is a dumb question, but... Can we get media controls back on the lock screen? I made excessive use of these w/ the various music apps and Akimbo (audiobook player) and miss them. I'm aware I could use Widget Locker or some other such lockscreen, but since I didn't in previous CM versions, was wondering what's up.

Thanks
[Nexus One Android Development] Jaiy:
Will do, thanks.

However, there's no pm.sleep_mode in my build.prop at the moment (4.0U0). The ro.ril parameter is there. Just mentioning in case you expected pm.sleep_mode to also be there and set to 2? Apparently, in its absence, it defaults to 3 (slow clock and wait for interrupt).

I will add it and then play with the values. It'll probably be a few days before I know if any combination improves things.
[Nexus One Android Development] dk_zero-cool:
Okay let me know, not quite sure what values would be the best combination, I'm also thinking power wise.
[Nexus One Android Development] Jaiy:
Yes, obviously I don't want to ruin my power savings by ending up with the radio on full-blast all the time. I do notice some significant differences between wake and sleep modes though. Ping times to the phone are never very good... to most other devices 2-4ms rtt is typical. To the phone, pinging while it's awake gives:

round-trip min/avg/max/stddev = 7.012/66.204/117.693/28.836 ms

The average is 66ms here, that's WAY more than to other devices, suggesting that the phone is already doing some form of radio power saving mode. Then, while the phone is asleep, I see:

round-trip min/avg/max/stddev = 22.264/185.696/322.962/96.935 ms

so things are even further into powersave mode while the device sleeping. Most wi-fi drivers have various powersave and powersavesleep timing parameters, so I'll have to see what can be tweaked here.

Anyway, I've changed to the "power collapse" mode now using the two values you proposed earlier, so we'll see what effects that has.
[Nexus One Android Development] iakughan:
Googlenow is available for ics aosp. You want to implement it in the next release?

Inviato dal mio Nexus One con Tapatalk 2
[Nexus One Android Development] AngeloLegend:
+1 ?
[Nexus One Android Development] gautamshah:
lock screen

where did my lock screen go.. i lock device wen i press power button to unlock it, is already unlocked. i press menu button its unlocked again..

also home button and search button not working..no matter what.. :(
[Nexus One Android Development] jrs007:
camera working!

:D

Now the camera is working along with the videos and youtube, but the video recording is still slow.
[Nexus One Android Development] altruistic666:
Did you do a clean wipe. I also experienced the same whrn flashed over BCM 3.7. Did a full wipe and all was good...
[Nexus One Android Development] ironjon:
Fantastic work with last release

With this rom ICS runs like a charm in N1

Fast (very fast) and rock stable

Thanks

Enviado desde mi Nexus One usando Tapatalk
[Nexus One Android Development] LeoLeal:
You mean, Video Recording and Native Playback Working at the same time? Using RAPMV Fix or not?
[Nexus One Android Development] Jaiy:
I've had this combination for just under a day now.

I have not noticed any more loss of VoIP registration since changing to these. Everything is working well.

Also seems like my battery consumption is much reduced. Been using the device normally and battery is still at 31%. That's after 22.5h on battery and with almost 2.5h of screen on time.
[Nexus One Android Development] Jaiy:
Hey dk-zero_cool,

I'm having another go getting 4.1U2 working here. I noticed that you have added in pm.sleep_mode in that version, however, the "=" is missing. It currently looks like this:

pm.sleep_mode 2
ro.ril.disable.power.collapse=1

I don't know if the 1 and 0 values for Power Collapse mode would make sense for everyone else...?

Now, on to my other problem...

I am STILL not able to see any contacts nor add any in 4.1U2. Contacts is blank and, when I run Phone, it reports that "Contacts has stopped" and then Phone stops too.

In the Settings >> Apps >> ALL >> Contacts Storage, I see about 350k data. I have tried clearing this, and it goes to 0. When I then add a contact manually, or re-import all my contacts from the saved file, the storage in Contacts Storage does go back up (but oddly now to 650k for the same set of contacts). But still, when I try to view or add contacts, there are none there.

Anyone have any thoughts on how to fix this? I realize no one else seems to have this problem, but it does make the phone rather useless if I can't see contacts or make calls!

Edit: The contacts database files in /data/data/com.android.providers.contacts/databases are present and populated with my contacts. I can see names in them by grepping the files. And, when I add a new contact, it does get added to the database files. But, nothing displays when I run Contacts - neither my own profile or any contact. Logcat isn't much help, either. I'm adding logcats from both when I run Contacts and when I run Phone. In the phone one, there's an error reading the database: "column '_id' does not exist".
[Nexus One Android Development] dk_zero-cool:
Yes I saw that myself. It should be there, so just add it.

Maybe it's a permission problem. Try running fix_permissions in terminal and reboot or "m2sd fixperm" and let m2sd do it during boot.
[Nexus One Android Development] jrs007:
Yes, that's right, using the fix

In my nexus worked.

But like I said the recording is still a bit slow, but they will fix this soon.
[Nexus One Android Development] Jaiy:
Ran fix_permissions and it did change a LOT of files' permissions, as in several hundred changes. That was surprising. Anyway, rebooted. Unfortunately, still no visible contacts. And contacts is still crashing when I run phone. Good suggestion, though.

One anomaly, fix_permissions reported /system/app/TreBuchet.apk wasn't found. It is installed as Trebuchet.apk (lower-case "b").
[Nexus One Android Development] daeboe:
I'm using RC4.1U2 ad I've noticed that the DSPManager does not work. I've ran a fix permissions. I installed with a full wipe. I use 4EXT recovery. I've tested it with Spotify and YouTube.
[Nexus One Android Development] Jaiy:
Just tried installing some other contacts managers from the market. "Contacts" by Contapps Ltd, "Phone Book ConTacTs" by Yosuke Kimoto and also "GO Contacts EX" by GO Dev Team... all of these can see and display my contacts just fine. Which would suggest that there may be something wrong with the BCM stock contacts manager in 4.1U2. At least, for me. Don't understand why no one else on here is complaining though!
[Nexus One Android Development] hfmsite:
I had it 2.

but after restart... it's O.K
[Nexus One Android Development] dk_zero-cool:
Apps need to support DSP. The Apollo Player has DSP Support.

Think it works for others which is why no one is complaining. Also working for me. Tried full wipe?
[Nexus One Android Development] Jaiy:
I had not. But I have now. And the contacts are now OK again with the regular ICS/BCM contacts manager!! Obviously I had something messed up!
[Nexus One Android Development] XeloOw:
JB has been ported : http://xdaforums.com/showpost.php?p=28020178

HOW TO !!
[Nexus One Android Development] dk_zero-cool:
This is not a port. This is an SDK dump over ICS.
[Nexus One Android Development] iamnarada:
Just updated to 4.1U2 from 3.7. Had a bit of a hard time, ended up doing a full wipe and repartion of SD card (using 4ext), none of it helped. Redownloaded the ROM, worked first time. Maybe I shouldn't download directly using to the phone. Anyways, great work DK.

Question: does changing the speed and pulse duration of the notification light work for anyone else? For me, it always seems to blink at the same rate irrespective of whether I have it on fast, very fast, normal, etc.
[Nexus One Android Development] XeloOw:
Is it possible to do ?
[Nexus One Android Development] dk_zero-cool:
Yes, and it will run like crap. Just wait for the source to come out. Even then it will take some time (Depending on the changes from ICS) before anything useful will come out of it.
[Nexus One Android Development] sniper435:
I agree - for the time and effort to do it I'd say its well worth waiting for the official source to come out. If we've any chance of making JB run on our poor old N1's it will be done from the proper source, and likely will take a while if its possible at all. we are starting to ask a lot of this little phone, amazing as it is.

I wish someone would bring out a new phone with the same screen size and the N1 but with all the latest in graphics and processors etc... the galaxy nexus and other new android phones are just too big in my opinion
[Nexus One Android Development] taodan:
+ 1
[Nexus One Android Development] Mogomra:
And a trackball! Or at least a decent notification light.

Never gonna happen. :(
[Nexus One Android Development] solidmac:
Damm that DROID X!!!!
[Nexus One Android Development] cbhawsar:
Wifi does not work with EAP

Hi DK,

Great work with the ROM I must say.. all functions are awesome and the best part is that it gives you the stock ics feeling and still you can customise it to the way you want.

I faced a small issue with it though.. My wifi works at home and outside, but when I am at office, i cannot connect because the wifi Add network wizard does not save my password. whenever i enter the username and password, and hit connect, the add network wizard just vanishes without configuring network. At home, it works well.

the only difference that I see in my home and office wifi is that at home I am using WPA2 PSK security and at office there is 802.11 EAP security..

please let me know how to fix this issue.
[Nexus One Android Development] d_dukk:
100% Agree. A rebuilt board with recent hardware to just replace? Shut up and take my money! ;-)
[Nexus One Android Development] fc_themaster:
Since I use this rom I have huge problems with microSD... the Rom works well but it sometimes crashes and corrupt my sd... sometimes I can retrieve it by formatting but in first I've corrupted a 8GB class 6 A-Data card that minitool saw that as a "bad disk"

(I was not able to format it more, I sent in to service to A-data) and now it corrupt my stock 4gb sandisk microsd card.

It happens to someone else? how can I prevent this from happening again now that I bought a 16gb class 10?
[Nexus One Android Development] kykyky:
I have a AData class 10 16GB ,it works well. How large is your ext?
[Nexus One Android Development] fc_themaster:
With my 8Gb A-Data card i had a 2gb ext4 partition. Now with my 4GB sandisk class2 card i've 1,5gb ext2 partition.
[Nexus One Android Development] dk_zero-cool:
I just had this issue with my desktop, HDD would screw up now and then. Got 2 new drives before I figured out that my motherboard was the issue.

And as far as I know, these boards is known to start coursing problems when it gets past the 2 years.
[Nexus One Android Development] fc_themaster:
Excuse me but what to do with my problem? my motherboard is the cause of bad disk? After that my N1 is blocked and after that I reboot (pull the battery) it goes into infinite loop and does not turn on. When i insert microsd in pc minitool tells me that the microsd partition is "bad disk". Now I do not always have formatted from my home PC (Asus P5K-E wiki / p) but also from my Samsung NC10 netbook or a notebook ASUS fairly recent.

How can I understand if the cause is my board?
[Nexus One Android Development] AndyBurns:
+5

But I suspect the manufacturers aren't listening, HTC One-S is the closest I've come to buying recently.
[Nexus One Android Development] isch_htc:
I installed the rom and it started, but at the moment were I should enter the Pin the screen goes off an using the power button to switch on the display only the symbols at the bottom get illuminated.

I already tried to wipe cache and a factory reset.

Someone an idea?
[Nexus One Android Development] cpm:
Install 4ext recovery. In tools menu there's an option to fix ext partition. It works really well. Try it.
[Nexus One Android Development] adio201:
I move all my apps data to my SD card and to ext part ion and li have tons of free space I'm only using 45 mbs out of 200 very good rom
[Nexus One Android Development] Peccator:
This rom works great! built in app2sd is super-easy to set up, the custom installer is a nice surprise too. Only thing that's missing, is the CM7 power control widget where one could set up toggles and macros, while this power control gives you just one layout.
[Nexus One Android Development] Aleq:
I have the same issue, I have the latest version. I can't connect to my home wifi running 802.1x WPA/EAP (Radius).

I have been monitoring radius logs but haven't seen any login request. So it's basically the same as what cbhawsar describes, it doesn't even try to connect. I enter login information, password, click Connect but nothing happens, I get back to the list of networks with no information "stored password" or "connecting" at the AP.

LOGCAT:

D/com.android.settings.wifi.WifiDialog( 1801): PEAP
D/com.android.settings.wifi.WifiDialog( 1801): * ID: -1 SSID: "<REMOVED_SSID>" BSSID: null PRIO: 0
D/com.android.settings.wifi.WifiDialog( 1801): KeyMgmt: WPA_EAP IEEE8021X Protocols:
D/com.android.settings.wifi.WifiDialog( 1801): AuthAlgorithms:
D/com.android.settings.wifi.WifiDialog( 1801): PairwiseCiphers:
D/com.android.settings.wifi.WifiDialog( 1801): GroupCiphers:
D/com.android.settings.wifi.WifiDialog( 1801): PSK:
D/com.android.settings.wifi.WifiDialog( 1801): eap: AKA
D/com.android.settings.wifi.WifiDialog( 1801): phase2:
D/com.android.settings.wifi.WifiDialog( 1801): identity: <REMOVED_LOGIN>
D/com.android.settings.wifi.WifiDialog( 1801): anonymous_identity:
D/com.android.settings.wifi.WifiDialog( 1801): password: <REMOVED_PASS>
D/com.android.settings.wifi.WifiDialog( 1801): client_cert:
D/com.android.settings.wifi.WifiDialog( 1801): private_key:
D/com.android.settings.wifi.WifiDialog( 1801): ca_cert:
D/com.android.settings.wifi.WifiDialog( 1801): pcsc: UICC 00 00
D/com.android.settings.wifi.WifiDialog( 1801): IP assignment: DHCP
D/com.android.settings.wifi.WifiDialog( 1801): Proxy settings: NONE
D/com.android.settings.wifi.WifiDialog( 1801): LinkAddresses: [] Routes: [] DnsAddresses: []
E/wpa_supplicant( 2226): Line 0: unknown EAP method 'AKA'
E/wpa_supplicant( 2226): You may need to add support for this EAP method during wpa_supplicant
E/wpa_supplicant( 2226): build time configuration.
E/wpa_supplicant( 2226): See README for more information.
E/WifiConfigStore( 1530): "<REMOVED_SSID>": failed to set eap: AKA
E/WifiConfigStore( 1530): Failed to set a network variable, removed network: 0
E/WifiConfigStore( 1530): Failed to update network * ID: -1 SSID: "<REMOVED_SSID>" BSSID: null PRIO: 0
E/WifiConfigStore( 1530): KeyMgmt: WPA_EAP IEEE8021X Protocols:
E/WifiConfigStore( 1530): AuthAlgorithms:
E/WifiConfigStore( 1530): PairwiseCiphers:
E/WifiConfigStore( 1530): GroupCiphers:
E/WifiConfigStore( 1530): PSK:
E/WifiConfigStore( 1530): eap: AKA
E/WifiConfigStore( 1530): phase2:
E/WifiConfigStore( 1530): identity: <REMOVED_LOGIN>
E/WifiConfigStore( 1530): anonymous_identity:
E/WifiConfigStore( 1530): password: <REMOVED_PASS>
E/WifiConfigStore( 1530): client_cert:
E/WifiConfigStore( 1530): private_key:
E/WifiConfigStore( 1530): ca_cert:
E/WifiConfigStore( 1530): pcsc: UICC 00 00
E/WifiConfigStore( 1530): IP assignment: DHCP
E/WifiConfigStore( 1530): Proxy settings: NONE
E/WifiConfigStore( 1530): LinkAddresses: [] Routes: [] DnsAddresses: []
D/dalvikvm( 1672): GC_EXPLICIT freed 2K, 27% free 7697K/10503K, paused 5ms+4ms
D/CommandListener( 1379): Clearing all IP addresses on wlan0

Thanks for looking!
[Nexus One Android Development] Dr.Thrilla:
I want to give a heads up for the people that wanted to try the Svoice app from Samsung on their Nexus One.

The app starts fine and it doesn't FC but the app cannot detect the mic.

The mic worked for about 3 seconds and then it stopped working.

It has probably has to do with that the devs got mic working through a hack.

I used the following info from swapnme:

To get the S-Voice to work..

1A. You need ICS, if your on GB, ttyl

1B. You NEED rooted device

1C. Do NOT directly install like a regular APK

2A. Open the apk file on your PC with WinZip / 7Zip

2B. Extract "libsvoxtts.so" from \lib\armeabi\

2C. Transfer both these files to your ICS device or you can push via adb

3A. Copy the voicetalk.apk (i tested with this name) to /system/app

3B. If there no space, remove some apks not required pref by Titanium Backup

3C. Copy the voicetalk.apk with say ES Explorer or via ADB PUSH

3D. Change permission of voicetalk.apk to rw,r,r

3E. Press and hold >> Properties >> Change (ES Explorer)

3F. Copy the libsvoxtts.so to /system/lib (do check this is required or not)

4A. Edit build.prop (with build.prop Editor or manually)

4B. Edit property ro.product.device with value GT-I9300

4C. Edit property ro.product.model with value GT-I9300

5A. Restart Phone

5B. Start S Voice from launcher

5C. I saw during setup trying to change Hi Galaxy to your own command crashed the app.

6. Say thank you!

I used the following patched apk file.

http://xdaforums.com/showpost.php?p=26376576&postcount=228
[Nexus One Android Development] Jaiy:
From reading the sister thread in the HTC Desire forum, it seems that this version of CM/ICS doesn't edit the EAP parameters properly. You have two choices... either wait until dk-z_c fixes this for you, or... you could edit the wpa_supplicant.conf file yourself and put in your network parameters.

The path is /data/misc/wifi/wpa_supplicant.conf. You'll need to edit it using your favorite method (e.g., command-line (Terminal Emulator), su and vi; or DroidSSHd and vi; or by copying the file to your laptop, editing it there, and copying it back).

There are many variations of EAP network authentication configuration so you'll need need to figure out your EAP parameters. If you have a *BSD or Linux laptop, you can copy the config you need from the /etc/wpa_supplicant.conf on the laptop. If you don't have a UNIX laptop, you'll need to google for the "man wpa_supplicant.conf" documentation and do your best to figure out your settings based on what extended authentication type is in use.

Good luck.
[Nexus One Android Development] madnutter:
Mobile data and m2sd issues

Hi,

Recently got another Desire for the missus, and i S-off'd the phone and have installed RC4.1U2.

Two problems is that the m2sd does not seem to be working as it should (i have ran a number of m2sd commands and rebooted but status shows no change (safe mode???) and i am unable to get mobile data from the provider (does the baseband version affect this?)

Thanks

M
[Nexus One Android Development] saulob:
This is the same for me, no change at all.
[Nexus One Android Development] iamnarada:
I'm guessing that this is a CM9 issue rather than being specific to our ROM.
[Nexus One Android Development] mrhohoha:
Another one to the add to the list of niggling WiFi issues. I seem to be getting degraded levels of signal in comparison with those I did with other ROMs and with earlier versions of BCM. Using 4.1U2 without any WiFi fixes on the N1. Besides this WiFi seems to work just fine for me, just signal is bad. Sitting two feet from the router, I get two or three bars and it falls quickly to zero after 30 feet or so.

Sent from my Nexus One
[Nexus One Android Development] Thide87:
I have a problem med data connection. The 3G/H/E turns gray and stops working VERY often. Then I'll have to wait for about 1 min before it turns blue and starts working again.

Any idea what I can do about this?
[Nexus One Android Development] adio201:
Same problem here....also I have notice that if I'm watching videos or even on you tube my battery heats up very fast
[Nexus One Android Development] cpm:
Just a hunch. Perhaps it's just the bars displaying incorrectly; maybe the actual signal strength is fine? Did you check your connection speed/strength ?
[Nexus One Android Development] Akram-aat:
sms send not workin 4 me

mean when i send sms
[Nexus One Android Development] memnochlv:
Actually, my bad, I noticed the music app it comes with, along with Google's play music show audio controls on the lock screen. Akimbo Audio book Player used to in older versions of CM (7) but doesn't anymore.

Also, notifications are available from the lock screen and can be used to get back to the home screen. I realize no pin/pass/pattern etc... set means no real security, but it does bypass the slider, which i thought was funny.
[Nexus One Android Development] sinical:
Fix for a problem I had

I am running RC4.1U2 with the old RIL libs.

Last night, my phone lost service and then com.android.phone crashed repeatedly to the point that I could only use the phone in airplane mode. I do not know what caused it because i have not changed anything at all recently.

However, if anyone does run into this problem, a simple "m2sd fixperm" solved this for me.

Just thought I'd mention it just in case it happens to someone else or if anyone can give me an idea for what might have caused it.
[Nexus One Android Development] mrhohoha:
Well thats what I thought. Except as soon as I am 30-40 feet away, I'm disconnected. I also ruled out the router being the problem - using multiple devices, including an HTC Desire at the same distance for 30-40 feet away, I have 2-3 bars atleast.
[Nexus One Android Development] wollac11:
Been running RC4.1U2 since it came out but today all of a sudden my contacts stopped working. In SMS I just see phone numbers and if I try and open contacts I just see the blue bar at the top and then it stays there (never fully opens the contact app). Any ideas as to why this has happened and how to fix it?

Edit: don't know why it happened in the first place but I fixed it by force closing the people and messaging apps, clearing data on people app then launching the people app followed by the messaging one.

Sent from my Nexus One
[Nexus One Android Development] pinkster:
With a fresh install of lastest version im having problems with wifi. It connects but stays with the little arrow up in the signal icon and no arrow down, as no downloading data. Connection is or very slow at first and a minute or so after connecting it stops to work.

3g works perfectly.

Any idea?
[Nexus One Android Development] dookie23:
Looks like JellyBean AOSP is finally released!

Woohoo!

https://groups.google.com/forum/#!topic/android-building/XBYeD-bhk1o
[Nexus One Android Development] pinkster:
Anyone got links to different kernels available in setup? Maybe changing kernel it'll fix

Update: changing kernel doesn't fix problem

Update 2: installed FIX from general forum and the problem is solved.
[Nexus One Android Development] kostiak:
So are you going to be working on BCM 10 for the N1 when CM 10 will start being developed?