yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] lotherius:
Test Update

Okay, here's the deal. I was having the shutdown problem, but it went away after a master reset, and I can't make it come back (figures), so I'm not sure if the problem is solved or not. I did make some changes that might prevent the issue, but I'm not 100% certain, since I couldn't reproduce it again after the change.

So, what I'm doing is rolling out a test update for feedback HERE rather than on the main post. Please reply if you try this out with the results..

The link to the update is here: http://www.multiupload.com/MT38PHCMF6

This update will NOT wipe your phone, and it will only apply if you already have 2011-11-25 installed. However I do recommend you back things up as this *is* a Test.

Here is what is included in the Updater:

Revert Camera to AOSP - LG P990 Camera Available in Extras

Removed Flash Player from Base Build due to issues bundling it - Install from Market :(

Fixed issue with crash on Bluetooth Connect due to compressed resource.

Changed power settings in build.prop

Possible Shutdown fix - tweaked code for shutdown menu.

Restored LG PowerOff routine.

This addresses a few issues...

1. The P990 (LG) camera has too many known issues to be considered "factory-like" which is the goal I'm shooting for on this ROM. You can still use the update pack to have the P990 (LG) camera.

2. Flash Player doesn't seem to want to work bundled. Not sure why, and it can easily be installed from the market. So, if you find yourself without Flash after this update, just install it from the market.

3. Bluetooth was crashing on connect due to a known bug in Android that was *supposed* to be fixed in 2.3 but apparently LG didn't get the word. Bluetooth should now no longer crash when pairing.

4. The evil SHUTDOWN BUG, where the phone just reboots instead of shutting down... This one needs testing.

It does *not* address usb plug/unplug freeze (I still can't reproduce that), and it does not address media scanner crash on first bootup.

What I need to know is:

1: If you are currently experiencing the shutdown bug, did it go away after flashing the update?

2: If not, does the shutdown bug go away after a wipe (having already flashed the update)?

3: If yes, does it ever come back (this might take a while)

4: If it does come back, what settings did you change or apps did you install/run that might have affected it?

(EDITED)

Also, if you were not able to flash the Cold theme, I posted a new it version that should actually flash. Let me know if you have any problems.

If you have any issues actually running the updater, make sure you're updating from the 11-25 version of Tsugi. Also, if you have changed your build.prop the updater may fail.
[T-Mobile LG G2x] substanceneil:
PRE-Update

1. I am able to consistently reproduce the shutdown bug.

2. In trying to dowload the update, I had a usb-mass storage crash/reboot.

3. I am unable to download from the browser... when I try to download (e.g. your update) I get a notification "Download unsuccessful." I have try changing the "storage" option in the browser settings to internal and sd card but have the same problem. Anyone else having this issue?

I am about to try the update. If it does not fix the issues straight away, Lotherius, you have asked us to wipe. Do you mean a factory reset? Cache wipe? Dalvik wipe?

I will post results soon.
[T-Mobile LG G2x] homerxd:
Thanks for restoring back to AOSP camera and fixing flash player.

Post update

- So far no shutdown bug.. power off option works just fine

- Media scan was crashing before update.. after update no crash so far.

- Applying cold theme - it says its completed.. but I still see old theme.

I sent a small donation to buy a beer or coffee(depending on what you drink :) ) couple of days back.

Thanks for great work you are doing.

Once you have everything stable, would it be possible to provide an option to disable startup/shutdown sounds and animation.
[T-Mobile LG G2x] substanceneil:
Post update:

1. Shutdown works x 2 attempts. I will continue to try and reproduce the bug, but so far so good.

2. Minor minor non issue is the shutdown animation seems to hang at the end and freeze before powering off.

+1 on request to disable shutdown sound.
[T-Mobile LG G2x] wmm:
Flashed the update and rebooted; no problems. I wanted to restore the P990 camera so I used the power-button menu to select "recovery" and got the no-boot-animation reboot instead.
[T-Mobile LG G2x] overground:
You can remove the sounds yourself using Root Explorer and going to system/media/audio/poweroff -poweron and deleting the contents (leaving the folders).
[T-Mobile LG G2x] lotherius:
Thanks everyone for the feedback... It's been touchy getting things to where they are! I'm glad the initial feedback is positive, but I'm going to wait a bit longer before making this an official update.

I can easily remove the shutdown sound. I agree, in many cases you want to be able to shut off your phone without noise. The reason it appears to hang is I didn't do a lot of work on the animation, and the last frame should normally be solid black, and it isn't... it's an animation issue rather than anything else. A longer animation, or one in which the last frame is black would solve it.

The media crash thing has been intermittent for me - I still got it after the update. It appears to be related to thumbnails on the memory card, in the logcats I've seen, for album art... I could *potentially* clear thumbnails in the installer to prevent the issue as they're autogenerated, but I am very hesitant to go deleting data on people's memory cards, even if it is "cached" data.

I'm busy trying to run my battery down to make sure that there's no issue with the low-battery power off. I was using my 3500mah extended battery, *AND* I was plugged in constantly moving files on/off for development, so it's really hard to get a dead battery. My stock battery was fully charged, so I've got the phone set to full brightness and 30 minute screen timeout LOL... EDIT: *sigh* confirmed that it freezes when powering down from low battery. That's not good, it might damage the battery if it stays on too long. Unfortunately logcat has already gone down by the point it freezes....

Will test the Cold theme again after the battery rundown is finished. One thing to note is that the update will overwrite some of the files that are written by the cold theme, so it has to be flashed *after* the update.

Also, I'm trying to get the Rom listed in Rom Manager. The submission form says "a few hours" for approval, but it's been much longer than that and it still hasn't shown up. Once it is available in Rom Manager, you'll be able to do "ota" updates through Rom Manager.
[T-Mobile LG G2x] homerxd:
Regarding cold-theme I did flash it after update and it still is a no go. I hope the theme update didn't do any updates that are partial that can cause issues with original theme.

Also once I flash cold-theme can I switch back to original theme? or do I need to flash original theme?
[T-Mobile LG G2x] lotherius:
I have confirmed this issue and honestly this one bugs me a lot... will definitely see about getting this fixed before going "final", as this could damage the battery by draining it below a safe level. I quoted this to let everyone know to watch out for it happening - if your phone shuts off from power too low, you need to make sure it's all the way off... Now that I've confirmed it, it's #1 on my to fix list.
[T-Mobile LG G2x] lotherius:
Did you download the new version of Cold theme, or use your original download? I didn't actually say that you'd have to redownload it, did I ....

If you do manage to get it installed and want to revert, the updater will replace all the themed files.
[T-Mobile LG G2x] homerxd:
Thats it.. I was using v1 theme....tried with V2 and it worked. Thanks
[T-Mobile LG G2x] lotherius:
Glad to hear it is working. Surprised nobody reported that the flash didn't work...

EDIT:

still working on the 0% battery issue... having to go back to the first port & see if the issue exists there.

EDIT 2:

Issue was not present in the first port... something I did caused this particular issue. It is either due to the Power Menu shutdown changes, or something unknown ... I tried restoring the battery low warnings, thinking maybe the code to disable those caused the issue, but the problem remained. I'm kinda at a loss where to look next on this one.
[T-Mobile LG G2x] mmandros:
If I recall weapons had/has this issue it was reported that it was related to the power menu. Can't recall if it ever was corrected.
[T-Mobile LG G2x] lotherius:
Only reference I can find with Weapon is a 15% shutdown bug... looks like that was related to the low battery warning. This seems a bit worse, because of the potential to drain the battery too low.

If I can't find any likely fixes in the shutdownthread which was changed by the powermenu, I am going to hack into the final shutdown warning and see if I can force a shutdown there... it's mighty hacky, and it will make the shutdown a little less beautiful (there will be no final warning), but at least the battery will be safe. Or maybe I can just use the same fix from the rebooting on shutdown in the hanging on 0 battery shutdown... grr....

I'm beginning to dream in Smali.

Now, why did I forget and leave my phone plugged in.... now the battery is back up to 25% and I can't test it :( why o why did I leave my phone on the usb :(
[T-Mobile LG G2x] bmann_420:
I know this may be more of an app issue, but just posting since it was updated for the GB roms on this device. Juice defender seems to be getting the exact same error as it did before with the 2.3.3 build. It took about a month but JD released a beta update with the changelog that did fix the issue. After installing this version, neither the JD beta or regular version seem to work right.

I am using the 2g/3g app you have for now, but JD also maps my wifi networks and auto enables/disables such helps a lot, let alone the chunk of life it saves on the battery. Just a thought, wasn't sure what you might think it could be related to. I can get you the links at latedroid if you need.

And once again thanks for staying consistant with this rom. Everything about how this rom works is perfect. I've never has such a smooth internet browsing experience when looking over pages using the touchscreen.
[T-Mobile LG G2x] chauza01:
From EaglesBlood..

Just flashed this ROM from EaglesBlood. So far so good.. :) Thanks lotherius!
[T-Mobile LG G2x] substanceneil:
Anyone having an issue downloading from the browser?

