yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] temasek:
New commits

- star: Enable high-bitrate fullHD recording (android_device_lge_star-common)

- Enable 1088p at 30fps recording on NVidia Tegra cameras (android_packages_apps_Camera)

No need to cherry pick, just compile it. But I'm going to sleep now. Let other KANGers do the job :D
[LG Optimus 2x] Imperticus:
I know what the problem is, its the build.prop and the vold.fstab

i was playing around with them, and i thought they would change with the new build, guess they didn't. will fix it soon.
[LG Optimus 2x] Rusty!:
LMAO bastarding typical.

Still, my build isn't failing this time so should be done soon.
[LG Optimus 2x] pastime1971:
yeah, that is known.

you can just rename it from the filemanager once rebooting.

edit: also known is that space in folder name causes an issue. when you rename them, don't use space
[LG Optimus 2x] pastime1971:
i was just about to post that...

temasek beat me to it...
[LG Optimus 2x] temasek:
What a BIGGGGGGG difference between build #1 and now. -- Still can't believe it. It is a BIG improvement every couple of builds. Hats off to CM Team and especially acree, our maintainer.
[LG Optimus 2x] Rusty!:
Ahh yes build #1 was a big steaming turd by comparison, the amount of work that's been done in 2 months is incredible!
[LG Optimus 2x] dedors:
I just had the problem that I had to boot 3 times into CWM until the menu appeared (the first two times, the "ANDROID" and the cwm logo showed up, and rebootet.

Is this also known? :)

Was quite shocked after the first 2 trys, since it's no fun when CWM "disappears" when you don't even have a running system :)
[LG Optimus 2x] pastime1971:
not that i know of. (but i'm still a noobie)

anybody else ?
[LG Optimus 2x] Rusty!:
Did you let go of power & vol- in time? If you keep holding it too long it registers the power button being pressed on the reboot option.
[LG Optimus 2x] .:george:.:
Hehe, after flashing #64 my Market keeps closing every time (not FC, just disappears immediately), also few of my apps wont work now... hoping that #65 will fix that :) (Market mainly, I can always reinstall the apps)
[LG Optimus 2x] pastime1971:
+1 to what temasek and rusty said.

i do some application programming for my work, and i never did an operating system.

it is a tremendous effort, i assume...

it's just so amazing what they have accomplished .... truly amazing
[LG Optimus 2x] dedors:
like always as soon the "A N D R O I D" appears. Well, it's not really that bad since it worked, but the initial shock still is in my body :D

+1 more. The camera was the last step to make it complete. The remaining minor things dont bother me. Well, almost. GPS seems a little strange still. I had some test runs where it just needed long to get a fix. Other people report the same thing. Did a test now, had a lock after 47seconds.
[LG Optimus 2x] pastime1971:
i don't see any particular change on P990 since RC1 that would affect market.

i didn't have any market problem after (and before) RC1.

did you try to wipe /cache and dalvik-cache ?

could that be related to gapps-gb-20110613-signed.zip update in nightly #51 ?
[LG Optimus 2x] TrymHansen:
Yes, quite known, it happens when you don't release the powerbutton quickly enough. If you still have it depressed when the menu appears, "reboot" will get selected when you release it.

Either:

o Let go of the power-button as soon as you see the "A N D R O I D" text.

o Keep it depressed and press a volume-button to select something else before letting go.

I think this was fixed in later versions - but they also have a longer delay before starting.

::Trym
[LG Optimus 2x] pastime1971:
i'm a little bothered by automatic time-zone bug, and i think it's still there. (using manual config at the moment...)
[LG Optimus 2x] dedors:
Still waiting Rusty :)

btw, is it possible to view the source online? I wonder if I can find the bug I experience even I'm not a coder. It's just a little thing. I'm using status bar at bottom, when I got too many notifications the notification panel tries to scroll down, even the notifications fill up from bottom to top (and therefor will hide the "delete" button).
[LG Optimus 2x] Rusty!:
Kang with camera cherry-picks (at the time, now commits):

http://www.mediafire.com/file/q5wmchiruqg0pid/update-cm-7.1.0-RC1-Optimus2X-KANG-signed.zip
[LG Optimus 2x] Imperticus:
Here's my attempt, should be fixed now

