I did this to but every time a try to exit Kodi is goes to a black screen and then it restarts Kodi again
I have to login via ssh and reboot with sudo reboot to get back to emulation station.
from /tmp/runcommand.sh
fbi: no process found
Failed to stop cec.service: Unit cec.service not loaded.
Segmentation fault
fbi: no process found
Failed to start cec.service: Unit cec.service failed to load: No such file or directory.
Failed to stop cec.service: Unit cec.service not loaded.
from /home/pi/kodi_crashlog-20160406_105355
############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Wed 6 Apr 10:53:55 UTC 2016
Kodi Options:
Arch: armv7l
Kernel: Linux 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016
Release: Raspbian GNU/Linux 8 (jessie)
############## END SYSTEM INFO ##############
############### STACK TRACE #################
############# END STACK TRACE ###############
################# LOG FILE ##################
10:53:44 321.616608 T:1944743936 NOTICE: special://profile/ is mapped to: special://masterprofile/
10:53:44 321.616730 T:1944743936 NOTICE: -----------------------------------------------------------------------
10:53:44 321.616791 T:1944743936 NOTICE: Starting Kodi (16.0 Git:2016-02-23-64108f4e-dirty). Platform: Linux ARM 32-bit
10:53:44 321.616821 T:1944743936 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
10:53:44 321.616852 T:1944743936 NOTICE: Kodi compiled Feb 23 2016 by GCC 4.9.2 for Linux ARM 32-bit version 3.16.7 (200711)
10:53:44 321.617035 T:1944743936 NOTICE: Running on Raspbian GNU/Linux 8 (jessie), kernel: Linux ARM 32-bit version 4.1.19-v7+
10:53:44 321.617096 T:1944743936 NOTICE: FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
10:53:44 321.617126 T:1944743936 NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
10:53:44 321.617157 T:1944743936 NOTICE: ARM Features: Neon disabled
10:53:44 321.617188 T:1944743936 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
10:53:44 321.617218 T:1944743936 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
10:53:44 321.617249 T:1944743936 NOTICE: special://masterprofile/ is mapped to: /home/pi/.kodi/userdata
10:53:44 321.617279 T:1944743936 NOTICE: special://home/ is mapped to: /home/pi/.kodi
10:53:44 321.617310 T:1944743936 NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
10:53:44 321.617371 T:1944743936 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
10:53:44 321.617432 T:1944743936 NOTICE: Local hostname: retropie
10:53:44 321.617493 T:1944743936 NOTICE: Log File is located: /home/pi/.kodi/temp/kodi.log
10:53:44 321.617523 T:1944743936 NOTICE: -----------------------------------------------------------------------
10:53:44 321.699829 T:1944743936 ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
10:53:44 321.701477 T:1944743936 ERROR: DBus: Error org.freedesktop.DBus.Error.AccessDenied - Permission denied
10:53:44 321.708832 T:1944743936 ERROR: Previous line repeats 1 times.
10:53:44 321.708893 T:1944743936 ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.PolicyKit1 was not provided by any .service files
10:53:44 321.708954 T:1944743936 WARNING: LogindUPowerSyscall - failed to inhibit sleep delay lock
10:53:44 321.718933 T:1944743936 NOTICE: load settings...
10:53:44 321.838654 T:1944743936 NOTICE: Found 2 Lists of Devices
10:53:44 321.838776 T:1944743936 NOTICE: Enumerated PI devices:
10:53:44 321.838806 T:1944743936 NOTICE: Device 1
10:53:44 321.839050 T:1944743936 NOTICE: m_deviceName : HDMI
10:53:44 321.839081 T:1944743936 NOTICE: m_displayName : HDMI
10:53:44 321.839142 T:1944743936 NOTICE: m_displayNameExtra:
10:53:44 321.839172 T:1944743936 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
10:53:44 321.839203 T:1944743936 NOTICE: m_channels : FL,FR
10:53:44 321.839233 T:1944743936 NOTICE: m_sampleRates : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
10:53:44 321.839264 T:1944743936 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3
10:53:44 321.839325 T:1944743936 NOTICE: Device 2
10:53:44 321.839355 T:1944743936 NOTICE: m_deviceName : Analogue
10:53:44 321.839417 T:1944743936 NOTICE: m_displayName : Analogue
10:53:44 321.839447 T:1944743936 NOTICE: m_displayNameExtra:
10:53:44 321.839478 T:1944743936 NOTICE: m_deviceType : AE_DEVTYPE_PCM
10:53:44 321.839508 T:1944743936 NOTICE: m_channels : FL,FR
10:53:44 321.839539 T:1944743936 NOTICE: m_sampleRates : 48000
10:53:44 321.839569 T:1944743936 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
10:53:44 321.839600 T:1944743936 NOTICE: Device 3
10:53:44 321.839691 T:1944743936 NOTICE: m_deviceName : Both
10:53:44 321.839722 T:1944743936 NOTICE: m_displayName : HDMI and Analogue
10:53:44 321.839752 T:1944743936 NOTICE: m_displayNameExtra:
10:53:44 321.839783 T:1944743936 NOTICE: m_deviceType : AE_DEVTYPE_PCM
10:53:44 321.839813 T:1944743936 NOTICE: m_channels : FL,FR
10:53:44 321.839844 T:1944743936 NOTICE: m_sampleRates : 48000
10:53:44 321.839874 T:1944743936 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
10:53:44 321.839935 T:1944743936 NOTICE: Enumerated ALSA devices:
10:53:44 321.839966 T:1944743936 NOTICE: Device 1
10:53:44 321.840088 T:1944743936 NOTICE: m_deviceName : @
10:53:44 321.840118 T:1944743936 NOTICE: m_displayName : Default (bcm2835 ALSA bcm2835 ALSA)
10:53:44 321.840149 T:1944743936 NOTICE: m_displayNameExtra:
10:53:44 321.840179 T:1944743936 NOTICE: m_deviceType : AE_DEVTYPE_PCM
10:53:44 321.840210 T:1944743936 NOTICE: m_channels : FL,FR
10:53:44 321.840240 T:1944743936 NOTICE: m_sampleRates : 8000,11025,16000,22050,32000,44100,48000
10:53:44 321.840271 T:1944743936 NOTICE: m_dataFormats : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
10:53:44 321.896759 T:1944743936 NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
10:53:44 321.897064 T:1944743936 NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
<?xml version="1.0" encoding="UTF-8" ?>
<advancedsettings>
<video>
<defaultplayer>dvdplayer</defaultplayer>
<defaultdvdplayer>dvdplayer</defaultdvdplayer>
<subsdelayrange>120</subsdelayrange>
<busydialogdelayms>750</busydialogdelayms>
</video>
<fanartres>720</fanartres>
<imageres>540</imageres>
<samba>
<clienttimeout>30</clienttimeout>
</samba>
<network>
<readbufferfactor>4.0</readbufferfactor>
<cachemembuffersize>31457280</cachemembuffersize>
</network>
<gui>
<algorithmdirtyregions>3</algorithmdirtyregions>
<nofliptimeout>0</nofliptimeout>
</gui>
<splash>false</splash>
</advancedsettings>
10:53:44 321.898468 T:1944743936 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
10:53:44 321.898529 T:1944743936 NOTICE: Default DVD Player: dvdplayer
10:53:44 321.898560 T:1944743936 NOTICE: Default Video Player: dvdplayer
10:53:44 321.898590 T:1944743936 NOTICE: Default Audio Player: paplayer
10:53:44 321.898621 T:1944743936 NOTICE: Disabled debug logging due to GUI setting. Level 0.
10:53:44 321.898651 T:1944743936 NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
10:53:44 321.898834 T:1944743936 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
10:53:44 321.900269 T:1944743936 NOTICE: Loaded playercorefactory configuration
10:53:44 321.900513 T:1944743936 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
10:53:44 321.900665 T:1944743936 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
10:53:44 321.998749 T:1944743936 NOTICE: Running database version Addons20
10:53:44 322.131683 T:1944743936 NOTICE: ADDONS: Using repository repository.xbmc.org
10:53:44 322.136078 T:1944743936 NOTICE: ADDONS: Using repository repository.popcornmix
10:53:44 322.200989 T:1944743936 NOTICE: Raspberry PI firmware version: Mar 15 2016 14:47:28
Copyright (c) 2012 Broadcom
version 1bf9a9a77026af9128a339c82d72e331d3532ee4 (clean) (release)
10:53:44 322.201111 T:1944743936 NOTICE: ARM mem: 752MB GPU mem: 256MB MPG2:0 WVC1:0
10:53:44 322.201141 T:1944743936 NOTICE: cacheMemBufferSize: 30MB
10:53:44 322.201416 T:1944743936 NOTICE: Config:
arm_freq=1200
audio_pwm_mode=1
audio_sdm_mod_order=2
config_hdmi_boost=5
core_freq=400
desired_osc_freq=0x36ee80
disable_commandline_tags=2
disable_l2cache=1
emmc_pll_core=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=300
hdmi_channel_map=8
hdmi_force_cec_address=65535
init_uart_clock=0x2dc6c00
lcd_framerate=60
over_voltage_avs=0x27ac4
overscan_bottom=48
overscan_left=48
overscan_right=48
overscan_scale=1
overscan_top=48
pause_burst_frames=1
program_serial_random=1
sdram_freq=450
temp_limit=85
10:53:44 322.201538 T:1944743936 NOTICE: Config:
device_tree=-
10:53:44 322.201599 T:1944743936 NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi
10:53:44 322.203156 T:1944743936 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
10:53:44 322.203217 T:1944743936 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
10:53:44 322.203278 T:1944743936 NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 60.000000 Hz
10:53:44 322.203308 T:1944743936 NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 59.940063 Hz
10:53:44 322.203339 T:1944743936 NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 60.000000 Hz
10:53:44 322.203400 T:1944743936 NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 59.940063 Hz
10:53:44 322.203430 T:1944743936 NOTICE: Found resolution 1280 x 800 for display 0 with 1280 x 800 @ 60.000000 Hz
10:53:44 322.203461 T:1944743936 NOTICE: Found resolution 1280 x 800 for display 0 with 1280 x 800 @ 59.940063 Hz
10:53:44 322.203491 T:1944743936 NOTICE: Found resolution 1280 x 960 for display 0 with 1280 x 960 @ 60.000000 Hz
10:53:44 322.203552 T:1944743936 NOTICE: Found resolution 1280 x 960 for display 0 with 1280 x 960 @ 59.940063 Hz
10:53:44 322.203583 T:1944743936 NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 60.000000 Hz
10:53:44 322.203644 T:1944743936 NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 59.940063 Hz
10:53:44 322.203705 T:1944743936 NOTICE: Found resolution 1400 x 1050 for display 0 with 1400 x 1050 @ 60.000000 Hz
10:53:44 322.203735 T:1944743936 NOTICE: Found resolution 1400 x 1050 for display 0 with 1400 x 1050 @ 59.940063 Hz
10:53:44 322.203766 T:1944743936 NOTICE: Found resolution 1440 x 900 for display 0 with 1440 x 900 @ 60.000000 Hz
10:53:44 322.203827 T:1944743936 NOTICE: Found resolution 1440 x 900 for display 0 with 1440 x 900 @ 59.940063 Hz
10:53:44 322.203857 T:1944743936 NOTICE: Found resolution 1440 x 1080 for display 0 with 1600 x 1200 @ 60.000000 Hz
10:53:44 322.203888 T:1944743936 NOTICE: Found resolution 1440 x 1080 for display 0 with 1600 x 1200 @ 59.940063 Hz
10:53:44 322.203949 T:1944743936 NOTICE: Found resolution 1680 x 1050 for display 0 with 1680 x 1050 @ 60.000000 Hz
10:53:44 322.203979 T:1944743936 NOTICE: Found resolution 1680 x 1050 for display 0 with 1680 x 1050 @ 59.940063 Hz
10:53:44 322.204010 T:1944743936 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
10:53:44 322.204041 T:1944743936 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
10:53:44 322.204102 T:1944743936 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
10:53:44 322.204132 T:1944743936 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
10:53:44 322.204163 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
10:53:44 322.204224 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
10:53:44 322.204254 T:1944743936 NOTICE: Found resolution 720 x 576 for display 0 with 720 x 576 @ 50.000000 Hz
10:53:44 322.204285 T:1944743936 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 50.000000 Hz
10:53:44 322.204315 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 50.000000 Hz
10:53:44 322.204376 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
10:53:44 322.204407 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.976025 Hz
10:53:44 322.204437 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 25.000000 Hz
10:53:44 322.204468 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
10:53:44 322.204529 T:1944743936 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.970032 Hz
10:53:44 322.204559 T:1944743936 NOTICE: Found (1920x1080@60.000000) at 40, setting to RES_DESKTOP at 16
10:53:44 322.204620 T:1944743936 NOTICE: Checking resolution 16
10:53:45 322.304321 T:1944743936 NOTICE: GL_VENDOR = Broadcom
10:53:45 322.304413 T:1944743936 NOTICE: GL_RENDERER = VideoCore IV HW
10:53:45 322.304443 T:1944743936 NOTICE: GL_VERSION = OpenGL ES 2.0
10:53:45 322.304474 T:1944743936 NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
10:53:45 322.304535 T:1944743936 NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker
10:53:45 322.783173 T:1944743936 NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
10:53:45 322.834564 T:1944743936 NOTICE: Running database version Addons20
10:53:45 322.837006 T:1944743936 NOTICE: Running database version ViewModes6
10:53:45 322.839294 T:1944743936 NOTICE: Running database version Textures13
10:53:45 322.854492 T:1944743936 NOTICE: Running database version MyMusic56
10:53:45 322.868683 T:1944743936 NOTICE: Running database version MyVideos99
10:53:45 322.872223 T:1944743936 NOTICE: Running database version TV29
10:53:45 322.880066 T:1944743936 NOTICE: Running database version Epg11
10:53:45 322.882385 T:1944743936 NOTICE: start dvd mediatype detection
10:53:45 322.952667 T:1944743936 WARNING: CSkinInfo: failed to load skin settings
10:53:46 323.613831 T:1944743936 WARNING: Previous line repeats 1 times.
10:53:46 323.613922 T:1944743936 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
10:53:46 323.685883 T:1944743936 NOTICE: ActiveAE DSP - starting
10:53:46 323.692474 T:1944743936 NOTICE: initialize done
10:53:46 323.891815 T:1944743936 NOTICE: Enabled Joystick: 8Bitdo NES30 GamePad Joystick
10:53:46 323.891907 T:1944743936 NOTICE: Details: Total Axis: 6 Total Hats: 1 Total Buttons: 22
10:53:46 323.892120 T:1944743936 NOTICE: Running the application...
10:53:46 324.250519 T:1944743936 NOTICE: starting zeroconf publishing
10:53:46 324.250793 T:1944743936 NOTICE: starting upnp client
10:53:46 324.281677 T:1709700016 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
10:53:46 324.281891 T:1709700016 NOTICE: UDP: Listening on port 9777
10:53:46 324.282684 T:1944743936 NOTICE: Found a non joystick : use it as standard kodi input device - /dev/input/event0
10:53:47 324.482910 T:1944743936 NOTICE: Found a non joystick : use it as standard kodi input device - /dev/input/event1
10:53:47 324.572662 T:1944743936 NOTICE: Found a joystick : use it as a joystick input device - /dev/input/event2
10:53:47 324.670410 T:1944743936 NOTICE: Previous line repeats 1 times.
10:53:47 324.670502 T:1944743936 NOTICE: Enabled Joystick: 8Bitdo NES30 GamePad Joystick
10:53:47 324.670563 T:1944743936 NOTICE: Details: Total Axis: 6 Total Hats: 1 Total Buttons: 22
10:53:52 330.213165 T:1944743936 NOTICE: Storing total System Uptime
10:53:52 330.213470 T:1944743936 NOTICE: Saving settings
10:53:52 330.223206 T:1944743936 NOTICE: stop all
10:53:52 330.223755 T:1944743936 NOTICE: stop player
10:53:52 330.223877 T:1944743936 NOTICE: ES: Stopping event server
10:53:52 330.231262 T:1944743936 NOTICE: stopping upnp
10:53:52 330.288818 T:1709700016 NOTICE: ES: UDP Event server stopped
10:53:53 330.382812 T:1944743936 NOTICE: stopping zeroconf publishing
10:53:53 330.387207 T:1944743936 NOTICE: stop dvd detect media
############### END LOG FILE ################
############ END Kodi CRASH LOG #############