[LG Optimus 4X HD] gingerboy92:
logcat of optimus prime 2.7(adb shell, gps status active):

root@android:/ # logcat -C|grep gps

W/PackageParser( 454): No actions in intent filter at /data/app/com.eclipsim.gpsstatus2-1.apk Binary XML file line #59

W/PackageManager( 454): Package com.eclipsim.gpsstatus2 desires unavailable shared library com.sec.android.app.multiwindow; ignoring!

I/ActivityManager( 454): Start proc com.eclipsim.gpsstatus2 for broadcast com.eclipsim.gpsstatus2/com.eclipsim.gpstoolbox.monitor.GpsBroadcastReceiver: pid=989 uid=10062 gids={50062, 3003, 1028}

I/ActivityManager( 454): No longer want com.eclipsim.gpsstatus2 (pid 989): empty #17

I/ActivityManager( 454): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.eclipsim.gpsstatus2/.GPSStatus} from pid 758

I/ActivityManager( 454): Start proc com.eclipsim.gpsstatus2 for activity com.eclipsim.gpsstatus2/.GPSStatus: pid=2438 uid=10062 gids={50062, 3003, 1028}

I/ActivityManager( 454): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.eclipsim.gpsstatus2/.GPSStatus} from pid 758

logcat of optimus prime 2.46(adb shell, gps status active):

root@android:/ # logcat -C|grep gps

W/PackageParser( 458): No actions in intent filter at /data/app/com.eclipsim.gpsstatus2-1.apk Binary XML file line #59

W/PackageManager( 458): Package com.eclipsim.gpsstatus2 desires unavailable shared library com.sec.android.app.multiwindow; ignoring!

I/ActivityManager( 458): Start proc com.eclipsim.gpsstatus2 for broadcast com.eclipsim.gpsstatus2/com.eclipsim.gpstoolbox.monitor.GpsBroadcastReceiver: pid=1090 uid=10062 gids={50062, 3003, 1028}

D/gps_AT ( 458): AT+CPOSR=1

D/gps_AT ( 458): writeline start 2

D/gps_AT ( 458): writeline end

D/gps_AT ( 458): readline: After select n = 1

D/gps_AT ( 458):

D/gps_AT ( 458): OK

D/gps_AT ( 458): readline START

D/gps_AT ( 458): readline: end p_ATBufferCur != 0

D/gps_AT ( 458): readline: try read from channel!

D/gps_AT ( 458): at_send_command_full_nolock end, err:0

D/gps_AT ( 458): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 458): requestSetCPOS END 0

D/AGPS ( 458): lge_gps_ril_send_atcmd String AT Cmd Org : 10, AT+CMTLR=1

D/gps_LCS ( 458): requestSetCPOS START

D/gps_AT ( 458): at_send_command_full_nolock start - command[AT+CMTLR=1]

D/gps_AT ( 458): writeline start fd - 249

D/gps_AT ( 458): AT+CMTLR=1

D/gps_AT ( 458): writeline start 2

D/gps_AT ( 458): writeline end

D/gps_AT ( 458): readline: After select n = 1

D/gps_AT ( 458):

D/gps_AT ( 458): OK

D/gps_AT ( 458): readline START

D/gps_AT ( 458): readline: end p_ATBufferCur != 0

D/gps_AT ( 458): readline: try read from channel!

D/gps_AT ( 458): at_send_command_full_nolock end, err:0

D/gps_AT ( 458): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 458): requestSetCPOS END 0

D/gps_LCS ( 458): waitForClose START

D/gps_LCS ( 458): waitForClose after pthread_mutex_lock

I/ActivityManager( 458): No longer want com.eclipsim.gpsstatus2 (pid 1090): empty #17

D/smartos ( 1607): parsing this rule - <rule name="when battery goes below 15%, switch off wifi, bluetooth, data, gps, account sync" category="battery">

D/smartos ( 1607): <wifi state="off" /><bluetooth state="off" /><mobile state="off" /><gps state="off" /><sync state="off" />

I/ActivityManager( 458): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.eclipsim.gpsstatus2 cmp=com.eclipsim.gpsstatus2/.GPSStatus} from pid 769

I/ActivityManager( 458): Start proc com.eclipsim.gpsstatus2 for activity com.eclipsim.gpsstatus2/.GPSStatus: pid=2136 uid=10062 gids={50062, 3003, 1028}

D/dalvikvm( 2136): DEX prep '/data/data/com.eclipsim.gpsstatus2/cache/ads1328857099.jar': unzip in 1ms, rewrite 110ms

I/ActivityManager( 458): Displayed com.eclipsim.gpsstatus2/.GPSStatus: +2s606ms

