yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] d3s3rt_eagle:
I have found a temporary workaround. Wakelocks are caused by something related to bluetooth. So I built a kernel (Cyanogen sources) where msm_serial_hs and all bluetooth drivers are built as modules.

This prevent wakelocks and phone goes to deep sleep, but in order to toggle bluetooth on kernel modules must be loaded first, and once they are loaded wakelocks appear again until reboot (rmmod doesn't work).

Since i don't use bluetooth that much, this kernel is helping me a lot saving battery (only 2% per hour with wifi off). I think it's a good solution until this bug is fixed.

If you need bluetooth, before it can be turned on you must type in a terminal:

$ su
# modprobe hci_uart
# modprobe msm_bt_sleep

Then you can toggle bluetooth on. Remember that once modules are loaded, phone won't go to deep sleep until is rebooted.

This is what i get with wifi off:

With wifi on it doesn't go to sleep but i think it's normal.

Remember, i'm not responsible for bricked device, thermonuclear wars ecc. :D

Flash with Clockworkmod, you need at least 5MB free in /system.
[Optimus One, P500 Original Android Development] fundoozzz:
Yes you are right... the things u mentioned got changed and jit is just in time.. google it and you will find what it actually does...

and since this is your only phone and as u r new to flashing b, its better that u play around cm7 nightly until this ROM reaches semi stable stage..

PS :-Next time plz be generous enough to use general section of ICS for asking such things...

Optimus one

Nightly 14

Press THANKS if I helped.. :)
[Optimus One, P500 Original Android Development] ScripterJR:
I confirm this as well but wifi works.
[Optimus One, P500 Original Android Development] sweetnsour:
Are you talking about beta1 or beta1-testing? Because in beta1-testing, my phone is going into deep sleep.

Also, can anyone check whether it says you have any devices on market.android.com? Right now it is telling me that I have no devices.
[Optimus One, P500 Original Android Development] aloayzab88:
Could you tell me please which gapps are you using? the one on the general secc? Which is your cpu settings and what mettod did you use to flash the rom? the one that lupohirp recomended? Did you flash the beta-testing and the gapps at the same time or you made a reboot first? Thank you
[Optimus One, P500 Original Android Development] sweetnsour:
I think it was gapps-ics-20111122-full. I'm on 245/600 conservative and flashed it the way lupohirp recommended (it was something like format /boot and /system, then install the rom, then flash gapps). I believe I rebooted first, then flashed gapps.
[Optimus One, P500 Original Android Development] thachtunganh:
Can you tell me what exactly what you have built as modules???

Thank you ;)
[Optimus One, P500 Original Android Development] sweetbinodray:
And about the deep sleep. It's happening due to Data on. Confirmed. Guys just go to air-plane mode and check you will go to deep sleep. No matter which kernel you are using.

I don't know why this thing is happening? But I'll figure it out.

---------- Post added at 10:56 AM ---------- Previous post was at 10:53 AM ----------

@thachtunganh,

I don't think it's happening due to Bluetooth. But i have checked with all the available kernel if you go to air-plane mode it will go to deep sleep.
[Optimus One, P500 Original Android Development] cobra4014:
Lg Optimus T?? T-Mobile

Okay, I have set up Lupo's CM9 Beta 1 on the new baseband. I have looked up APN's for data and entered all that I have found, but it dosen't seem to save afterwards. I can text and call to my hearts content, but I can't get data to work for the life of me. I was wondering if anyone has managed to get data working on ICS + V20 Baseband, on the Optimus T (on T-Mobile)

I know I'm new, but I preformed searches on here and on the main page for Lupo's ROM, but I have yet to find a mention of the Optimus T. The only ROM I have used with working data on the v20 baseband is Ciaox's OpenOptimus Gingerbread.

Any help? Thanks in advance!
[Optimus One, P500 Original Android Development] Arjen:
Why reposting the same question?

Keep this in general...

