You are not logged in.

#1 2014-08-02 02:26:04

mahalos
Member
Registered: 2008-10-08
Posts: 5

Can't start XBMC at boot

Hey guys,

I thought I had this one sorted but clearly something is not right. !
My X Server is running just fine, I can call it with startx and it fires up no problems.

XBMC has been installed and been set to start at boot using

 sudo systemctl enable xbmc.service 

but the system just boots to a login prompt

The status of the xbmc.service is this

[ams@arch ~]$ sudo systemctl status xbmc.service -l 
● xbmc.service - Starts instance of XBMC using xinit
   Loaded: loaded (/usr/lib/systemd/system/xbmc.service; enabled)
   Active: failed (Result: exit-code) since Sat 2014-08-02 14:01:14 NZST; 15min ago
 Main PID: 280 (code=exited, status=1/FAILURE)

Aug 02 14:00:59 arch systemd[280]: pam_unix(login:session): session opened for user ams by (uid=0)
Aug 02 14:01:14 arch systemd[1]: xbmc.service: main process exited, code=exited, status=1/FAILURE
Aug 02 14:01:14 arch systemd[1]: Unit xbmc.service entered failed state.

I know XBMC is running fine as I can startx manually and start it from there.

this is my xbmc.service file

[ams@arch ~]$ cat /usr/lib/systemd/system/xbmc.service 
[Unit]
Description = Starts instance of XBMC using xinit
After = systemd-user-sessions.service network.target
Conflicts=getty@tty7.service

[Service]
User = xbmc
Group = xbmc
PAMName=login
Type = simple
TTYPath=/dev/tty7
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc-standalone -- :0 -nolisten tcp vt7
Restart = on-abort

[Install]
WantedBy = multi-user.target

anybody got any suggestions on this one? im a little stuck! Thanks

Offline

#2 2014-08-02 02:39:15

cplusplus
Member
Registered: 2014-08-02
Posts: 43

Re: Can't start XBMC at boot

I'm no expert, but if you haven't checked yet, you might want to take a look at the wiki page for xbmc https://wiki.archlinux.org/index.php/XBMC

It has a link about autostarting. I believe XBMC comes with a session and user, but currently the session is not working.

What I did was created my own user, set it to autologin to a custom xbmc.desktop file which launches an xbmc.session.

If that helps.

Offline

#3 2014-08-02 02:43:00

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Can't start XBMC at boot

It's a known issue.

Offline

#4 2014-08-02 02:44:47

mahalos
Member
Registered: 2008-10-08
Posts: 5

Re: Can't start XBMC at boot

Thanks for the heads up Cplusplus, Im sure i checked there the other day but I never saw that the autostart was broken! I guess I was always going to be fighting a losing battle, im off to go try the bug fix!

thanks again

Offline

#5 2014-08-03 02:52:34

mahalos
Member
Registered: 2008-10-08
Posts: 5

Re: Can't start XBMC at boot

cplusplus wrote:

What I did was created my own user, set it to autologin to a custom xbmc.desktop file which launches an xbmc.session.

If that helps.

Hey cplusplus, would you mind posting your custom desktop file. Thanks

Offline

#6 2014-08-04 15:21:59

cplusplus
Member
Registered: 2014-08-02
Posts: 43

Re: Can't start XBMC at boot

Sorry for the late reply. the XBMC package actually comes with a .desktop file included. it's located under /usr/share/xsessions/XBMC.desktop.

It just launches a xbmc-standalone. xbmc-standalone is located in /usr/bin/ you should be able to use them as a template to create your own.

Offline

Board footer

Powered by FluxBB