http://www.multiupload.com/P9NA9WAB3B

Rusty beat me to it :(
[LG Optimus 2x] dedors:
Up and running now. Recording works like expected.

I had a record abort once, it lagged for about 1/4sec, then continued for about 1 second, then just stopped.

I'm also wondering if the recording tearing is hardware limited or something that can improve. I guess the sensor is just too slow. (What I mean is when you move quickly, then the lower part of the picture will "lag", resulting in something that is vertically | to get like / )
[LG Optimus 2x] .:george:.:
Okay, successfuly running Rusty's kang, reinstalling gApps did the trick for me :)

Anyway - recording works but in darken areas I can see absolutely nothing... It doesn't have to be necessarily too dark, just my room in this weather is enough... Any workarounds/fixes?:)
[LG Optimus 2x] znejk:
I had a really strange experience with the latest kang i tried with the gerrit. It removed the gmail account so i lost all my contacts. But the strangest thing that happened I experienced when i washed my car and suddenly from my jacket Gimme some lovin' started to play at a really loud volume (it was an incomming call and the o2x thought it would be a good idea to change ringtone?! :D ) so i stood there in the carwash garage trying to turn off the loud music which refused.. even when i ended the call... hahah very amusing though the ppl there
[LG Optimus 2x] vitaminxero:
You and me both -_-
[LG Optimus 2x] pastime1971:
try to turn on the flash before start shooting ?

i think auto exposure is set while recording, and not sure if there is any way to change exposure from app like it does for still images. i may be wrong, but if you look at libnvmm_camera.so, it says something about exposure and frame rate.

could be that 30fps to too fast for long exposure. if that's the case, try to compare with 15fps video. "Low" setting should be still 15 fps. i say this because i also noticed that preview seemed darker than the actual recording... preview is always (?) 30fps.
[LG Optimus 2x] pastime1971:
i'm happy to report that camera doesn't crash any more (... well almost ...)

with recent commit, you can change white balance, etc. WHILE recording video.

it doesn't crash any more. change is immediate.

here's catch.. once you finish recording, app FC'es and video never gets saved.

but on the plus side, you don't have to reboot phone any more.

i'm thinking today's kernel update helped ....

edit: video does get saved. it wasn't visible right away, but after a while, it is there.
[LG Optimus 2x] pastime1971:
is anybody getting a build error after repo sync this morning ?

i get

target R.java/Manifest.java: Settings (out/target/common/obj/APPS/Settings_intermediates/src/R.stamp)

packages/apps/Phone/res/values-nl/strings.xml:700: error: Resource entry slide_to_answer_hint is already defined.

packages/apps/Phone/res/values-nl/strings.xml:614: Originally defined here.

packages/apps/Phone/res/values-nl/strings.xml:701: error: Resource entry slide_to_decline_hint is already defined.

packages/apps/Phone/res/values-nl/strings.xml:615: Originally defined here.

make: *** [out/target/common/obj/APPS/Phone_intermediates/src/R.stamp] Error 1

make: *** Waiting for unfinished jobs....

it might be just me. i kinda messed with git/repo yesterday to commit to review.cyanogenmod.com.

spent hell of time trying to get publickey to work. ssh -T git@github.com never succeeded... (using fedora 14 here) but commit was uploaded fine....

edit: now that i looked at it closer, it does look like a bug. that strings.xml does define those two twice.... easy to fix, i guess

edit2: never mind. maybe my repo was broken... deleted /packages, resynced, and it compiles fine.

i know repo sync doesn't update your modified files. is there a way to force it ?
[LG Optimus 2x] pastime1971:
repo sync error

is anyone getting this error ?

i tried to completely wipe the directory, and re-init. still getting the same error ...

$ repo sync -j16

Fetching projects: 100% (267/267), done.

error: revision gingerbread in CyanogenMod/android_device_lge_thunderg not found

edit: there used to be p990 p999 star-common thunderg vm670 under .repo/projects/device/lge/

now we have thunderg and thunderc in .repo/manifest.xml (after repo init in a fresh folder)

<project path="device/lge/thunderc" name="CyanogenMod/android_device_lge_thunderc" remote="github" />

<project path="device/lge/thunderg" name="CyanogenMod/android_device_lge_thunderg" remote="github" />

edit: i can't find what device is lge thunder*. is thunder "optimus one" with g=gsm and c=cdma ?

edit: delete line 66 in .repo/manifest.xml <project path="device/lge/thunderg" name="CyanogenMod/android_device_lge_thunderg" remote="github" /> , and repo sync completes.

EDIT: it only happens if you do a fresh repo init ...

EDIT: Danny Baumann gave me a tip, adding revision="master" solves the issue.
[LG Optimus 2x] Rusty!:
Nope, syncs fine here.
[LG Optimus 2x] temasek:
Sync fine too.....
[LG Optimus 2x] pastime1971:
yeap... it only happens if you do a fresh repo-init ... before repo sync
[LG Optimus 2x] Rusty!:
Quick kang to include new kernel and USB OTG:

http://www.mediafire.com/?z4d4160r8h88rxj
[LG Optimus 2x] BritSwedeGuy:
Nice - "USB accessory mode support" sounds intriguing...
[LG Optimus 2x] Rusty!:
Sure does... need to get me an adaptor off eBay to try it out though, thought I had a cable so built it, but don't. D'oh!
[LG Optimus 2x] Basil 123:
I ordered a USB adapter cable a couple of weeks ago - just have to try hooking up my Xbox 360 controller for windows...
[LG Optimus 2x] dedors:
just ordered a USB host cable too :)