logcat of iodak07(adb shell, gps status active):

130|root@android:/ # logcat -C|grep gps

W/PackageParser( 484): No actions in intent filter at /data/app/com.eclipsim.gpsstatus2-1.apk Binary XML file line #59

W/PackageManager( 484): Package com.eclipsim.gpsstatus2 desires unavailable shared library com.sec.android.app.multiwindow; ignoring!

D/gps_sirf( 484): start_delayed_tracker_upload success

D/gps_sirf( 484): tracker_upload_thread entry

I/ActivityManager( 484): Start proc com.eclipsim.gpsstatus2 for broadcast com.eclipsim.gpsstatus2/com.eclipsim.gpstoolbox.monitor.GpsBroadcastReceiver: pid=1081 uid=10062 gids={50062, 3003, 1028}

D/smartos ( 1592): parsing this rule - <rule name="when battery goes below 15%, switch off wifi, bluetooth, data, gps, account sync" category="battery">

D/smartos ( 1592): <wifi state="off" /><bluetooth state="off" /><mobile state="off" /><gps state="off" /><sync state="off" />

I/ActivityManager( 484): No longer want com.eclipsim.gpsstatus2 (pid 1081): empty #17

D/gps_sirf( 484): tracker_upload_thread exit

D/AGPS ( 484): lge_gps_ril_init:344: bLgeRilInitialized=0

D/gps_LCS ( 484): Opening socket /dev/pts17

D/gps_LCS ( 484): LCS_Commands_Init, wait for LCS interface init 15000 msec...

D/gps_LCS ( 484): mainLoop START

D/gps_LCS ( 484): /dev/pts17, Trying connect to socket mainLoop

D/gps_LCS ( 484): mainLoop, fd = 274

D/gps_LCS ( 484): Successfuly connected to server socket! fd = 274

D/gps_AT ( 484): at_open START, fd = 274, ATc->_id=0

D/gps_AT ( 484): at_open Creating the reader loop

D/gps_AT ( 484): at_open END, channel 0 successfuly initialized!

D/gps_LCS ( 484): mainLoop, s_closed = 0

D/gps_LCS ( 484): mainLoop u_closed = -1

D/gps_LCS ( 484): mainLoop, sleep 1 sec ...

D/gps_LCS ( 484): initCallbackGPS START

D/gps_AT ( 484): at_send_command_full_nolock start - command[ATE0Q0V1]

D/gps_AT ( 484): writeline start fd - 274

D/gps_AT ( 484): ATE0Q0V1

D/gps_AT ( 484): writeline start 2

D/gps_AT ( 484): writeline end

D/gps_AT ( 484): readerLoop START

D/gps_AT ( 484): readline START

D/gps_AT ( 484): readline: try read from channel!

D/gps_AT ( 484): readline: After select n = 1

D/gps_AT ( 484):

D/gps_AT ( 484): OK

D/gps_AT ( 484): readline START

D/gps_AT ( 484): readline: end p_ATBufferCur != 0

D/gps_AT ( 484): readline: try read from channel!

D/gps_AT ( 484): at_send_command_full_nolock end, err:0

D/gps_AT ( 484): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_AT ( 484): at_send_command_full_nolock start - command[AT+CMEE=1]

D/gps_AT ( 484): writeline start fd - 274

D/gps_AT ( 484): AT+CMEE=1

D/gps_AT ( 484): writeline start 2

D/gps_AT ( 484): writeline end

D/gps_AT ( 484): readline: After select n = 1

D/gps_AT ( 484):

D/gps_AT ( 484): OK

D/gps_AT ( 484): readline START

D/gps_AT ( 484): readline: end p_ATBufferCur != 0

D/gps_AT ( 484): readline: try read from channel!

D/gps_AT ( 484): at_send_command_full_nolock end, err:0

D/gps_AT ( 484): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 484): initCallbackGPS END

D/gps_LCS ( 484): LCS_Commands_Init, LCS interface init success.

D/AGPS ( 484): lge_gps_ril_send_atcmd String AT Cmd Org : 11, AT+CPOSR=1

D/gps_LCS ( 484): requestSetCPOS START

]/gps_AT ( 484): at_send_command_full_nolock start - command[AT+CPOSR=1

D/gps_AT ( 484): writeline start fd - 274

D/gps_AT ( 484): AT+CPOSR=1

D/gps_AT ( 484): writeline start 2

D/gps_AT ( 484): writeline end

D/gps_AT ( 484): readline: After select n = 1

D/gps_AT ( 484):

D/gps_AT ( 484): OK

D/gps_AT ( 484): readline START

D/gps_AT ( 484): readline: end p_ATBufferCur != 0

D/gps_AT ( 484): readline: try read from channel!

D/gps_AT ( 484): at_send_command_full_nolock end, err:0

D/gps_AT ( 484): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 484): requestSetCPOS END 0