Error captured. Happens with any download from any webpage. Including small pdfs.

Tsugi b3 with update and stock kernel.
[T-Mobile LG G2x] Pecata:
You can download an app called Download All Files from the market and it will let you donwload any type of file without a problem ;)
[T-Mobile LG G2x] albertorodast2007:
Or use astro, open it, go to settings and check download any type of file...
[T-Mobile LG G2x] overground:
I'm using JD beta/Ultimate with the exact settings I used with 2.3.3. I too, use it especially for the location wifi enabling. I am also using the AOSP helper. Everything seems to be working except for the 2g/3g/4g auto toggling, for which I found the same level of bugginess in 2.3.3 (sometimes it works, most times it has me stuck at 2G). I have that option disabled now.
[T-Mobile LG G2x] lotherius:
If I remember right, JD uses some kind of brute-force injection to toggle 2G.. that would actually be the only way to do it, since Google allows 2G to only be toggled at the system level. Toggle2G app works because it has been signed with the same keys as the rest of the ROM (which required me to sign the rest of the Rom also!)... Other issues with JD I wouldn't know as I don't use it.. I tend to prefer Tasker for most things.
[T-Mobile LG G2x] Charlie Brown:
Heya Loth. Thanks for your time and effort in getting us this gteat ROM!

In the Weapon series of ROMs there is a 0% battery bug as well as Tsugi. So for example, when I condition my battery and let the phone go down to 0% the phone locks up and warrants a battery pull.

