---
title: kodi
keywords: [kodi, mysql, database, tip, howto]
---
pause and exit
--------------
kodi pause playback when menu button pressed
Kodi has an annoying config where the video will keep playing in the
backgroup if you hit the exit button. People have been complaining
about it for years and I have no idea why they keep the behavior as the
default. Here's how I disable backgroup play when hitting it.
You can either use the keymap editor: https://kodi.wiki/view/Add-on:Keymap_Editor
or if you have ssh enabled edit the xml file by hand:
`vi /storage/.kodi/userdata/keymaps/keyboard.xml`
```xml
Stop
```
samsung remote
==============
These keyid are for the samsung remote:
* exit: 216
* red: 251
* green: 252
* yellow: 253
* blue: 254
use a remote db
---------------
This will allow you to store the video and music databases on another
server. Handy if you have multiple kodis and want to keep the watched
items in sync. I don't use this any more for YMMV.
`vi /storage/.kodi/userdata/advancedsettings.xml`
```xml
mysql
192.168.1.x
3306
kodi
redacted
mysql
192.168.1.x
3306
kodi
redacted
true
true
```