Cannot shutdown xbmc with window manager
#1
I am using XBMC 10.0-4 on Arch Linux
Kernel: 2.6.37

I use SLiM as my display manager.

I had been running xbmc through .xinitrc as
exec ck-launch-session /usr/bin/xbmc --standalone

Which was working but was causing problems for launcher because I didn't have a wm running. Following advice on other forums I wrote a wrapper script:
/usr/bin/openbox
$1
/usr/bin/openbox --exit
but this would cause problems when multiple programs were launched at a time.

So I have been trying to get xbmc to run nicely from within a window manager. At first shutdown wasn't showing up in the list of possiblities for shutdown, so I fought with and eventually removed hal/console-kit to rely on upower instead. Now shutdown is showing up in the list but it doesn't work.

I have tried running xbmc from within gnome or openbox, and when I click shutdown it just exits.
Reply
#2
Code:
14:16:40 T:140389396903968 M:3752210432  NOTICE: -----------------------------------------------------------------------
14:16:40 T:140389396903968 M:3752472576  NOTICE: Starting XBMC, Platform: Linux (Arch Linux, 2.6.37-ARCH x86_64). Built on Jan 14 2011 (SVN:Unknown)
14:16:40 T:140389396903968 M:3752472576  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
14:16:40 T:140389396903968 M:3752472576  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/xbmc
14:16:40 T:140389396903968 M:3752472576  NOTICE: special://masterprofile/ is mapped to: /home/family/.xbmc/userdata
14:16:40 T:140389396903968 M:3752472576  NOTICE: special://home/ is mapped to: /home/family/.xbmc
14:16:40 T:140389396903968 M:3752472576  NOTICE: special://temp/ is mapped to: /home/family/.xbmc/temp
14:16:40 T:140389396903968 M:3752472576  NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
14:16:40 T:140389396903968 M:3752472576  NOTICE: Log File is located: /home/family/.xbmc/temp/xbmc.log
14:16:40 T:140389396903968 M:3752472576  NOTICE: -----------------------------------------------------------------------
14:16:40 T:140389396903968 M:3752718336  NOTICE: Setup SDL
14:16:40 T:140389396903968 M:3751686144  NOTICE: load settings...
14:16:40 T:140389396903968 M:3751686144  NOTICE: special://profile/ is mapped to: special://masterprofile/
14:16:40 T:140389396903968 M:3751686144  NOTICE: loading special://masterprofile/guisettings.xml
14:16:40 T:140389396903968 M:3751686144  NOTICE: Getting hardware information now...
14:16:40 T:140389396903968 M:3751686144  NOTICE: Checking resolution 12
14:16:40 T:140389396903968 M:3751686144  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
14:16:40 T:140389396903968 M:3751686144  NOTICE: Loaded playercorefactory configuration
14:16:40 T:140389396903968 M:3751686144  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
14:16:40 T:140389396903968 M:3751686144  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
14:16:40 T:140389396903968 M:3751686144  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
14:16:40 T:140389396903968 M:3751686144  NOTICE: Default DVD Player: dvdplayer
14:16:40 T:140389396903968 M:3751686144  NOTICE: Default Video Player: dvdplayer
14:16:40 T:140389396903968 M:3751686144  NOTICE: Default Audio Player: paplayer
14:16:40 T:140389396903968 M:3751686144  NOTICE: Loading media sources from special://masterprofile/sources.xml
14:16:40 T:140389396903968 M:3749965824  NOTICE: Enabled Joystick: Logitech Logitech Dual Action
14:16:40 T:140389396903968 M:3749965824  NOTICE: Details: Total Axis: 6 Total Hats: 0 Total Buttons: 12
14:16:41 T:140389396903968 M:3747672064  NOTICE: Using visual 0x22
14:16:41 T:140389396903968 M:3745398784  NOTICE: GL_VENDOR = Tungsten Graphics, Inc
14:16:41 T:140389396903968 M:3745398784  NOTICE: GL_RENDERER = Mesa DRI Intel(R) Ironlake Desktop GEM 20100330 DEVELOPMENT
14:16:41 T:140389396903968 M:3745398784  NOTICE: GL_VERSION = 2.1 Mesa 7.10.1-devel
14:16:41 T:140389396903968 M:3745398784  NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.20
14:16:41 T:140389396903968 M:3745398784  NOTICE: GL_EXTENSIONS = GL_ARB_copy_buffer GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_seamless_cube_map GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_range_elements GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_3DFX_texture_compression_FXT1 GL_APPLE_client_storage GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_APPLE_object_purgeable GL_ATI_blend_equation_separate GL_ATI_envmap_bumpmap GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_texture_signed_rgba GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_depth_clamp GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_program GL_NV_vertex_program1_1 GL_OES_read_format GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_OES_EGL_image
14:16:41 T:140389396903968 M:3745271808   ERROR: GLX: Same window as before, refreshing context
14:16:41 T:140389396903968 M:3744034816   ERROR: Window Translator: Can't find window scriptsdebuginfo
14:16:41 T:140389396903968 M:3743907840   ERROR: Previous line repeats 1 times.
14:16:41 T:140389396903968 M:3743907840  NOTICE: start dvd mediatype detection
14:16:41 T:140389396903968 M:3743907840  NOTICE: initializing playlistplayer
14:16:41 T:140389396903968 M:3743907840  NOTICE: DONE initializing playlistplayer
14:16:41 T:140389396903968 M:3735900160  NOTICE: UpdateLibraries - Starting video library startup scan
14:16:41 T:140389396903968 M:3735900160  NOTICE: initialize done
14:16:41 T:140389396903968 M:3735900160  NOTICE: Running the application...
14:16:41 T:140389396903968 M:3735900160  NOTICE: Webserver: Starting...
14:16:41 T:140389396903968 M:3735740416  NOTICE: WebServer: Started the webserver
14:16:41 T:140389396903968 M:3735740416  NOTICE: ES: Starting event server
14:16:41 T:140389396903968 M:3735740416  NOTICE: DS: Starting dbus server
14:16:41 T:140388866164480 M:3735740416  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
14:16:41 T:140388866164480 M:3735740416  NOTICE: UDP: Listening on port 9777
14:16:41 T:140389042562816 M:3735740416  NOTICE: VideoInfoScanner: Starting scan ..
14:16:41 T:140388857771776 M:3735867392  NOTICE: DS: Starting DBUS server in Run Application aka thread
14:16:42 T:140389042562816 M:3728691200  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
14:16:43 T:140389396903968 M:3728523264   ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 4 seconds.
14:16:47 T:140389396903968 M:3729367040   ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 8 seconds.
14:16:55 T:140389396903968 M:3728068608   ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 16 seconds.
14:16:57 T:140389396903968 M:3727728640  NOTICE: Enabled debug logging due to GUI setting. Level 2.
Reply
#3
Code:
14:17:01 T:140389396903968 M:3727511552   DEBUG: SDLKeyboard: scancode: 9, sym: 27, unicode: 27, modifier: 0
14:17:01 T:140389396903968 M:3727511552   DEBUG: OnKey: 61467 pressed, action is PreviousMenu
14:17:01 T:140389396903968 M:3727511552   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
14:17:01 T:140389396903968 M:3727511552   DEBUG: ------ Window Deinit (SettingsCategory.xml) ------
14:17:01 T:140389396903968 M:3727511552   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
14:17:01 T:140389396903968 M:3727511552   DEBUG: ------ Window Init (Settings.xml) ------
14:17:01 T:140389396903968 M:3727511552    INFO: Loading skin file: Settings.xml
14:17:03 T:140389396903968 M:3727429632   DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
14:17:03 T:140389396903968 M:3727429632   DEBUG: OnKey: 61480 pressed, action is Down
14:17:04 T:140389396903968 M:3729641472   DEBUG: SDLKeyboard: scancode: 111, sym: 273, unicode: 0, modifier: 0
14:17:04 T:140389396903968 M:3729641472   DEBUG: OnKey: 61478 pressed, action is Up
14:17:05 T:140389396903968 M:3729596416   DEBUG: SDLKeyboard: scancode: 9, sym: 27, unicode: 27, modifier: 0
14:17:05 T:140389396903968 M:3729596416   DEBUG: OnKey: 61467 pressed, action is PreviousMenu
14:17:05 T:140389396903968 M:3729596416   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
14:17:05 T:140389396903968 M:3729596416   DEBUG: ------ Window Deinit (Settings.xml) ------
14:17:05 T:140389396903968 M:3729596416   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
14:17:05 T:140389396903968 M:3729596416   DEBUG: ------ Window Init (Home.xml) ------
14:17:05 T:140389396903968 M:3729596416    INFO: Loading skin file: Home.xml
14:17:05 T:140389396903968 M:3729002496   DEBUG: ExecuteXBMCAction : Translating SetFocus(9000)
14:17:05 T:140389396903968 M:3729002496   DEBUG: ExecuteXBMCAction : To SetFocus(9000)
14:17:06 T:140389396903968 M:3729002496   DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
14:17:06 T:140389396903968 M:3729002496   DEBUG: OnKey: 61480 pressed, action is Down
14:17:06 T:140389396903968 M:3729555456   DEBUG: SDLKeyboard: scancode: 113, sym: 276, unicode: 0, modifier: 0
14:17:06 T:140389396903968 M:3729555456   DEBUG: OnKey: 61477 pressed, action is Left
14:17:07 T:140389396903968 M:3729494016   DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0
14:17:07 T:140389396903968 M:3729494016   DEBUG: OnKey: 61453 pressed, action is Select
14:17:07 T:140389396903968 M:3729494016   DEBUG: ExecuteXBMCAction : Translating ActivateWindow(ShutdownMenu)
14:17:07 T:140389396903968 M:3729494016   DEBUG: ExecuteXBMCAction : To ActivateWindow(ShutdownMenu)
14:17:07 T:140389396903968 M:3729494016   DEBUG: Activating window ID: 10111
14:17:07 T:140389396903968 M:3729494016   DEBUG: Checking if window ID 10111 is locked.
14:17:07 T:140389396903968 M:3729494016   DEBUG: ------ Window Init (DialogButtonMenu.xml) ------
14:17:07 T:140389396903968 M:3729494016    INFO: Loading skin file: DialogButtonMenu.xml
14:17:08 T:140389396903968 M:3728838656   DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0
14:17:08 T:140389396903968 M:3728838656   DEBUG: OnKey: 61453 pressed, action is Select
14:17:08 T:140389396903968 M:3728838656   DEBUG: ExecuteXBMCAction : Translating XBMC.Shutdown()
14:17:08 T:140389396903968 M:3728838656   DEBUG: ExecuteXBMCAction : To XBMC.Shutdown()
14:17:08 T:140389396903968 M:3728838656   DEBUG: CAnnouncementManager - Announcement: ApplicationStop from xbmc
14:17:08 T:140388840986368 M:3728838656   DEBUG: Thread 140388840986368 terminating (autodelete)
14:17:08 T:140388828919552 M:3728838656   DEBUG: Thread 140388828919552 terminating (autodelete)
14:17:08 T:140388818290432 M:3728965632   DEBUG: Thread 140388818290432 terminating (autodelete)
14:17:08 T:140389059348224 M:3728965632   DEBUG: Thread 140389059348224 terminating
14:17:08 T:140389396903968 M:3728965632  NOTICE: Storing total System Uptime
14:17:08 T:140389396903968 M:3728965632  NOTICE: Saving settings
14:17:08 T:140389396903968 M:3728965632  NOTICE: stop all
14:17:08 T:140389396903968 M:3728965632   DEBUG: NetworkMessage - Signaling network services to stop
14:17:08 T:140389396903968 M:3728965632  NOTICE: ES: Stopping event server
14:17:08 T:140389396903968 M:3728965632   DEBUG: NetworkMessage - Waiting for network services to stop
14:17:08 T:140389396903968 M:3728965632  NOTICE: Webserver: Stopping...
14:17:08 T:140389396903968 M:3729100800  NOTICE: WebServer: Stopped the webserver
14:17:08 T:140389396903968 M:3729100800  NOTICE: Webserver: Stopped...
14:17:09 T:140388866164480 M:3728793600  NOTICE: ES: UDP Event server stopped
14:17:09 T:140388866164480 M:3728793600   DEBUG: Thread 140388866164480 terminating
14:17:09 T:140388857771776 M:3728834560  NOTICE: DS: DBUS server stopped
14:17:09 T:140388857771776 M:3728834560   DEBUG: Thread 140388857771776 terminating
14:17:09 T:140388849379072 M:3728834560   DEBUG: Thread 140388849379072 terminating
14:17:09 T:140389396903968 M:3728961536  NOTICE: stop dvd detect media
14:17:09 T:140389396465408 M:3728961536   DEBUG: Thread 140389396465408 terminating
14:17:09 T:140389396903968 M:3728961536  NOTICE: stop sap announcement listener
14:17:09 T:140389396903968 M:3728961536  NOTICE: clean cached files!
14:17:09 T:140389396903968 M:3728961536  NOTICE: unload skin
14:17:09 T:140389396903968 M:3728961536   DEBUG: CGUIAudioManager::DeInitialize
14:17:09 T:140389396903968 M:3728961536   DEBUG: ------ Window Deinit (Home.xml) ------
14:17:09 T:140389396903968 M:3728961536   DEBUG: ------ Window Deinit (Pointer.xml) ------
14:17:09 T:140389396903968 M:3728961536   DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
14:17:09 T:140389396903968 M:3729108992  NOTICE: stop python
14:17:09 T:140389396903968 M:3731165184  NOTICE: stopped
14:17:09 T:140389396903968 M:3731165184  NOTICE: destroy
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1e82ec0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1e76580 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1d8ac10 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1d961e0 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1e82c20 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1e73b60 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x1d96270 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
14:17:09 T:140389396903968 M:3731165184  NOTICE: unload sections
14:17:09 T:140389396903968 M:3731165184   DEBUG: SECTION:UnloadAll(DLL: special://xbmcbin/system/libcpluff-x86_64-linux.so)
14:17:09 T:140389396903968 M:3731165184   DEBUG: Unloading: libcpluff-x86_64-linux.so
14:17:09 T:140389396903968 M:3731165184   DEBUG: SECTION:UnloadAll(DLL: special://xbmcbin/system/ImageLib-x86_64-linux.so)
14:17:09 T:140389396903968 M:3731165184   DEBUG: Unloading: ImageLib-x86_64-linux.so
14:17:09 T:140389396903968 M:3731292160   DEBUG: SECTION:UnloadAll(DLL: libcurl.so.4)
14:17:09 T:140389396903968 M:3731292160   DEBUG: Unloading: libcurl.so.4
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 0 --> 0 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 1 --> 1 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 2 --> 14 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 3 --> 0 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 4 --> 10 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 5 --> 0 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 6 --> 0 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 7 --> 0 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 8 --> 0 instances
14:17:09 T:140389396903968 M:3731292160   DEBUG: object 9 --> 0 instances
Reply
#4
skin: Confluence
upower: 0.9.8
xorg-server: 1.9.4

anything else needed?
Reply
#5
Ok, I've resolved this issue. It turns out I needed console-kit after all.

I added ck-launch-session before openbox-session and gnome-session.
I had also not inserted the dbus demon in my rc.conf after removing hal, and this was needed despite openbox-session running dbus-launch.


Now to figure out how to accomplish the same thing without putting xbmc in the autostart.sh list for openbox.
Reply

Logout Mark Read Team Forum Stats Members Help
Cannot shutdown xbmc with window manager0