here's the cheapest one I've found: http://cgi.ebay.ch/ws/eBayISAPI.dll...971718&ssPageName=STRK:MEWNX:IT#ht_3286wt_905

I'm still trying to figure out how I can charge my phone while attaching a USB Hub. Are there (powered) special hubs around which provide power on the host connection?
[LG Optimus 2x] Imperticus:
Does that mean you can use physical controllers to play games?
[LG Optimus 2x] Rusty!:
Quite possibly, I've seen Angry Birds played with a mouse on a phone via USB-OTG before.

Good news, I found the USB OTG cable I thought I had. Bad news, it's mini-to-mini so I've ordered a better one (micro-to-full size) off eBay
[LG Optimus 2x] temasek:
Link pls :D
[LG Optimus 2x] Rusty!:
1.45: http://www.youtube.com/watch?v=_uYbTH2bVK4
[LG Optimus 2x] temasek:
Nice but I meant link to your purchase of that adaptor off ebay :)
[LG Optimus 2x] Rusty!:
Oooh I didn't think it was that as they're not exactly hard to find ;)
[LG Optimus 2x] temasek:
I know...too many varieties.....I want Rusty!'s choice :D:D:D
[LG Optimus 2x] Rusty!:
Bare in mind I made my mind up by sorting 'cheapest including delivery' :D
[LG Optimus 2x] temasek:
Yes Sir, looks good though.

EDIT: I got the same at GBP 1.71 :)

Thanks for the link.........
[LG Optimus 2x] dedors:
That does not look like Micro USB ! I'm pretty sure thats not gonna work.

It really has mouse support, cool :)

I heard its possible. Anyone with more information?
[LG Optimus 2x] temasek:
Nokia CA-157 is with micro USB

http://europe.nokia.com/find-produc...cables/nokia-adapter-cable-for-usb-otg-ca-157
[LG Optimus 2x] Rusty!:
Sure looks like micro USB to me... will look a bit stupid if it ain't though.
[LG Optimus 2x] temasek:
Make it 2 stupid guys if it isn't micro usb. :D
[LG Optimus 2x] Rusty!:
I notice the screen shot commit has appeared, might have to have a look at that later... ;)
[LG Optimus 2x] dedors:
I see... the phones listed compatible there do have MicroUSB.

I'm still not sure.. do these nokia have 2 connection ports or a hybrid port?

look here

http://www.flickr.com/photos/techprolonged/5133512798/

