[ROM] Ubuntdroid 4 Final-Optimus T

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
Question for those who know the P509. Will this Rom make me unlock my Tmobile phone? That is the one thing I don't like about the other p500 roms I have tried. What if any files can I extract from the original hardware to avoid the sim card not recognizing the phone?
Thanks!

Sent from my LG-P500 using XDA App
 

case-sensitive

Senior Member
Nov 4, 2010
342
33
0
Now you got me (a P509 newbie) worried: could you elaborate your questions/experience?

Will this Rom make me unlock my Tmobile phone?
Are you asking if it this rom only works for sim-unlocked phone?

That is the one thing I don't like about the other p500 roms I have tried.
Absolutely please explain/elaborate your experience (which rom, exactly what happened...)

Many thanks!
 

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
I wiped & flashed Megaton without any errors. Android ran perfectly. Except when I went to load my goggle account. There was not a data connection. I could get one web page loaded, but nothing past that. Upon trying to load the 'my device' app from Tmobile I was given a locked device error. Calling & Sms worked fine.
I fixed this by flashing my nandroid backup without wiping anything. Now I still have Megaton, but all the Tmobile goodies now work. This makes me wonder what the stock recovery image had that the P500 rom didn't.

Sent from my LG-P500 using XDA App
 

case-sensitive

Senior Member
Nov 4, 2010
342
33
0
Question for those who know the P509. Will this Rom make me unlock my Tmobile phone? That is the one thing I don't like about the other p500 roms I have tried. What if any files can I extract from the original hardware to avoid the sim card not recognizing the phone?
I just installed this ROM on my optimus T. Everything went well, I can still make phone call, and both usb/wireless tether work.

A couple of post-installation FYI:

(1) After I flashed the ROM and boot up the phone for the first time, the phone stayed on the ubuntdroid boot animation for a good minute or two; I was afraid it might have hit a bootloop but eventually it got out of the boot animation. Now it takes about 45 seconds to boot from cold (including a couple of weather-type widgets that requires updates).

(2) I need to use setCPU to OC the kernel. I first set it to 806Mhz, ran the stress test for 5 min, and there was no error. Subsequently I had two crashes (i.e. auto reboot), both times while scrolling through the zeam application drawer. I lowered the clock to 768Mhz and I have not a had a single crash/FC for over 24 hours. I do not notice any major difference between 806Mhz and 768.

I'm a happy man :)

Now, what can we do to get UD5?
 

Joeseph Mother

Senior Member
Sep 13, 2009
118
39
0
Now, what can we do to get UD5?
Pray ;) Unfortunately, one_love_420 can't find a way to edit the .9.pro files the way he wants to, and I can't do anything related to theming (for proof flash JoeMomRom that I also made). So unless we get some kind of good aosp build to go off of, or if the official 2.3 for the optimus switches to .9.png files, this probably won't get updated.
 

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
hard button question

I have to say that I really like the way this ROM is running. Time will tell how the battery life is with overclock cpu and wifi. I will say that running this through the kitchen and VERY CAREFULLY looking around is very educational. I was able to add all of my user apps in the data/app folder and install everything I need from the very beginning.

One question: This was asked before, but there has to be a technical way to change the search button. I think the answer lies within the build.prop file, but would like some solid advice instead of trial and error.

Mad kudos to everyone involved with this build, both original and revised!

Brian
 

ungaze

Senior Member
Jul 27, 2010
401
158
0
manila
One question: This was asked before, but there has to be a technical way to change the search button. I think the answer lies within the build.prop file, but would like some solid advice instead of trial and error.
What do you want to do with the search key? If you want to remap it like making it the camera shutter key or make it play/pause media button, you could start looking in /system/usr/keylayout/thunder_keypad.kl(I'm sure that's the one but qwrty.kl is also a possibility.)
 

case-sensitive

Senior Member
Nov 4, 2010
342
33
0
What do you want to do with the search key? If you want to remap it like making it the camera shutter key or make it play/pause media button, you could start looking in /system/usr/keylayout/thunder_keypad.kl(I'm sure that's the one but qwrty.kl is also a possibility.)
I can't speak for DesigningOne, but on my optimus T the search key brings up the call log (in the phone app); it would be great if I can bring up instead google (better yet: the dolphin browser, but maybe I'm being greedy...)
 

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
Case: G-search would be my first choice, but the option to tinker is more the point. Now to find the best way to manipulate a,.kl file per the previous post...

Ciaox: Would the LOL wifi fix you have in your 'ROM how to' post lessen the battery drain during wifi use? I dropped 10% within an hour last night, and only 1% after turning wifi off (3g on) the rest of the night.

Thank you to all who take time to help!

