You are not logged in.
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
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
Thanks for your reply!
Just changing the :0 to :1 in the ExecStart command also works. Why did you move it to tty8?
Offline
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