Kodi Community Forum

Full Version: autostart problem under lubuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello,

Perhaps someone can help here.... I use kodi 17 beta
i tried over the system.d method under my lubuntu 16.04 to set autostart when network ready and ect.


so, my problem is when he use the script sometimes by booting, he boots in kodi, but i had really bad graphics bugs, i see its kodi but i dont see anything else......



i follow the guide :

http://kodi.wiki/view/HOW-TO:Autostart_K...emd_script


my kodi.service file :

Code:
[Unit]
Description=Kodi Media Center
After=systemd-user-sessions.service network.target sound.target

[Service]
User=kodi
Group=kodi
Type=simple
ExecStart=/usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
Restart=on-abort
RestartSec=5

[Install]
WantedBy=multi-user.target

when i test the service with
Quote:systemctl status kodi.service
he says this :

Code:
kodi.service - Kodi Media Center
   Loaded: loaded (/etc/systemd/system/kodi.service; enabled; vendor preset: enabled)
   Active: active (running) since Fr 2016-09-09 16:33:16 CEST; 5s ago
Main PID: 3107 (xinit)
   CGroup: /system.slice/kodi.service
           └─3107 /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7

Sep 09 16:33:16 htpc-lubuntu xinit[3107]: Fatal server error:
Sep 09 16:33:16 htpc-lubuntu xinit[3107]: (EE) Server is already active for display 0
Sep 09 16:33:16 htpc-lubuntu xinit[3107]:         If this server is no longer running, remove /tmp/.X0-lock
Sep 09 16:33:16 htpc-lubuntu xinit[3107]:         and start again.
Sep 09 16:33:16 htpc-lubuntu xinit[3107]: (EE)
Sep 09 16:33:16 htpc-lubuntu xinit[3107]: (EE)
Sep 09 16:33:16 htpc-lubuntu xinit[3107]: Please consult the The X.Org Foundation support
Sep 09 16:33:16 htpc-lubuntu xinit[3107]:          at http://wiki.x.org
Sep 09 16:33:16 htpc-lubuntu xinit[3107]:  for help.
Sep 09 16:33:16 htpc-lubuntu xinit[3107]: (EE)


any ideas why he makes this ?
THX
I've never tried what you are doing so I can't comment on what is causing your issue. On my HTPC, I have set Kodi to autostart in this way:

  1. Press the Lubuntu icon
  2. Select "Preferences" > "Default applications for LXSession"
  3. In the opened window, select the option "Autostart"
  4. Now you can enable or disable the autostarted applications, check/uncheck one in the listm or set manually on the field and pressing the "Add" button.
Hello,

same issue here. I don't want to use the Ubuntu GUI because I create my own install script solution.

So, what could be the reason of this issue?