[G2 Android Development] jose_k:
[MENTION=5311345]Dorinmax[/MENTION]: Here there is the log done with dmesg :

<6>mdss_dsi_panel_power_on: on
<6>mdss_dsi_unblank+:
<6>mdss_dsi_panel_on: ctrl=dfe97010 ndx=0 maker=0
<6>lm3630_backlight_on with level 85
<6>[kpdbl LED] button-backlight2: 0
<4>[RGB LED] pattern_num=0
<6>[kpdbl LED] button-backlight1: 0
<6>[kpdbl LED] button-backlight2: 0
<4>[RGB LED] pattern_num=0
<6>[kpdbl LED] button-backlight1: 0
<6>[kpdbl LED] button-backlight2: 0
<3>smb349_is_charger_present: DC is missing.
<3>LGE charging scenario : state 0 -> 0(0-0), temp=27, volt=3745, BTM=0, charger=0, cur_set=1600/1600, chg_cur = 27
chg_cur = 27
<3> ** [ BTRFKILL : bluetooth_set_power ( 190 ) ] bluetooth_set_power set blocked=1
<3> ** [ BTRFKILL : bluetooth_set_power ( 205 ) ] Bluetooth RESET LOW!!
<3> ** [ BTRFKILL : bluetooth_set_power ( 190 ) ] bluetooth_set_power set blocked=0
<4>####btlock acquired cookie: BT35
<3> ** [ BTRFKILL : bluetooth_set_power ( 202 ) ] Bluetooth RESET HIGH!!
<4>####btlock released, cookie: BT35
<6>*[bluesleep(839)-bluesleep_write_proc_proto()]
<6>*[bluesleep(519)-bluesleep_start()]
<3>*[bluesleep(556)-bluesleep_start()] bluesleep_start
<6>*[bluesleep(212)-hsuart_power()] hsuart power : ON
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 0, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(730)-bluepower_write_proc_btwake()] BT WAKE Set to Wake
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 0, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(730)-bluepower_write_proc_btwake()] BT WAKE Set to Wake
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(730)-bluepower_write_proc_btwake()] BT WAKE Set to Wake
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(730)-bluepower_write_proc_btwake()] BT WAKE Set to Wake
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(730)-bluepower_write_proc_btwake()] BT WAKE Set to Wake
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(730)-bluepower_write_proc_btwake()] BT WAKE Set to Wake
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(715)-bluepower_write_proc_btwake()]
<3>*[bluesleep(739)-bluepower_write_proc_btwake()] BT WAKE Set to Sleep
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<3>init: untracked pid 17355 exited
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<3>init: untracked pid 17357 exited
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(269)-bluesleep_sleep_wakeup()] Start Timer : check hostwake status when timer expired
<3>UART Clock already on or port not use : 3
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<3>max17048_interrupt_handler : MAX17048 interupt occured
<3>max17048_get_config : config = 0x627e
<3>max17048_set_rcomp_by_temperature : temp =27, PreviousRcomp =0x62 -> newRcomp = 0x62
<3>*[bluesleep(444)-bluesleep_tx_timer_expire()] Tx timer expired
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<3>*[bluesleep(292)-bluesleep_sleep_work()] bluesleep_can_sleep is true
<3>*[bluesleep(302)-bluesleep_sleep_work()] going to sleep...
<6>*[bluesleep(212)-hsuart_power()] hsuart power : OFF
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 0
<3>*[bluesleep(498)-bluesleep_hostwake_isr()] bluesleep_hostwake_isr : Registration Tasklet
<3>*[bluesleep(343)-bluesleep_hostwake_task()] hostwake line change
<3>*[bluesleep(350)-bluesleep_hostwake_task()] hostwake GPIO Low
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<6>*[bluesleep(237)-bluesleep_sleep_wakeup()]
<3>*[bluesleep(239)-bluesleep_sleep_wakeup()] waking up...
<6>*[bluesleep(212)-hsuart_power()] hsuart power : ON
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>*[bluesleep(489)-bluesleep_hostwake_isr()]
<3>*[bluesleep(493)-bluesleep_hostwake_isr()] ext_wake : 1, host_wake : 1
<3>*[bluesleep(444)-bluesleep_tx_timer_expire()] Tx timer expired
<6>*[bluesleep(288)-bluesleep_sleep_work()] +++++
<6>*[bluesleep(228)-bluesleep_can_sleep()]
<3>*[bluesleep(292)-bluesleep_sleep_work()] bluesleep_can_sleep is true
<3>*[bluesleep(302)-bluesleep_sleep_work()] going to sleep...
<6>*[bluesleep(212)-hsuart_power()] hsuart power : OFF
<6>*[bluesleep(333)-bluesleep_sleep_work()] -----
<6>binder: 16649:16649 transaction failed 29201, size 1050160-4

I hope this will help you to find out why my external bluetooth GPS give me "bt socket error, return code -1" when I try to connect it to my LG G2 D802 with KK stock 20D.

Thanks !