Thanks again!
[T-Mobile LG G2x] bmann_420:
Yea I have that same combo too with ultimate. I just disbled the data with jd and use 2g/3g toggled in the rom. I was just a lil curious cause it actually worked for me on the 2.3.3 roms. But that toggler is a perfect suppliment. =)
[T-Mobile LG G2x] lotherius:
Ahh... see, to me, that warrants a big warning since there's possible hardware damage if you're not aware... Li-Ion batteries can be damaged if they are drained too low, and this could potentially do that if you don't find it and pull the battery for a while. I guess nobody leaves their smartphones alone that long with a dead battery - but what if you've left it on the table while you're out of town? I am a perfectionist so this really bugs me!

I tried JD back on my G1 in 2009.... didn't like it. It's probably gotten better, but now I use Tasker to manage my power profiles. The Toggle2G however won't affect JD's ability to toggle 2G/3G on its own. Most likely is JD implemented a 2.3.3 specific patch, or a device specific patch, that no longer applies on 2.3.4? That's likely because to do a 2g/3g toggle without the system signature requires some really hacky stuff and is not very reliable.
[T-Mobile LG G2x] sukhochir:
Tsugi , Not working touch key light app(slide bar not change )? How to fix
[T-Mobile LG G2x] substanceneil:
@Sukhochir: there is a flashable zip in post #8 that dims the touch key lights. I also cannot use the "touch key lights" app. Lotherius's zip is a better way for me to dim them anyway (without requiring an app to run as root on each start up. Only advantage of the app is ability to customize brightness. I prefer the dimmest setting.

Toggle2G seems to be working fine for me. This single feature baked in makes this ROM stand above the others I've used.
[T-Mobile LG G2x] overground:
Make sure you've enabled the app in Settings>Accesibility.

It should also request Root permissions.

Assuming we're talking about this app.

Have my led's @ 2/20 and works perfectly.
[T-Mobile LG G2x] lotherius:
Actually it's Post #3 now ;)...

But yes, I noticed that the app seems to think it can't get root now, and I'm not quite sure why. Every other root app I have works fine, so I think it's an app specific issue.

