You are not logged in.
Pages: 1
I have a new htpc build, with autologin and xbmc starting through .xinitrc. Everything works beautifully starting up the computer, and I can exit out to the console just fine. However, the shutdown option within xbmc is not turning the computer off; it simply drops me back to the console. I've followed the wiki with the only change being to use x:5:wait instead of respawn. Does anyone have a solution?
/etc/inittab
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 liunx
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
x:5:wait:sudo xbmc -l -c "/bin/bash --login -c startx >/dev/null 2>&1"
# End of file
~/.xinitrc
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
exec ck-launch-session dbus-launch --exit-with-session xbmc-standalone
Offline
There was a thread a few weeks ago about autostarting Xbmc and still being able to shut down/hibernate/whatever from within Xbmc.
I do remember from it that its' sufficient to use the login program (probably in /bin, but not sure) for the X line, instead of that sudo/su voodoo. The use of sudo/su means you runs into ttrouble with consolekit, which is why you cannot use the xbmc actions.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Yea, I found that thread and tried the posted solution. However, it didn't work for me, and actually wouldn't even give me a usable xbmc. So, I defaulted to the wiki instructions. I've been trying to find a post somewhere on the 'net about qingy and xbmc, but so far nothing has been verified as working. Everything else works beautifully, except the stupid shutdown.
Offline
What's not working exactly? I had another solution myself to launch xbmc, using mingetty, but switched to the one with /bin/login. Works fine for me.
If you post where it breaks, we might be able to fix it.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
First off I want to thank you .:B:. for be willing to help.
Ok, so I changed things back to the suggested method in that recent thread. This means ensuring that upower and consolekit are both installed (check), and modifying /etc/inittab. Here's my inittab:
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 liunx
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
#x:5:wait:su xbmc -l -c "/bin/bash --login -c startx >/dev/null 2>&1"
x:5:respawn:/bin/login -f xbmc </dev/tty7 &>/dev/tty7
# End of file
Then I created a hushlogin
touch /home/tux/.hushlogin
Added a line to my .bash_profile
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ $(tty) = "/dev/tty7" ]] && exec startx </dev/null &>/dev/null
And modified my .xinitrc
#!/bin/sh
exec ck-launch-session xbmc-standalone
Here's my xbmc log:
16:54:07 T:140484306225184 M:7919067136 NOTICE: -----------------------------------------------------------------------
16:54:07 T:140484306225184 M:7919067136 NOTICE: Starting XBMC, Platform: Linux (Arch Linux, 3.1.4-1-ARCH x86_64). Built on Sep 17 2011 (Git:Unknown)
16:54:07 T:140484306225184 M:7919067136 NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
16:54:07 T:140484306225184 M:7919067136 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/xbmc
16:54:07 T:140484306225184 M:7919067136 NOTICE: special://masterprofile/ is mapped to: /home/xbmc/.xbmc/userdata
16:54:07 T:140484306225184 M:7919067136 NOTICE: special://home/ is mapped to: /home/xbmc/.xbmc
16:54:07 T:140484306225184 M:7919067136 NOTICE: special://temp/ is mapped to: /home/xbmc/.xbmc/temp
16:54:07 T:140484306225184 M:7918804992 NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
16:54:07 T:140484306225184 M:7918804992 NOTICE: Log File is located: /home/xbmc/.xbmc/temp/xbmc.log
16:54:07 T:140484306225184 M:7918804992 NOTICE: -----------------------------------------------------------------------
16:54:08 T:140484306225184 M:7919239168 NOTICE: Setup SDL
16:54:08 T:140484306225184 M:7918985216 NOTICE: load settings...
16:54:08 T:140484306225184 M:7918985216 NOTICE: special://profile/ is mapped to: special://masterprofile/
16:54:08 T:140484306225184 M:7918985216 NOTICE: loading special://masterprofile/guisettings.xml
16:54:08 T:140484306225184 M:7918477312 NOTICE: Getting hardware information now...
16:54:08 T:140484306225184 M:7918477312 NOTICE: Checking resolution 12
16:54:08 T:140484306225184 M:7918477312 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
16:54:08 T:140484306225184 M:7918477312 NOTICE: Loaded playercorefactory configuration
16:54:08 T:140484306225184 M:7918477312 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
16:54:08 T:140484306225184 M:7918477312 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
16:54:08 T:140484306225184 M:7918477312 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
16:54:08 T:140484306225184 M:7918477312 NOTICE: Default DVD Player: dvdplayer
16:54:08 T:140484306225184 M:7918477312 NOTICE: Default Video Player: dvdplayer
16:54:08 T:140484306225184 M:7918477312 NOTICE: Default Audio Player: paplayer
16:54:08 T:140484306225184 M:7918477312 NOTICE: Loading media sources from special://masterprofile/sources.xml
16:54:09 T:140484306225184 M:7912595456 NOTICE: Using visual 0x22
16:54:09 T:140484306225184 M:7907917824 NOTICE: GL_VENDOR = Tungsten Graphics, Inc
16:54:09 T:140484306225184 M:7907917824 NOTICE: GL_RENDERER = Mesa DRI Intel(R) Sandybridge Desktop
16:54:09 T:140484306225184 M:7907917824 NOTICE: GL_VERSION = 2.1 Mesa 7.11.2
16:54:09 T:140484306225184 M:7907917824 NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.20
16:54:09 T:140484306225184 M:7907917824 NOTICE: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_NV_vertex_program GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_envmap_bumpmap GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_vertex_program1_1 GL_APPLE_client_storage GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_gpu_program_parameters GL_EXT_texture_env_combine GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_separate_shader_objects GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_ARB_ES2_compatibility GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_robustness
16:54:09 T:140484306225184 M:7907917824 ERROR: GLX: Same window as before, refreshing context
16:54:09 T:140484306225184 M:7870885888 NOTICE: start dvd mediatype detection
16:54:09 T:140484306225184 M:7870885888 NOTICE: initializing playlistplayer
16:54:09 T:140484306225184 M:7870885888 NOTICE: DONE initializing playlistplayer
16:54:09 T:140484306225184 M:7862116352 NOTICE: initialize done
16:54:09 T:140484306225184 M:7862116352 NOTICE: Running the application...
16:54:09 T:140484306225184 M:7862116352 NOTICE: ES: Starting event server
16:54:09 T:140484306225184 M:7862116352 NOTICE: DS: Starting dbus server
16:54:09 T:140483916785408 M:7862116352 NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
16:54:09 T:140483916785408 M:7860830208 NOTICE: UDP: Listening on port 9777
16:54:09 T:140484306225184 M:7861039104 ERROR: DS: Failed to connect to the D-Bus session daemon: Empty address ''
16:54:09 T:140484306225184 M:7858745344 NOTICE: DVDPlayer: Opening: ""
16:54:09 T:140484306225184 M:7858745344 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:54:09 T:140483897579264 M:7858745344 NOTICE: Creating InputStream
16:54:09 T:140483897579264 M:7858745344 ERROR: CDVDPlayer::OpenInputStream - error opening [""]
16:54:09 T:140483897579264 M:7858745344 NOTICE: CDVDPlayer::OnExit()
16:54:09 T:140483897579264 M:7858745344 NOTICE: CDVDPlayer::OnExit() deleting input stream
16:54:09 T:140484306225184 M:7858745344 ERROR: Playlist Player: skipping unplayable item: 0, path [""]
16:54:09 T:140484306225184 M:7855616000 NOTICE: CDVDPlayer::CloseFile()
16:54:09 T:140484306225184 M:7855616000 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:54:09 T:140484306225184 M:7855616000 NOTICE: DVDPlayer: waiting for threads to exit
16:54:09 T:140484306225184 M:7855616000 NOTICE: DVDPlayer: finished waiting
16:54:11 T:140483898390272 M:7854510080 WARNING: FillBuffer: curl failed with code 28
16:54:11 T:140483898390272 M:7854510080 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
16:54:15 T:140483808454400 M:7849615360 ERROR: WEATHER: Unable to get data: Invalid License Key.
16:54:16 T:140483898390272 M:7853133824 WARNING: FillBuffer: curl failed with code 28
16:54:16 T:140483898390272 M:7853133824 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
16:54:22 T:140483898390272 M:7853547520 WARNING: FillBuffer: curl failed with code 28
16:54:22 T:140483898390272 M:7853547520 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
Offline
The hushlogin file is not important, it's purely cosmetic.
So what exactly is not working? You should tell where it breaks. The xbmc log is not gonna help, either it runs, or it does not.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
It breaks where
the shutdown option within xbmc is not turning the computer off; it simply drops me back to the console
Offline
I've had the same problem which I successfully solved by following this post: http://forum.xbmc.org/showthread.php?t=97715.
The problem is that the user is not registered with consolekit if you login directly from inittab (If I understand it correctly). So I used Slim login manager to make the login.
In /etc/slim.conf change the following lines:
login_cmd exec /bin/bash -login ~/.xinitrc %session
#default_user simone
#auto_login no
to:
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
default_user your_username
auto_login yes
Then write in your .xinitrc:
exec /usr/bin/xbmc --standalone -fs
And that's it, hope it works for you too.
The other possible solution is: https://wiki.archlinux.org/index.php/Start_X_at_Boot
Offline
Pages: 1