N8 and looks like the same plug. But pretty sure it does not have "enough rounded corners" (can't describe that better).
[LG Optimus 2x] Rusty!:
Dang. You're right, that is similar but not the same.

Still, I suspect reshaping the plug wont be too difficult.
[LG Optimus 2x] dedors:
"Interestingly, the new microUSB ports from Nokia have a slightly expanded aperture, allowing for a squarer profile for the CA-157 connector, which conforms to the new standard (for USB on the go), Micro-AB. This is similar to the extUSB system used by HTC for their mini-USB-but-with-extra-features connector a few years ago. The idea is that all microUSB cables will fit the N8 (and other Symbian^3 phones) but that the CA-157 will only fit the Nokia phones (and any other future USB on the Go hosts). The physical difference hopefully stops confusion with users of other phones 'trying the adapter anyway', with predictable disappointment."

source: http://www.allaboutsymbian.com/reviews/item/12267_Nokia_N8_part_6-Cutting_edge_t.php
[LG Optimus 2x] Rusty!:
Cool.

It wont fit when it arrives, but I will modify it 'til it does then :D
[LG Optimus 2x] temasek:
Oh no..lolz luckily its damn cheap.
[LG Optimus 2x] Rusty!:
Just file the corners down, and it'll be fine. If anyone asks, all USB OTG cables are like that, so you have to adapt it to fit your phone ;)
[LG Optimus 2x] temasek:
Thanks for the info.
[LG Optimus 2x] temasek:
Lolz indeed a good explaination for my wife (hopefully she don't ask ).....
[LG Optimus 2x] dedors:
There are with micro USB.

Two examples:

http://cgi.ebay.ch/Micro-USB-to-USB...492?pt=LH_DefaultDomain_0&hash=item1c1c294704

http://cgi.ebay.ch/ws/eBayISAPI.dll...&_trkparms=algo=LVI&its=I&otn=2#ht_4420wt_905

The one I bought should have micro too, but not really visible on a picture: http://cgi.ebay.ch/ws/eBayISAPI.dll...971718&ssPageName=STRK:MEWNX:IT#ht_3286wt_905

(But I'm not that sure anymore :D)

Since I can't wait now to get such a cable, I'm thinking of get a USB A female to female adapter, should work too I guess?
[LG Optimus 2x] temasek:
I almost bought the one u selected, exactly same item.
[LG Optimus 2x] dedors:
Yeah I maybe got the wrong one too :) I just contacted the seller, lets see if he answers.
[LG Optimus 2x] Imperticus:
New KANG with few cherry-picks

1. Option to use power button as camera shutter button

http://r.cyanogenmod.com/#change,6469

http://r.cyanogenmod.com/#change,6470

2. Option to disable lockscreen if security screen lock active

http://r.cyanogenmod.com/#change,6478

http://r.cyanogenmod.com/#change,6479

DOWNLOAD - http://www.multiupload.com/D95H0IEI42
[LG Optimus 2x] Rusty!:
Nightly #68 + touch to focus:

http://www.mediafire.com/file/m3ye4k7xfki4uns/update-cm-7.1.0-RC1-Optimus2X-KANG-signed.zip

MD5: 40f4c39e8a234982a627e13e6f114a75
[LG Optimus 2x] pa.pn2:
flashing right now^^

kang works well.focus works as it should,thx for that build
[LG Optimus 2x] pastime1971:
kernel testing

WARNING : mine just shut off for no reason. i don't think it is kernel related, but no guarantee

i enabled FEATURE_LGE_TOUCH_EXPAND_HIDDEN_ACTIVE_AREA in kernel and tweaked the source a little bit. (i cropped one more pixel in touch input area.)

now 'p' registers from LatinIME,apk by pressing right edge of the key.

obsolete files deleted

up-to-date touchscreen kernel hack and libui scalefactor fix

p.s. this may be a dirty kernel hack.

here is a screenshot of swipe from right outbound in Pointer Location

--- image deleted ---

edit: added tweak are

1. force Y = 800 - 2 instead of Y = 800 -1

2. increase TOUCH_LCD_ACTIVE_AREA_Y from 820 to 832

3. increase TOUCH_BUTTON_AREA_Y from 830 to 843

edit: i attach the patch for the lge kernel at http://www.mediafire.com/?3dez10y9185q9cd

i don't know how to submit the kernel patch to cm. if someone know, could you do that ? also, this may be just a hack. if someone know the kernel better (i don't..) maybe he/she can look at it, and improve it ?
[LG Optimus 2x] bjohv052:
This kernel gave me huge improvement. I'm using Smart Keyboard Pro, which does not have the same margin to the screen edge as the stock keyboard. I will open a ticket on the CM issue tracker for this.

Before:

http://www.youtube.com/watch?v=hYoF5SLMmgY

After:

http://www.youtube.com/watch?v=5Dlr0OPIQOo

Poor video quality is due to shooting with my HTC Legend. Sounds in the background is my 2-year-old making car sounds...
[LG Optimus 2x] pastime1971:
first of all, pretty much all the source code needed for this was already in kernel. just not enabled. i just made small tweaks there.
[LG Optimus 2x] pastime1971:
how to wipe dalvik cache

do you guys know how to implement dalvik cache wipe in updater-script in a flashable zip ?
[LG Optimus 2x] pastime1971:
compile error

i get the following error after syncing today's repo :

running: java -Xmx512m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpejIIbD out/target/product/p990/cyanogen_p990-ota-eng.stpark.zip

done.

# should also use TARGET_CUSTOM_RELEASETOOL

ifeq (, true)

/bin/bash: -c: line 0: syntax error near unexpected token `,'

/bin/bash: -c: line 0: `ifeq (, true)'

make: *** [bacon] Error 1

edit: looks like build/core/Makefile has been changed quite a bit. and looks like it is not defaulting to cyanogen one.
[LG Optimus 2x] Rusty!:
Not been a problem for me
[LG Optimus 2x] pastime1971:
dang... why is it that i'm the only one who gets repo problem....:mad:
[LG Optimus 2x] Ph4nt0m_:
I had it too. Rebooted computer (virtual machine) synced repo after a while and it worked again :)
[LG Optimus 2x] pastime1971:
you are right. it seems they just fixed it.