Btw, the flashable zip sets touchkey brightness to 2 on a scale of 0-20. If you edit the file in /system/etc/init.d/s90DimButtons using root explorer, you can change the value to 1 for even dimmer lights. 0 would turn them off completely.
[T-Mobile LG G2x] sukhochir:
Tnks, I fixed in init.d
[T-Mobile LG G2x] sukhochir:
It possible? , when display automatically bright, add option static decreasement value of light,

Because auto too bright , decrease light level

Srry my english lang
[T-Mobile LG G2x] substanceneil:
The touchkey app did work for me with xboarder's tweaked 2.3.3. So it might be something about 2.3.4 or this rom that keeps it from getting root access.

I prefer the script anyway.
[T-Mobile LG G2x] overground:
The app works perfectly for me.
[T-Mobile LG G2x] lotherius:
They're referring to LG Optimus 2x touch key lights by Matthieu Guenebaud. It does break, not sure why. For some reason it can't get root permissions to the wled file (which is how you change the brightness).

The LG 2X/Black/3D Notifications app *does* work, since it makes sure it has proper permissions on the file.

I have not tested LG 2X/G2X Touch Key Brightness since it is a buck fifty.

The funny thing is, if you use the notifications app, it will correct permissions on the WLED file, which will allow the first app to work correctly.

I may add something to the init scripts to open up permissions on that file so that the first app will work, since it is nice being able to change on the fly... I'll personally keep using my script though :)

--

And in an unrelated note, I'm going to go to working on this on weekends only. I think it's stable enough that it doesn't NEED daily updates anyway, and I am *supposed* to be finding a new job, and unemployment compensation doesn't cover my bills. Can't find a new job if I'm hacking Android all day lol...
[T-Mobile LG G2x] overground:
Well, I've stuck with the second app you mentioned by Martin Börjesson.

I've used it since it first became available, and has not failed across any build I've tried.

I only use it for missed calls, sms and led dimming.

I get too many emails and gtalk convos to warrant the battery drain for non urgent communications.

EDIT: Good luck with your job hunt. Hope all goes well for you.
[T-Mobile LG G2x] mackster248:
Do those LED apps like the one built in CM7 really waste a lot of battery? Or is it a small difference?
[T-Mobile LG G2x] Beggars1923:
Before flashing can someone let me know if there is an HDMI Out control option?

Thanks.
[T-Mobile LG G2x] theonetruecoco:
There is options to change resolution on the HDMI settings, what options were you looking for?

On the LED key issue I also use the app by Martin and have not had any issues with it breaking or crashing...

This ROM is definitely the fastest sharpest and most stable that I have flashed recently, no disrespect to other DEV's but there have been small things like BT pairing not working in Weapon, SOD in CM7, and WiFi issues with Miui but overall this has been a very reliable daily driver...
[T-Mobile LG G2x] Beggars1923:
That's exactly what I was looking for. You can't adjust with any ROMs other than 2.3.3 ROMs - that is until now.
[T-Mobile LG G2x] lotherius:
You should be able to do anything with this Rom you could with 2.3.3... This is an actual LG-produced base from the L95G which was a demo unit sent to tracfone that turned up on xda forums a while back. Turns out it was identical in every way to the P999 (g2x) except for a newer software build.
[T-Mobile LG G2x] Beggars1923:
Thanks, gonna give it a shot. Been using Weapons since its inception but it appears as though development has petered off - not sure there is much more Whitehawkx could have done.

Edit - flashed and everything looks great, really smooth and fast. The first thing I found lacking when compared to Weapons and CM7 is the flashlight (it's not that big of a deal, I mainly use it a night to find my little one's pacifier)
[T-Mobile LG G2x] wmm:
There is a flashlight app included; it's called Torch.

---------- Post added at 12:17 PM ---------- Previous post was at 12:14 PM ----------

