You are not logged in.

#1 2016-09-14 20:34:40

Osiris
Member
Registered: 2003-01-18
Posts: 157
Website

Kodi Standalone Service: Launch with X-Server running

Hello,

I use the AUR package https://aur.archlinux.org/packages/kodi … e-service/ to run Kodi standalone on vt7. However, I have also graphical.target set as default target with sddm as login manager.

When I enable kodi.service it fails to start. Xorg.log says:

[   337.820] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[   337.820] _XSERVTransMakeAllCOTSServerListeners: server already running
[   337.820] (EE) 
Fatal server error:
[   337.820] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
[   337.821] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[   337.821] (EE) Please also check the log file at "/var/lib/kodi/.local/share/xorg/Xorg.0.log" for additional information.
[   337.821] (EE) 
[   337.821] (EE) Server terminated with error (1). Closing log file.

When I do systemctl isolate multi-user.target, thus switching off X11 and then start kodi.service it works. But this is not what I want.

How can I start kodi like that, but with a X-server already running?

Thanks,
Florian

Offline

#2 2016-09-15 12:46:51

wikavalier
Member
Registered: 2013-01-22
Posts: 27

Re: Kodi Standalone Service: Launch with X-Server running

Hi,

Check the unitd and edit it (in bold)


sudo nano /usr/lib/systemd/system/kodi.service
[Unit]
Description = Starts instance of Kodi using xinit
After = systemd-user-sessions.service network.target sound.target mysqld.service
Conflicts=getty@tty8.service

[Service]
Type = simple
TTYPath=/dev/tty8
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi -- :1 -nolisten tcp vt8
Restart = on-abort
StandardInput = tty

[Install]
WantedBy = multi-user.target

Offline

#3 2016-09-15 16:01:33

Osiris
Member
Registered: 2003-01-18
Posts: 157
Website

Re: Kodi Standalone Service: Launch with X-Server running

Thanks for your reply!

Just changing the :0 to :1 in the ExecStart command also works. Why did you move it to tty8?

Offline

#4 2016-09-15 16:19:00

wikavalier
Member
Registered: 2013-01-22
Posts: 27

Re: Kodi Standalone Service: Launch with X-Server running

Not needed, but if your DE is already using vt7 you can switch between them. If your DE is using other vt you can just let in in vy7.

Regards!

Offline

Board footer

Powered by FluxBB