Thread was cleaned for a reason...
[Optimus One, P500 Original Android Development] vikasb32:
Flash beta1-testing.no kernel wakelocks and color bending still there.

Edit:still same kernel wakelocks.
[Optimus One, P500 Original Android Development] aloayzab88:
You are right. Its something related to the data or signal. When you go to airplane mode the phone enter in deep sleep. Other wise keep awake and draining batt.
[Optimus One, P500 Original Android Development] jigodi:
everything seems ok with this testing version, but while charging i've got a random reboot.
[Optimus One, P500 Original Android Development] GonDr:
Guys, we need camera to work and fix, then we can talk about kernels, wakelocks, and small bugs. For now we need camera fix.
[Optimus One, P500 Original Android Development] Ozadroid:
Wtf my reply isnt submitting :-/

Edit: Wow it submitted now :-@

Lol downloaded 36mb gapps n removed **** n made 13mb :-/

I have 40mb in system after removing ****.. will list all after i reach home.. travelling n using mind sux.. :-P
[Optimus One, P500 Original Android Development] Arjen:
Airplanemode disables all data, ie. Gsm, wifi, bluetooth. So using airplanemode does not tell which part causes problem :)
[Optimus One, P500 Original Android Development] sweetnsour:
Is this just a request for yourself? :p

It is all up to the developers.
[Optimus One, P500 Original Android Development] Ozadroid:
Yeah data is working gud if u switch it off it isnt working .. got batt drain last nite..but not due to data coz i had same data left in morning from nite sux :(
[Optimus One, P500 Original Android Development] gymfreak7855:
Hey guys here is my battery usage after 9 hours of use, how does this compare to everyone else?
[Optimus One, P500 Original Android Development] GonDr:
u right, i just hope devs can fix camera soon.
[Optimus One, P500 Original Android Development] gekko69:
I have a device and Market working fine (beta-testing).
[Optimus One, P500 Original Android Development] Ozadroid:
Yeah market is working fine.. dwnlded an app last nite
[Optimus One, P500 Original Android Development] adfad666:
That's good work and a good idea with the modules, I suspected bluetooth on my holiday but I wasn't sure how to test it, this confirms it.

And now it seems Lupo's new kernel fixes the problem we are close to killing this bug :D:cool: I've got my hammer ready it's gonna be satisfying...

Lupo, jus to confirm, did you use this kernel source by franciscofranco? It might be a good idea to check the differences between the stock and his kernel in the msm_serial_hs and blootooth drivers. :)

I'll check it tonight but I'm going to my gf's today to rearrange her flat (throw out all the stupid pink stuff etc :D), I'm moving in with her next week :eek:
[Optimus One, P500 Original Android Development] lupohirp:
yeeees are these sources :)))) i would use fserve but as i say i need sources of 2.35 for port kgsl 3.0 drivers....and i want to start from a stable base :)
[Optimus One, P500 Original Android Development] lupohirp:
we can include a init.d script for disabling in every reboot.....desert can i have your sources???

EDIT: today i have no time but i see in logcat that i see the brcm_patch is buggied....it cannot load powersave module infact....if i have time i will try a solution but don't expect anything for today :(

EDIT2: WHATTATHEHELL I'VE FORGOT TO ADD init.qcom.bt.sh TO BIN!!!!!!!SEEMS THAT HE DOESN'T KNOW HOW TO SLEEP FOR THIS REASON!!!!
[Optimus One, P500 Original Android Development] thachtunganh:
Me too :) , it will be useful :D
[Optimus One, P500 Original Android Development] Arjen:
Is there somebody who is able to write an app to (un)load modules?

In case for bluetooth it would be a great solution, because some of us use bluetooth quite often :D

Edit:

So that may be the cause...
[Optimus One, P500 Original Android Development] jigodi:
the wakeup problem did not appear until the phone got freezed and then the phone doesn't go to deep sleep...
[Optimus One, P500 Original Android Development] sweetbinodray:
I am only talking about data and GSm..You can have wireless and Bluetooth on wile your phone is in air-plane mode.