I just had my first reboot not connected with unmounting the SD card or using the power-button menu. I was watching a video using Vital Player, when suddenly the playback stopped and I was in one of the no-boot-animation reboots. I'm using the stock kernel with the 11/25 base and the no-wipe beta update from a couple of days ago.
[T-Mobile LG G2x] lotherius:
It looks like there is still an underlying problem like those that have plagued the G2X since the start... :(... it seems better on 2.3.4 but is still there.
[T-Mobile LG G2x] jboxer:
That's weird. I am using the same base rom and never had the reboot issue upon dismounting the sd card. You sure it is not due to the kernel change or some other change you have made?

I do experience power down taking longer than it should. But after about fifteen to twenty seconds with a blank screen with capacitive lights on the phone will finally vibrate once and then shut down.
[T-Mobile LG G2x] lotherius:
Actually, I have never had the SD card issue either... Doing development, I am constantly plugging/unplugging the phone from USB, and mounting USB. Never a problem. It seems to be specific to just certain users, and it happens with the stock kernel as well. Can't say what the cause is because I cannot reproduce it on my phone....
[T-Mobile LG G2x] homerxd:
I didn't have any reboots too so far.

lotherius, Is this still under beta? or are you going to move it to final soon? Would like to use as a permanent rom on my other phone.
[T-Mobile LG G2x] lotherius:
The only holdup on a final release is the 0% power shutdown issue.... if your battery runs down completely, the phone doesn't shut down properly, potentially damaging the battery. If I can fix that I'll mark it final and make a full no-wipe upgrade from beta 3 or the rollup available.

Btw, the 11-25 version is in Rom Manager. Once I make a final release, I'll put that on Rom Manager, and anyone who has run the Rollup should get an upgrade notification from Rom Manager. The original 11-25 version without the rollup doesn't have the info necessary for Rom Manager, but would still be able to be upgraded no-wipe when I do post the final.
[T-Mobile LG G2x] substanceneil:
I just had a reboot on connecting my wired headset. Odd.

This phone was working smoothly on 2.3.3 xboarder tweaked. So I would guess the (rare) reboots are a Rom issue.

Overall everything continues to be smoother and faster with increased battery life. Toggle2g is working perfectly. The phone also runs noticable cooler.

Lotherius, what is the GPS tweak in this Rom? The only thing that xboarder's tweaked 2.3.3 did better was GPS lock. I wonder if he used a different tweak?
[T-Mobile LG G2x] Charlie Brown:
Hey Loth... maybe you can bypass the 0% shut down problem by having the phone shut down at 1%. Is that possible?
[T-Mobile LG G2x] lotherius:
Completely rewriting things is not so easy in Smali... it's not the % that's the problem, it's why isn't it completing the shutdown, since it is *starting* the shutdown as it should. If I merely change the % that triggers it, if I could find the right location, the problem would remain. Need to find why the shutdown stops. Unfortunately adb is already dead at that point which means debugging is down... so it's mere intuition... My theory is maybe I can just simulate a user-initiated shutdown instead, but then I'd have to bypass the popup prompt that comes up...
[T-Mobile LG G2x] homerxd:
After reading this post.. I started looking around for shutdown process.. and came across this.. Not sure if you already have seen it or not.. so posting it.

http://kobablog.wordpress.com/2011/07/16/shutdown-sequence-of-android/

From these steps

Through beginShutdownSequence(), actual shutdown process is done in run().

Broadcasts ACTION_SHUTDOWN Intent

Calls shutdown of ActivityManager service

Calls disable of Bluetooth service

Calls Radio(false) of Phone service

Calls shutdown of Mount service

Vibrate for a while

Calls Power.shutdown();

Could it be possible there are some locks on files that are preventing unmounting and keep on waiting?
[T-Mobile LG G2x] theonetruecoco:
Been using it as daily for almost a week with only issue being USB storage which was fixed with the roll up. Gps is not any slower for me in Texas than any other rom
[T-Mobile LG G2x] lotherius:
Those are the files I've been staring at. Unfortunately, without the source code, I have to stare at decompiled Smali code, which is not beautiful, and is VERY obfuscated. It is extremely hard to follow and there are no comments. Fortunately function names and a few other things are saved for debugging purposes, but that's about it. It's the next step up from writing in assembler code itself and I have no training in this stuff!

But from what I can tell, the phone *thinks* everything is shut down. The log file closes out normally and shows successful unmounts with no errors... Somehow though, the power simply isn't being turned off. As I said, I may have to just transplant code from a section of the code with a *working* shutdown and maybe not have it do a power low shutdown but a normal shutdown... hopefully the only difference is how it logs it - I don't see why there would be any other difference. I also don't see why the power menu changes should interrupt the low power shutdown either, but apparently they have... Either that or it's somewhere completely different....
[T-Mobile LG G2x] bluenote73:
I dunno if i mentioned this, but weapon rom does indeed suffer from broken shutdowns. I dunno if that also applies to low battery shutdowns but i think it does.