Fedora LXDE auto login and Kodi auto start

Here is small tip how to set up auto login and Kodi auto start on top of the Fedora 22 LXDE spin – Lightweight X11 Desktop Environment. With settings in two files, after reboot Fedora should run Kodi without login screen. These two configuration files are lxdm.conf and .dmrc in user home directory.

First as root user open /etc/lxdm/lxdm.conf and at the top set autologin username to enable auto login. In my case (username is “kodi”) it looks like this:

[base]
## uncomment and set autologin username to enable auto login
autologin=kodi

With defined autlogin parameter, LXDM will automatically log in user after Linux boot. All details can be read on ArchWiki pages.

Next step is to create .dmrc in user home directory. For my user “kodi” full path of the file is /home/kodi/.dmrc with the following content:

[Desktop]
Session=kodi

And basically that’s it. LXDE spin of Fedora 22 should boot to Kodi automatically.

For the end here is one more advice. I had to configure pulseaudio for simultaneous HDMI and analog output and instead of “Session=kodi” line, session in .dmrc was temporary set to openbox:

[Desktop]
Session=openbox

This will bring minimalistic X windows just enough for starting terminal window (menus are displayed on right mouse button). Open terminal and from command line start Kodi (type in “kodi” and press enter). Kodi will likely run in full screen, so it will be needed to set “windowed mode”:

SYSTEM -> Settings -> System -> Video output -> Display Mode -> Windowed

Now Kodi will run in window and another terminal is free for settings. After configuring is finished, return session to kodi and set full screen.

Leave a Comment