But i'll check it again.
[Optimus One, P500 Original Android Development] Arjen:
That's true, but you need to enable them after entering airplane-mode.
[Optimus One, P500 Original Android Development] lupohirp:
i've founded arjen....i've not included init.qcom.bt.sh that is responsible for powersave(https://github.com/CyanogenMod/android_device_lge_p500/commit/d68c02094c52865530b0c3948acae48698f4dddd)...my mistake :( today i will rebuild with this script i have an hour free :)
[Optimus One, P500 Original Android Development] lupohirp:
these girls will make me crazy.....ahahahahahaha :)

howewer we must find the bug so we must try all the solution: even without the script some people can go in deep sleep mode. so the favour that i ask to all of you is this:

for those who can enter in deep sleep mode please can you share the gapps that you have flashed? maybe this is coulde be one of the reason...!:)
[Optimus One, P500 Original Android Development] lupohirp:
yeah i forgot always to update sources :) i still workin on sources of 20 jan :))
[Optimus One, P500 Original Android Development] sweetbinodray:
Here it is...

Beta 1 ROM with bulit in kernel. Gaaps V7.1

Here is the GAAPS http://xdaforums.com/showpost.php?p=21977003&postcount=298

1:- With Data & GSM On / Wi-FI On / Bluetooth ON= No Deep Sleep.

2:- With Data & GSM off / Bletooth Off / Wi-Fi On= Deep Sleep.

3: With Data & GSM off/ Bluetooth On/ Wi-Fi On= No Deep Sleep.

Conclusion:

Either problem is happening for the Bluetooth or GSM & Data. One more thing once you switched on the Bluetooth it will never go to deep sleep. Either you have on or off BT. You have to reboot your phone to go deep sleep again.
[Optimus One, P500 Original Android Development] lupohirp:
thanks sweet....sooo problem seems bluetooth with that missing script.....i will build early afternoon and upload a test release again :)

have you tried with gsm on and bluetooth off???
[Optimus One, P500 Original Android Development] Arjen:
Pushed init.qcom.bt.sh to correct location and rebooted, will enable/disable bluetooth and test.
[Optimus One, P500 Original Android Development] d3s3rt_eagle:
For those asking sources of the kernel i built: i used sources from lupohirp's github, i pulled a config from my phone's /proc/config.gz and then i set in .config:

CONFIG_MSM_SERIAL_HS=m

CONFIG_BT_HCIUART=m

CONFIG_BT_MSM_SLEEP=m

I'm sure it's bluetooth, i did many sms and calling and the phone went to sleep so it's no gsm problem. But when loaded bluetooth suddendly all wakelocks appeared and no more deep sleep. Hope that script could kill this bug! :D

I add the config i used in attachment.
[Optimus One, P500 Original Android Development] vlt96:
Yes, it is very buggy and counting on it made me do something bad: it gave an error while doing a nandroid before a flash with data wipe... I was fked, I was on stock gb... no way to get it back...

Anyways why is data usage not working??? It says no app used no data, but lots did, and I can't set a limit, and restricting background data it says it needs that...

Keyboard still misplaced, didn't find a way to fix it, lucky most apps work perfectly on landscape..

Weird bug: I enabled auto rotation and when it is disbled in lanscape it stays like that...(even in lockscreen) in potrait I can't see the emergency call button... using pattern...

This is how it looks like when phone starts in lanscape (if you leave it in lanscape with rotation disabled)

No way to turn on, I had to enable airplane mode and reboot...