D/AGPS ( 484): lge_gps_ril_send_atcmd String AT Cmd Org : 10, AT+CMTLR=1

D/gps_LCS ( 484): requestSetCPOS START

D/gps_AT ( 484): at_send_command_full_nolock start - command[AT+CMTLR=1]

D/gps_AT ( 484): writeline start fd - 274

D/gps_AT ( 484): AT+CMTLR=1

D/gps_AT ( 484): writeline start 2

D/gps_AT ( 484): writeline end

D/gps_AT ( 484): readline: After select n = 1

D/gps_AT ( 484):

D/gps_AT ( 484): OK

D/gps_AT ( 484): readline START

D/gps_AT ( 484): readline: end p_ATBufferCur != 0

D/gps_AT ( 484): readline: try read from channel!

D/gps_AT ( 484): at_send_command_full_nolock end, err:0

D/gps_AT ( 484): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 484): requestSetCPOS END 0

D/gps_LCS ( 484): waitForClose START

D/gps_LCS ( 484): waitForClose after pthread_mutex_lock

I/ActivityManager( 484): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.eclipsim.gpsstatus2/.GPSStatus} from pid 808

I/ActivityManager( 484): Start proc com.eclipsim.gpsstatus2 for activity com.eclipsim.gpsstatus2/.GPSStatus: pid=2645 uid=10062 gids={50062, 3003, 1028}

D/dalvikvm( 2645): DEX prep '/data/data/com.eclipsim.gpsstatus2/cache/ads-1441919624.jar': unzip in 0ms, rewrite 59ms

I/ActivityManager( 484): Displayed com.eclipsim.gpsstatus2/.GPSStatus: +1s389ms

the app that i used: https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2&hl=en

as you can see, gps is not even initialized on optimus prime 2.7. thus, no lock at all.

(the logcat came from cm10.1 based rom,avatarrom, i did not tested it on stock, if someone is kind enough to give a logcat on a stock rom, please do so. i think if it works on stock rom, there must be something wrong with the ramdisk, or device tree, i assume? i'm not a developer)

update:

added

chown system system /dev/ttyHS1

to

init.x3.rc

now, the gps is back, found some satellite but still not getting any lock, probably bad reception, idk. but it's back.

logcat after change:

root@android:/ # logcat -C|grep gps

W/PackageParser( 456): No actions in intent filter at /data/app/com.eclipsim.gpsstatus2-1.apk Binary XML file line #59

W/PackageManager( 456): Package com.eclipsim.gpsstatus2 desires unavailable shared library com.sec.android.app.multiwindow; ignoring!

I/ActivityManager( 456): Start proc com.eclipsim.gpsstatus2 for broadcast com.eclipsim.gpsstatus2/com.eclipsim.gpstoolbox.monitor.GpsBroadcastReceiver: pid=1124 uid=10062 gids={50062, 3003, 1028}

D/gps_sirf( 456): tracker_upload_thread exit

D/AGPS ( 456): lge_gps_ril_init:344: bLgeRilInitialized=0

D/gps_LCS ( 456): Opening socket /dev/pts17

D/gps_LCS ( 456): LCS_Commands_Init, wait for LCS interface init 15000 msec...

D/gps_LCS ( 456): mainLoop START

D/gps_LCS ( 456): /dev/pts17, Trying connect to socket mainLoop

D/gps_LCS ( 456): mainLoop, fd = 240

D/gps_LCS ( 456): Successfuly connected to server socket! fd = 240

D/gps_AT ( 456): at_open START, fd = 240, ATc->_id=0

D/gps_AT ( 456): at_open Creating the reader loop

D/gps_AT ( 456): at_open END, channel 0 successfuly initialized!

D/gps_LCS ( 456): mainLoop, s_closed = 0

D/gps_LCS ( 456): mainLoop u_closed = -1

D/gps_LCS ( 456): mainLoop, sleep 1 sec ...

D/gps_LCS ( 456): initCallbackGPS START

D/gps_AT ( 456): at_send_command_full_nolock start - command[ATE0Q0V1]

D/gps_AT ( 456): writeline start fd - 240

D/gps_AT ( 456): ATE0Q0V1

D/gps_AT ( 456): writeline start 2

D/gps_AT ( 456): writeline end

D/gps_AT ( 456): readerLoop START

D/gps_AT ( 456): readline START

D/gps_AT ( 456): readline: try read from channel!

D/gps_AT ( 456): readline: After select n = 1

D/gps_AT ( 456):

D/gps_AT ( 456): OK

D/gps_AT ( 456): readline START

D/gps_AT ( 456): readline: end p_ATBufferCur != 0

D/gps_AT ( 456): readline: try read from channel!

D/gps_AT ( 456): at_send_command_full_nolock end, err:0

D/gps_AT ( 456): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_AT ( 456): at_send_command_full_nolock start - command[AT+CMEE=1]

D/gps_AT ( 456): writeline start fd - 240

D/gps_AT ( 456): AT+CMEE=1

D/gps_AT ( 456): writeline start 2

D/gps_AT ( 456): writeline end

D/gps_AT ( 456): readline: After select n = 1

D/gps_AT ( 456):

D/gps_AT ( 456): OK

D/gps_AT ( 456): readline START

D/gps_AT ( 456): readline: end p_ATBufferCur != 0

D/gps_AT ( 456): readline: try read from channel!

D/gps_AT ( 456): at_send_command_full_nolock end, err:0

D/gps_AT ( 456): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 456): initCallbackGPS END