Brian,
Sent from my LG-P509 using XDA App
 

case-sensitive

Senior Member
Nov 4, 2010
342
33
0
Yes,just read this http://forum.xda-developers.com/showthread.php?t=901417. WiFi battery drain related to mik's CM7 has been fixed using this fix.
I just followed the instruction in

http://forum.xda-developers.com/showthread.php?t=988479&highlight=LOL+wifi

and created the gscript (su allowed) on my rooted P509, but when I ran the script I go the error message:

stderr: sh: line 1: iwconfig: command not found
stderr: sh: line 2: iwconfig: command not found

Did I miss something obvious, or do I have to bake this into a new rom? Maybe this only works for CM7?

Thanks!
 

case-sensitive

Senior Member
Nov 4, 2010
342
33
0

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
I ran across that last night. I've ben trying to find a list of which key does what. I may have to do some experimentation and make a list. It would be nice to have full control of the hard buttons.

Sent from my LG-P509 using XDA App
 

ungaze

Senior Member
Jul 27, 2010
401
158
0
manila
So sorry for not replying soon enough:

Basically here's what the file contains:
Code:
[COLOR="Red"]#
key 2     1
key 3     2
key 4     3
key 5     4
key 6     5
key 7     6
key 8     7
key 9     8
key 10    9
key 11    0[/COLOR]
key 158   BACK              WAKE_DROPPED
key 230   HOME              WAKE
[COLOR="Red"]key 60    SOFT_RIGHT        WAKE
key 62    ENDCALL           WAKE_DROPPED[/COLOR]
key 229   MENU         WAKE_DROPPED
key 59    MENU         WAKE_DROPPED
key 139   MENU              WAKE_DROPPED
[COLOR="red"]key 228   POUND
key 227   STAR
key 231   CALL              WAKE_DROPPED
key 61    CALL              WAKE_DROPPED
key 232   DPAD_CENTER       WAKE_DROPPED
key 108   DPAD_DOWN         WAKE_DROPPED
key 103   DPAD_UP           WAKE_DROPPED
#key 102   ENDCALL           WAKE_DROPPED[/COLOR]
key 102   HOME              WAKE
[COLOR="red"]key 105   DPAD_LEFT         WAKE_DROPPED
key 106   DPAD_RIGHT        WAKE_DROPPED[/COLOR]
key 115   VOLUME_UP         WAKE
key 114   VOLUME_DOWN       WAKE
[COLOR="red"]key 213   DEL               WAKE_DROPPED
key 355   DEL               WAKE_DROPPED
key 212   CAMERA
key 247   FOCUS[/COLOR]
key 217   SEARCH	    WAKE_DROPPED

[COLOR="Red"]key 226   HEADSETHOOK       WAKE[/COLOR]
key 116   POWER             WAKE
[COLOR="red"]key 107   ENDCALL           WAKE_DROPPED[/COLOR]

[COLOR="red"]key 16    Q
key 17    W
key 18    E
key 19    R
key 20    T
key 21    Y
key 22    U
key 23    I
key 24    O
key 25    P

key 30    A
key 31    S
key 32    D
key 33    F
key 34    G
key 35    H
key 36    J
key 37    K
key 38    L
key 14    DEL
        
key 44    Z
key 45    X
key 46    C
key 47    V
key 48    B
key 49    N
key 50    M
key 51    COMMA
key 52    PERIOD
key 28    ENTER
        
key 56    ALT_LEFT
key 42    SHIFT_LEFT
key 215   AT
key 57    SPACE
key 53    SLASH
key 127   SYM
key 100   ALT_RIGHT

key 399   GRAVE[/COLOR]
I have modified these values using my previous phone(samsung galaxy spica) and was successful in remapping the key functions, but what I'm concerned about is the repetition of the home and menu functions.(which were not present on my previous experiments). So I'll just share what I know about these characters.

First column is the actual key code(specifies the actual key pressed)
Second column is the function of the said key.
Third column is some kind of a sleep behavior flag.
-wake means the function will be executed without waking the screen if the said action is available(or something like that)
-wake dropped will wake the screen instead, phone needs to be in unlocked mode before the functions take effect.

Basically, all the lines in red, you can ignore. Now the lines in black you could shuffle the assigned function to whatever you want(AFAIK you can even assign functions from the red lines and even media controls).

I havent tested with optimus yet so until then, I'll leave you with this.
 
Last edited:
  • Like
Reactions: taha198

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
Key 217 did the trick. Another mod was removing the wake from the menu, home, and search buttons & volume up and down. I keep my phone in my pocket a lot, had quite a few problems with buttons staying pressed.
Always make backups!
Thanks for the help!

Sent from my LG-P509 using XDA App