Sent from ICS-loaded P500
[Optimus One, P500 Original Android Development] skywavex91:
You need xta_quid backported for that. Very simple, just apply a patch.
[Optimus One, P500 Original Android Development] dancom96:
Mine phone sleeps properly with data and GSM, bluetooth off, so I do not believe it's because of data/gsm. Graphs like just like they do in Gingerbread, phone is awake when screen is on, and is sleeping when screen is off.
[Optimus One, P500 Original Android Development] Arjen:
Looks like the missing init on bluetooth is the cause. Flashed a boot.img containing init for bluetooth, and after switching on/off bluetooth my device can go into deep sleep! :D
[Optimus One, P500 Original Android Development] manast:
Lupo, just one suggestion. We can have build wise changelogs on the first post. A new user can easily see all the progress that has been done from Day 1.

ALPHA 1

- Fixed Touchscreen

- Fixed GSM

- Full H/W Acceleration

- Fixed Bluetooth

- Sensors

- Offline Charging

ALPHA 2

- Wi-Fi now searches for networks but does not connect. Static IP works.

- Trebuchet Launcher

- Fixed USB

- Keyboard Layout Fixed

- Fixed JIT

- Fixed Audio

ALPHA 3

- Fixed Data, Wi-Fi

- Fixed Hardware Lights, Brightness Setting

- Google Sync

- Fixed Market

- Overclockable

- Browser does not work, Opera does.

BETA 1

- Fixed Browser :)

- Fixed GMail

Just a suggestion. :)
[Optimus One, P500 Original Android Development] jigodi:
can you share this boot.img? :D
[Optimus One, P500 Original Android Development] lupohirp:
Yeah can you share? Sorry guys i'm bit busy tomorrow i have exam and i'm study :-(
[Optimus One, P500 Original Android Development] jigodi:
you made a great job ;) succes on your exams :)
[Optimus One, P500 Original Android Development] dongimin2:
me too. I like this rom.
[Optimus One, P500 Original Android Development] allsalvati:
Logcat for wifi disconnecting:

]
12:22:15.559 Debug SupplicantStateTracker 1582 Supplicant loop detected, disabling network 1
12:22:15.559 Info wpa_supplicant 11725 WPA: Group rekeying completed with 00:21:27:d4:9f:a0 [GTK=TKIP]
12:22:15.560 Info wpa_supplicant 11725 CTRL-EVENT-STATE-CHANGE id=1 state=7
12:22:15.560 Info wpa_supplicant 11725 CTRL-EVENT-STATE-CHANGE id=1 state=0
12:22:15.560 Debug CommandListener 1476 Clearing all IP addresses on wlan0
12:22:15.560 Info wpa_supplicant 11725 CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
12:22:15.560 Info wpa_supplicant 11725 CTRL-EVENT-STATE-CHANGE id=-1 state=0
12:22:15.560 Debug ConnectivityService 1582 ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

Only happens with Beta1 and in my home router.

Maybe i need to delete some old key or whatever.

Edit: Seems that the issue is with key. To solve this problem just set "Group Key Update Period:" to "0" if the router is yours. At least this fix your network while we don't know what's causing. More about this issue.
[Optimus One, P500 Original Android Development] shishimaru1000:
Don't worry, just feel free to study, you can begin again your work on this rom later after the exams :) Good luck!
[Optimus One, P500 Original Android Development] d3s3rt_eagle:
What's this init Arjen? Because init.qcom.bt.sh is present in my /system/bin but phone doesn't sleep :(
[Optimus One, P500 Original Android Development] fserve:
ludohirp, i've used the .35 kernel from Andy's github.

And i really recommend that one.

Minor patchs (camera fix, overclock...) should be very easy -and fast- to add later.
[Optimus One, P500 Original Android Development] d3s3rt_eagle:
Is it normal that when wifi is on phone doesn't go to sleep?

When wifi is on, a wakelock called "mmc1" appears and prevent the phone to sleep, is this expected? :)
[Optimus One, P500 Original Android Development] hseokman:
There was the same wakelock 'mmc1' prevented the phone going sleep before CM7 Nightly 13. I don't know if you're experiencing the same problem.