resynced, and it works now...
[LG Optimus 2x] pastime1971:
kernel hack to better handle touch event

recompiled kernel with FEATURE_LGE_TOUCH_EXPAND_HIDDEN_ACTIVE_AREA enabled and FEATURE_LGE_TOUCH_GRIP_SUPPRESSION disabled. the latter gives you 2 pixels back on both long edges.

cropped one pixel from right and bottom edges ( X= 0..478, Y= 0..798), because cm7/gingerbread/android can't seem to handle the last pixel touch event... i believe that has to be fixed from the rom side, but for now this hack can be a workaround.

obsolete files deleted

up-to-date touchscreen kernel hack and libui scalefactor fix

screenshot of swipe inward from right out-of-bound:

before kernel hack, kernel generates this touch event starting from X=479, but rom can't seem to register it for some reason. after cropping to X=478, it registers. i don't know the consequence of this cropping in terms of ADW EX, but now LatinIME.apk works better with 'p' key in portrait mode.

edit: it seems that you can move icons to neighboring screen on ADW ( if you weren't able to do that before ).

edit: for 'p' key, swipe-in motion should work as well. touch the right edge and move your finger until 'p' registers.

edit: as for GRIP, i don't have any problem, but i have my phone in a hard case.... so....
[LG Optimus 2x] pastime1971:
swipe-in from the left long edge :

as you can see, swipe-in works.

it must be LatinIME.apk doesn't like X=0. before kernel hack, X=2 was minimum you could go...

edit: i cropped one pixel at X=0 as well, due to compatibility with LatinIME.apk. now space bar in horizontal mode works fine. (only tested stock LatinIME.apk)

flashable zip of boot.img, kernel source patch, kernel zImage :

obsolete files deleted

up-to-date touchscreen kernel hack and libui scalefactor fix

edit: Benee was kind enough to examine and include this patch in vorkKernel.
[LG Optimus 2x] temasek:
Updated KANG

Include following commits after build 70

- p990: Updated prebuilt kernel (android_device_lge_p990)

- Set screenshot helper permissions (android_system_core)

- Add a new 'Show log' extended function. Could also be used to report last lines from log on error. (android_bootable_recovery)

- Updated Spanish translation ( by Chuckycrx ) (android_packages_apps_CMParts)

- Fixed APN settings (Si.mobil) (android_vendor_cyanogen)

- recovery: Ignore wipe command from bootloaders that always send it (android_bootable_recovery)

Direct Link

update-cm-7.1.0-RC1-Optimus2X-KANG-signed.temasek.07082011-1013.zip

Additional compiled

CWM 4.0.0.8 Updated 2011-07-07
[LG Optimus 2x] pastime1971:
here is what i found out so far.

kernel does handle touch event correctly. touch event is generated for area of X=0..479 and Y=0..799.

when FEATURE_LGE_TOUCH_GRIP_SUPPRESSION is on (currently it is), it ignores two pixels (X=0..1 and X=478..479) on the long edges, but there may be an issue how it does. a better way may be to invalidate it by "c.additionalInfo.multi_fingerstate = 0"

however, cm7 rom does NOT like X=479 or Y=799 for some reason. onTouch event is not generated for those pixels. therefore cropping one pixel and force them to be X=478 or Y=798 works with Pointer Location or LatinIME.apk, both of which i guess rely on android ui.

LatinIME.apk also has an issue with X=0 in landscape mode, whereas Pointer Location doesn't.

I'm trying to figure out how android generates onTouch event and why X=479 or Y=799 is not handled correctly.

edit: i think i figured out why. frameworks/base/libs/ui/InputReader.java map touch screen to display with scale factors. scale factors are determined by xScale = width / range where (touch) range = max - min, and (display) width = number of pixels. however, kernel is inconsistent as to what is reported as max. some devices report the actual last pixel while others report that + 1. therefore range == width - 1 for the former and range == width for the latter. currently P990 is the former, and xScale == 480/479. since x = xScale * t, when t = touch, x = display, so t=479 is mapped to x=480 which is out of bound.

however, p990 kernel uses grip suppression, and basically invalidates t=0, 1, 478, 479, touch event is not generated for those. touch is generated for t=477 which is mapped to x=477.996. kernel also implements motion smoothing. the consequence is that t=476 is the last touch position when going from left to right, but t=477 is the first touch position when going from right to left.
[LG Optimus 2x] pastime1971:
does anyone know how i can access a function in libcameraservice (e.g. releaseSound()) from java (e.g. Camera.java) ?

trying to implement shutter sound enable/disable.

figured it would be easy if i can access libcameraservice directly.

thanks in advance.
[LG Optimus 2x] NickHu:
The reason there isn't a switch is because in the US, it's illegal to have a shutter-sound-less camera.
[LG Optimus 2x] rori~:
Uuh, I remember now reading this somewhere... how funny and absurd.

Sent from my Premium Xx
[LG Optimus 2x] pastime1971:
i see. didn't know that.

how about reducing the volume of shutter sound ?

would that be ok ?

i'm trying to sync the volume of camera to that of notification.

btw, cm already mutes camera shutter when the phone is in mute mode... therefore a switch
[LG Optimus 2x] pastime1971:
how to get notification volume in libcameraservice.so

shutter volume in p990 is too loud (100%)

i'm trying to reduce the volume.

the code goes as follows:

# in /frameworks/base/services/camera/libcameraservice/CameraService.cpp

void CameraService :: playSound(sound_kind kind) {

LOG1("playSound(%d)", kind);

Mutex::Autolock lock(mSoundLock);

sp<MediaPlayer> player = mSoundPlayer[kind];

if (player != 0) {

// do not play the sound if stream volume is 0

// (typically because ringer mode is silent).

int index;

AudioSystem::getStreamVolumeIndex(AudioSystem::ENFORCED_AUDIBLE, &index);

if (index != 0) {

float vol=0.5;

AudioSystem::getStreamVolume(AudioSystem::NOTIFICATION, &vol, AudioSystem::CHANNEL_OUT_MONO);

player->setVolume(vol,vol);

player->seekTo(0);

player->start();

}

}

}

getStreamVolume doesn't seem to retrieve the correct value of volume. CHANNEL_OUT_MONO is totally a guess.

forcing vol=0.5 and calling setVolume seems to work just fine.

but i'd like to sync it to the notification volume.

any idea how to do that ?

thanks, in advance.

edit: flashable zip of libcameraservice.so with volume set at 50% : http://www.mediafire.com/?icmnd6c22herwjs
[LG Optimus 2x] nrkabul:
Citation needed...

Sent from my Optimus 2X