D/gps_LCS ( 456): LCS_Commands_Init, LCS interface init success.

D/AGPS ( 456): lge_gps_ril_send_atcmd String AT Cmd Org : 11, AT+CPOSR=1

D/gps_LCS ( 456): requestSetCPOS START

]/gps_AT ( 456): at_send_command_full_nolock start - command[AT+CPOSR=1

D/gps_AT ( 456): writeline start fd - 240

D/gps_AT ( 456): AT+CPOSR=1

D/gps_AT ( 456): writeline start 2

D/gps_AT ( 456): writeline end

D/gps_AT ( 456): readline: After select n = 1

D/gps_AT ( 456):

D/gps_AT ( 456): OK

D/gps_AT ( 456): readline START

D/gps_AT ( 456): readline: end p_ATBufferCur != 0

D/gps_AT ( 456): readline: try read from channel!

D/gps_AT ( 456): at_send_command_full_nolock end, err:0

D/gps_AT ( 456): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 456): requestSetCPOS END 0

D/AGPS ( 456): lge_gps_ril_send_atcmd String AT Cmd Org : 10, AT+CMTLR=1

D/gps_LCS ( 456): requestSetCPOS START

D/gps_AT ( 456): at_send_command_full_nolock start - command[AT+CMTLR=1]

D/gps_AT ( 456): writeline start fd - 240

D/gps_AT ( 456): AT+CMTLR=1

D/gps_AT ( 456): writeline start 2

D/gps_AT ( 456): writeline end

D/gps_AT ( 456): readline: After select n = 1

D/gps_AT ( 456):

D/gps_AT ( 456): OK

D/gps_AT ( 456): readline START

D/gps_AT ( 456): readline: end p_ATBufferCur != 0

D/gps_AT ( 456): readline: try read from channel!

D/gps_AT ( 456): at_send_command_full_nolock end, err:0

D/gps_AT ( 456): at_send_command_full : at_send_command_full() retry left - 0, err - 0

D/gps_LCS ( 456): requestSetCPOS END 0

D/gps_LCS ( 456): waitForClose START

D/gps_LCS ( 456): waitForClose after pthread_mutex_lock

I/ActivityManager( 456): No longer want com.eclipsim.gpsstatus2 (pid 1124): empty #17

D/smartos ( 1595): parsing this rule - <rule name="when battery goes below 15%, switch off wifi, bluetooth, data, gps, account sync" category="battery">

D/smartos ( 1595): <wifi state="off" /><bluetooth state="off" /><mobile state="off" /><gps state="off" /><sync state="off" />

I/ActivityManager( 456): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.eclipsim.gpsstatus2/.GPSStatus} from pid 817

I/ActivityManager( 456): Start proc com.eclipsim.gpsstatus2 for activity com.eclipsim.gpsstatus2/.GPSStatus: pid=2425 uid=10062 gids={50062, 3003, 1028}

D/dalvikvm( 2425): DEX prep '/data/data/com.eclipsim.gpsstatus2/cache/ads1051802235.jar': unzip in 0ms, rewrite 84ms

I/ActivityManager( 456): Displayed com.eclipsim.gpsstatus2/.GPSStatus: +1s495ms

I/ActivityManager( 456): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.eclipsim.gpsstatus2 cmp=com.eclipsim.gpsstatus2/.GPSStatus} from pid 817

I/ActivityManager( 456): Displayed com.eclipsim.gpsstatus2/.GPSStatus: +769ms