Although I do not know what changes fixed the problem. CM7 nightlies do not have the 'mmc1' wakelock problems after that.

I suspected mmc driver because it kept locking there, but the problem was fixed without modifying any mmc driver code in the kernel.
[Optimus One, P500 Original Android Development] vin-ivar:
Okay, another bug I noticed. (Major? Minor? Already reported? :D) When I try to adb push CM9 Music, I get a 'no space left on the device' error.
[Optimus One, P500 Original Android Development] sweetnsour:
You probably don't have anymore space in your /system folder. To make room for it, you have to start deleting stuff you don't need (I'd start off in the /system/media/video folder. There's a bunch of videos that are kind of useless and should give you around 10 mb if I remember correctly).
[Optimus One, P500 Original Android Development] adfad666:
I now think the problem has nothing to do with the kernel but one of the binaries called by init.qcom.bt.sh (hciattach?). Simply removing / renaming the init causes the Bluetooth startup to time out and the phone enters deep sleep as usual.

There are also a lot of logcat errors from the commands at the end of the init file related to sleep which we should investigate, that's probably the cause
[Optimus One, P500 Original Android Development] vin-ivar:
Wow, thanks. :) Why is there so little space available?

Oh, and does any app2sd script work, and if so, which?
[Optimus One, P500 Original Android Development] ElevateMusic:
Link 2 sd but only with fat32 partition
[Optimus One, P500 Original Android Development] sweetnsour:
If only cyanogenmod allowed for you to have the slide lockscreen as well as some sort of security underneath it (just like how in CM7, you can have the ring lock and then a pattern/pin/password afterwards).

Why I said that all of a sudden, I don't know. It just came to my attention :p

Sorry if this counts as OT, which it probably does :)

---------- Post added at 07:50 AM ---------- Previous post was at 07:37 AM ----------

