[LG Optimus 2x] gios_:
t-build 4, kk125, newbl, bb 30A

all kernel settings default.

(same problems with other basebands)

One thing that might be different from others:

my provider is an MVNO, so I have to enable "national roaming".

Connection loss about 3 times a day. Sometimes only data, but mostly data+voice+sms.

It seems to happen mostly when I wake up the phone from standby.

I can restore the connection often by killing the android.phone and rild processes.

(for a script see: http://xdaforums.com/showthread.php?t=2336597)

The log line that I always see at the moment the data/connection loss occurs is:

## AT COMMAND TIMEOUT ##

or more complete, the lines that return in every loss-log:

radio:

07-08 15:56:00.630 D/AT (11113): atchannel: at_send_command_full_nolock: err == ETIMEDOUT, DLC = 5
07-08 15:56:00.630 D/AT (11113): dlc[5] atchannel: at_send_command_full_nolock() end, err:-4
07-08 15:56:00.630 D/AT (11113): dlc[5] atchannel: at_handshake() end; err:-4
07-08 15:56:00.630 D/AT (11113): dlc[5] atchannel: at_send_command_full() at handshake fails, err - 5. Restarting rild
07-08 15:56:00.630 D/RIL (11113): lge-ril: handle Cp Reset (CP Reset Cause - 1, RIL recovery activated flag - 0, dlc - 5)
07-08 15:56:00.630 D/RIL (11113): ## AT COMMAND TIMEOUT ##
07-08 15:56:00.630 D/RIL (11113): lge-ril: RestartModem - Closing /dev/ttyspi0 device to restart the modem. s_modem_control_fd - 12
(...)
07-08 15:56:04.540 E/RILJ (11099): Exception processing unsol response: 1054Exception:java.lang.RuntimeException: Unrecognized unsol response: 1054
(...)
07-08 15:56:09.549 D/RIL (11113): dlc[5]: lge-ril - requestInterface: Exiting DLC handler, thread - 33756936. s_dlc_handler_create_tracker - 0x6111f
07-08 15:56:09.549 E/GSM (11099): Unrecognized RIL errno 16

dmesg:

<4>[13:07:08 15:56:02.050] ifx_spi_write -- fail():count:67 [.W.{E..=..@ [MENTION=1941659]....[/MENTION]'..]
<4>[13:07:08 15:56:02.060] [SPI] : ifx_spi_write (459 line): SPI Retry Count is .. 3
<4>[13:07:08 15:56:02.060]
<4>[13:07:08 15:56:02.070] [MUX] : ts_ldisc_tx_looper (2377 line): retry dlci : 23 retry result : -2 retry_cnt : 2
<3>[13:07:08 15:56:02.080] *******************************
<3>[13:07:08 15:56:02.080] *Start RIL Recorvery Mode *
<3>[13:07:08 15:56:02.090]
<3>[13:07:08 15:56:02.090] * Restart IFX Modem *
<3>[13:07:08 15:56:02.099] *******************************
<4>[13:07:08 15:56:02.099] [MUX] : ts_ldisc_close (2525 line): modem reset start !!

That last line in the radio log is from:

frameworks/opt/telephony/src/java/com/android/internal/telephony/CommandException.java

There are only 14 error codes defined, so why does the baseband return error 16?

Seems like baseband and RIL are not compatible.

Same for "Exception processing unsol response"

in telephony/java/com/android/internal/telephony/LGEStarRIL.java

And once every 2 days, I get a system crash that requires a battery pull. Sometimes the screen remains on and frozen.

This might be related because often right before the crash a "Start RIL Recorvery Mode" message appears.

[13:07:07 19:40:45.790] kernel BUG at /Volumes/CM/src/kernel/lge/star/kernel/workqueue.c:1037!
[13:07:07 19:40:45.790] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[13:07:07 19:40:45.790] pgd = c0004000
[13:07:07 19:40:45.790] [00000000] *pgd=00000000
[13:07:07 19:40:45.790] Internal error: Oops: 805 [#1] PREEMPT SMP
[13:07:07 19:40:45.790] last sysfs file: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
[13:07:07 19:40:45.790] Modules linked in: zram(C)
[13:07:07 19:40:45.790] CPU: 0 Tainted: G WC (2.6.39.4-Kowalski-Exp #125)
[13:07:07 19:40:45.790] PC is at __bug+0x1c/0x28
(...)
[13:07:07 19:40:45.790] [<c0049874>] (__bug+0x1c/0x28) from [<c0095a80>] (__queue_work+0x2bc/0x41c)
[13:07:07 19:40:45.790] [<c0095a80>] (__queue_work+0x2bc/0x41c) from [<c0095c44>] (queue_work_on+0x34/0x44)
[13:07:07 19:40:45.790] [<c0095c44>] (queue_work_on+0x34/0x44) from [<c0095c98>] (queue_work+0x30/0x58)
[13:07:07 19:40:45.790] [<c0095c98>] (queue_work+0x30/0x58) from [<c032ad68>] (ifx_spi_send_and_receive_data+0x1e0/0x210)
[13:07:07 19:40:45.790] [<c032ad68>] (ifx_spi_send_and_receive_data+0x1e0/0x210) from [<c032ae9c>] (ifx_spi_handle_work+0x104/0x15c)
[13:07:07 19:40:45.790] [<c032ae9c>] (ifx_spi_handle_work+0x104/0x15c) from [<c009627c>] (process_one_work+0x278/0x45c)
[13:07:07 19:40:45.790] [<c009627c>] (process_one_work+0x278/0x45c) from [<c00967c4>] (worker_thread+0x1a8/0x2a4)
[13:07:07 19:40:45.790] [<c00967c4>] (worker_thread+0x1a8/0x2a4) from [<c009a778>] (kthread+0x7c/0x84)
[13:07:07 19:40:45.790] [<c009a778>] (kthread+0x7c/0x84) from [<c0047158>] (kernel_thread_exit+0x0/0x8)