Android Xmbc stops when bluetooth keyboard disconnects
#1
Hi,

I have a Point-of-view Smart TV (Android 4.1), with a bluetooth keyboard. I installed Xbmc 12.2 and everything seems to work fine until the bluetooth keyboard goes in standby, which causes xbmc to shut down...

Does anyone have an idea what could be the reason for this?

My issue is similar to this one (but the patch spoken of in that thread does not seem to apply to android):

http://forum.xbmc.org/showthread.php?tid=154633

Thanks in advance!

These are the relevant logs (from alogcat):

Code:
D/BluetoothEventLoop(  262): Input Device : Name of Property is: Connected
I/BluetoothDeviceProfileState(  262): Entering ACL Connected state with: 102
D/BluetoothInputProfileHandler(  262): InputDevice state : device: 20:73:AB:42:33:86 State:2->0
D/BluetoothAdapterStateMachine(  262): BluetoothOn process message: ALL_DEVICES_DISCONNECTED(52)
D/BluetoothService(  262): CONNECTION_STATE_CHANGE: 20:73:AB:42:33:86: 2 -> 0
I/EventHub(  262): Removing device Bluetooth 3.0 Macro Keyboard due to epoll hang-up event.
I/EventHub(  262): Removed device: path=/dev/input/event4 name=Bluetooth 3.0 Macro Keyboard id=5 fd=233 classes=0x8000040b
I/EventHub(  262): Removing device '/dev/input/event4' due to inotify event
I/InputReader(  262): Device removed: id=5, name='Bluetooth 3.0 Macro Keyboard', sources=0x00002193
I/threaded_app( 2094): New input event: type=2
V/XBMC    ( 2094): bool CAndroidMouse::onMouseEvent(AInputEvent*) pointer:0
V/XBMC    ( 2094): void CAndroidMouse::MouseMove(float, float): x:779.760803, y:599.340576
I/ActivityManager(  262): Config changed: {1.15 0mcc0mnc en_US sw720dp w1280dp h672dp lrg long land -touch -keyb/v/h dpad/v s.8}
D/BluetoothEventLoop(  262): Device property changed: 20:73:AB:42:33:86 property: Connected value: false
D/PhoneApp(  475): updateProximitySensorMode: state = IDLE
D/PhoneApp(  475): updateProximitySensorMode: lock already released.
I/threaded_app( 2094): SaveInstanceState: 0x651fcb58
V/XBMC    ( 2094): virtual void CXBMCApp::onSaveState(void**, size_t*): 2
I/threaded_app( 2094): APP_CMD_SAVE_STATE
I/threaded_app( 2094): Pause: 0x651fcb58
I/threaded_app( 2094): activityState=13
V/XBMC    ( 2094): virtual void CXBMCApp::onPause(): 2
V/XBMC    ( 2094): virtual void CXBMCApp::onDeactivate(): 2
I/threaded_app( 2094): Stop: 0x651fcb58
D/RemoteControlManager(  262): BroadcastReceiver:android.intent.action.CONFIGURATION_CHANGED
I/threaded_app( 2094): activityState=14
V/XBMC    ( 2094): virtual void CXBMCApp::onStop(): 2
I/threaded_app( 2094): NativeWindowDestroyed: 0x651fcb58 -- 0x640d0490
I/threaded_app( 2094): APP_CMD_TERM_WINDOW
V/XBMC    ( 2094): virtual void CXBMCApp::onDestroyWindow(): 2
V/XBMC    ( 2094): XBMC_DestroyDisplay()
D/dalvikvm(  374): GC_CONCURRENT freed 1291K, 67% free 8084K/23943K, paused 38ms+3ms, total 65ms
D/dalvikvm(  374): WAIT_FOR_CONCURRENT_GC blocked 14ms
V/XBMC    ( 2094): bool CXBMCApp::getWakeLock(JNIEnv*)
E/Lights  (  262): write_int failed to open sys/class/leds/rk29_key_led/brightness
I/threaded_app( 2094): APP_CMD_TERM_WINDOW
I/threaded_app( 2094): InputQueueDestroyed: 0x651fcb58 -- 0x675c4498
I/threaded_app( 2094): APP_CMD_INPUT_CHANGED
I/threaded_app( 2094): Destroy: 0x651fcb58
I/threaded_app( 2094): APP_CMD_DESTROY
V/XBMC    ( 2094): virtual void CXBMCApp::onDestroy(): 4
V/XBMC    ( 2094): void CXBMCApp::stop()
V/XBMC    ( 2094):  => executing XBMC_Stop
V/XBMC    ( 2094):  => waiting for XBMC to finish
V/XBMC    ( 2094): 18:40:44 T:1678576272   DEBUG: CAnnouncementManager - Announcement: OnQuit from xbmc
V/XBMC    ( 2094): 18:40:44 T:1678576272   DEBUG: GOT ANNOUNCEMENT, type: 8, from xbmc, message OnQuit
V/XBMC    ( 2094): 18:40:44 T:1678576272  NOTICE: Storing total System Uptime
V/XBMC    ( 2094): 18:40:44 T:1678576272  NOTICE: Saving settings
V/XBMC    ( 2094): 18:40:44 T:1678576272  NOTICE: stop all
V/XBMC    ( 2094): 18:40:44 T:1678576272    INFO: stopping PVRManager
V/XBMC    ( 2094): 18:40:44 T:1678576272   DEBUG:  - Signaling network services to stop
V/XBMC    ( 2094): 18:40:44 T:1678576272  NOTICE: ES: Stopping event server
V/XBMC    ( 2094): 18:40:44 T:1678576272   DEBUG:  - Waiting for network services to stop
W/WindowManager(  262): App freeze timeout expired.
W/WindowManager(  262): Force clearing freeze: AppWindowToken{42610bb8 token=Token{42471cf0 ActivityRecord{424ae6a8 org.xbmc.xbmc/android.app.NativeActivity}}}
V/XBMC    ( 2094): 18:40:45 T:1737302240  NOTICE: ES: UDP Event server stopped
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: stop player
V/XBMC    ( 2094): 18:40:45 T:1734994864   DEBUG: CSmbFile::Close closing fd 10001
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: CSoftAEStream::~CSoftAEStream - Destructed
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: stop sap announcement listener
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: clean cached files!
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: unload skin
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: Unloading old skin ...
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: ------ Window Deinit () ------
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: ------ Window Deinit (MyMusicSongs.xml) ------
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG:  - Closed bundle
E/libEGL  ( 2094): call to OpenGL ES API with no current context (logged once per thread)
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: ADDON: Stopping service addons.
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: stop python
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: GUI Shader - Destroying Shader : 0x64e00bd8
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: stopped
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: destroy
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x67c30580 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x64c77708 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x64c59708 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x67bfd2d0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x64da6958 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x6791f2e0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x67c633b0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x64da38b0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: unload sections
V/XBMC    ( 2094): 18:40:45 T:1678576272    INFO: lastfm destroyed
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 0 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 1 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 2 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 3 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 4 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 5 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 6 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 7 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 8 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 9 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: SECTION:UnloadAll(DLL: libcpluff-arm.so)
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: Unloading: libcpluff-arm.so
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: SECTION:UnloadAll(DLL: libcurl.so)
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: Unloading: libcurl.so
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: SECTION:UnloadAll(DLL: libmad.so)
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: Unloading: libmad.so
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: destroy
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10021 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: unload sections
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 0 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 1 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 2 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 3 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 4 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 5 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 6 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 7 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 8 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272   DEBUG: object 9 --> 0 instances
V/XBMC    ( 2094): 18:40:45 T:1678576272  NOTICE: application stopped...
V/XBMC    ( 2094):  => XBMC_Run finished with 0
V/XBMC    ( 2094):  => XBMC finished
V/XBMC    ( 2094): CEventLoop: we are being destroyed
V/XBMC    ( 2094): android_main: Exiting
V/XBMC    ( 2094): 18:40:45 T:1735544992   DEBUG: PVRManager - destroyed
V/XBMC    ( 2094): 18:40:45 T:1735544992   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
V/XBMC    ( 2094): 18:40:45 T:1735544992   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
V/XBMC    ( 2094): 18:40:45 T:1735544992   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
V/XBMC    ( 2094): 18:40:45 T:1735544992   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
I/WindowState(  262): WIN DEATH: Window{42589d70 org.xbmc.xbmc/android.app.NativeActivity paused=false}
I/ActivityManager(  262): Process org.xbmc.xbmc (pid 2094) has died.
W/ActivityManager(  262): Force removing ActivityRecord{424ae6a8 org.xbmc.xbmc/android.app.NativeActivity}: app died, no saved state
Reply

Logout Mark Read Team Forum Stats Members Help
Xmbc stops when bluetooth keyboard disconnects0