Thanks to adfad666 for the heads up. I would've been screwed in the future had I not seen his post:
[Optimus One, P500 Original Android Development] vin-ivar:
WHAT?! :O I didn't see that! I changed the baseband while on CM9! But it worked for me, haha..phew...
[Optimus One, P500 Original Android Development] iamrajeev:
I dont know if it bug or problem with me only But when ever is set the Frequency to 320/729...& reboot the phone it gose back to default 122/600 mhz :(
[Optimus One, P500 Original Android Development] Cooldevil1989:
Take a look....of battry status....
[Optimus One, P500 Original Android Development] Arjen:
Will post the boot.img later today when I'm back from work ;)
[Optimus One, P500 Original Android Development] Arjen:
Confirmed, it doesn't hold settings.

Use SetCPU or similar app for now.
[Optimus One, P500 Original Android Development] vin-ivar:
Is anyone getting a Titanium Backup problem? It says restore failed.
[Optimus One, P500 Original Android Development] Arjen:
Adam, Lupohirp forgot this script in his Rom and has no deep sleep after bluetooth is used. I flashed boot.img containing it and now it enters deep sleep after BT is used...
[Optimus One, P500 Original Android Development] lupohirp:
Yeah but this is a cyanogenmod bug....also cm9 is a wip :-))) btw arjen if you post the boot.img i will iinclude the init scripts and start to work on andy's kernel like fserve adviced me :-) i saw yesterday for 2.35 kernels porting the new kgsl driver should be easy :-))
[Optimus One, P500 Original Android Development] shreyas.kukde:
Has anybody got the camera working yet? i really need it :(
[Optimus One, P500 Original Android Development] jazzzzzzz:
Why can't you see the change log??? Come after 1 mnth u will get
[Optimus One, P500 Original Android Development] shreyas.kukde:
I can see the changelog, but i am asking if its possible early... no need to yell :mad:
[Optimus One, P500 Original Android Development] jazzzzzzz:
They are working dude.... Wait.....

Atleast u c ics on low end device lik this.....
[Optimus One, P500 Original Android Development] shreyas.kukde:
and whats this libcamera thing? sorry am quite a noob about this. does it make camera work?:(
[Optimus One, P500 Original Android Development] vshash411:
Please post these queries in the general section
[Optimus One, P500 Original Android Development] adfad666:
Hmm that's odd, why is it in the boot.img? My init.thunderg.rc looks for init.qcom.bt.sh in /system/bin unless lupohirp changed his?

:confused:
[Optimus One, P500 Original Android Development] d3s3rt_eagle:
Well that should be investigated, wifi is draining, a lot of battery for me and this could be the reason...

Anyway I've the same init.rc of adfad666 and no deep sleep after bt is on...
[Optimus One, P500 Original Android Development] andy572:
the right place for init related scripts is /system/etc or /system/etc/init.d if the

developer follows the LSB rules (LinuxStandardBase)
[Optimus One, P500 Original Android Development] lupohirp:
Moved already andy but it didn't worked :-((((
[Optimus One, P500 Original Android Development] gymfreak7855:
are there any other files which interlink together to make each other run? Are you sure you placed all the files required in the appropriate place?
[Optimus One, P500 Original Android Development] thachtunganh:
The camera is VERY HARD TO FIX, If you want the camera work, don't flash the ROM or start working on the camera fix :mad:...

Don't know what to do... but like to talk a lot!
[Optimus One, P500 Original Android Development] Arjen:
Nope, I'm still working on it.

Patches I tried did not work.
[Optimus One, P500 Original Android Development] cure25:
dude is there anyway to fix youtube and video playback on this rom.i did not understand what the reason for them not working.

can someone tell me,whats the problem with them

i m not asking for OT but can they be fixed
[Optimus One, P500 Original Android Development] Arjen:
@Adfad

Oops, you are right...

I forgot I put it there. But after reboot I looked in root and I was missing it.

Don't know why I thought I had to put it in bootimage (ramdisk), but it is working..???
[Optimus One, P500 Original Android Development] shreyas.kukde:
yeah the same problem wih me too, why the videos does not play properly? I have to use moboplayer in soft decoding mode everytime to play videos smoothly. even for the 3gp vids. and one more thing, why does my phone doesnt vibrate when its locked? I am missing a lot calls and messages due to this, cant keep the phone on ringing mode either or I will get in trouble, it vibrates when screen is on but not when its off :( what to do?
[Optimus One, P500 Original Android Development] Arjen:
Only solution is to go back to a GB rom for now.

But vibrating works here...
[Optimus One, P500 Original Android Development] hccompany:
@shreyas.kukde

Dude this is a thread for devs... if you want a fully working rom switch back to gingerbread ... come back in a month you'll (hopefully) find a working ics rom... stop OT to make the development go faster !!!!

Good luck to all you devs:)))
[Optimus One, P500 Original Android Development] pauloavelar:
Guys, I'm keeping my phone on Airplane mode during the day and only turning it off when I'm on the streets. It used to be enough, phone entered deep sleep all the time.

But yesterday afternoon I had to use GPS for 30 minutes or so. I turned GPS on, navigated a little and then turned it back off.

During the night, I kept the airplane mode on. What I got was this:

So GPS locked itself on for some reason... I'm afraid that it's not only bluetooth holding us awake all the time.
[Optimus One, P500 Original Android Development] batista16:
Just informing, when we change lcd density, everything works fine, but when making/reciving calls com.android.phone force closes, so, no calls with changed density..

Other thing, I did't have deep sleep with last version, but changed governor to smartass and now I have deepsleep again.. ;)
[Optimus One, P500 Original Android Development] d3s3rt_eagle:
You're right pauloavelar, there is a problem with wakelocks... even wifi has a wakelock when it is on, it's called "mmc1" that prevent deep sleep.
[Optimus One, P500 Original Android Development] Arjen:
@Adam, Lupohirp.

Adam, you are right, init.qcom.bt.sh was already there...