sudo tee -a /lib/systemd/system/kodi.service <<_EOF_
[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target
[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi
Restart = on-abort
RestartSec = 5
[Install]
WantedBy = multi-user.target
_EOF_
sudo systemctl enable kodi.service
Settings / Interface / Skin / Fonts
設置爲 Arial based
Settings / Interface / Regional / Language
apt install kodi-peripheral-joystick kodi-pvr-iptvsimple kodi-inputstream-adaptive kodi-inputstream-rtmp
開啓DLAN(手機投屏)
打開 設置 / 服務 / UPnP/DLNA
將其中的 允許通過UpnP遠程控制
選項設置爲 打開
。
hciconfig
systemctl start hciuart
systemctl status hciuart.service
SAP stands for SIM Access Profile
, so you have to disable it:
- Open
/etc/systemd/system/bluetooth.target.wants/bluetooth.service
-
Change:
ExecStart=/usr/lib/bluetooth/bluetoothd
To
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
-
Reload the systemd:
$ sudo systemctl daemon-reload
-
Restart the bluetooth:
$ sudo service bluetooth restart
-
Get the bluetooth status:
$ sudo service bluetooth status bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled) Active: active (running) since Sat 2016-04-30 10:38:46 UTC; 6s ago Docs: man:bluetoothd(8) Main PID: 12775 (bluetoothd) Status: "Running" CGroup: /system.slice/bluetooth.service └─12775 /usr/lib/bluetooth/bluetoothd --noplugin=sap
/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -
- From the Raspberry Pi desktop, open a new Terminal window.
- Type sudo bluetoothctl then press enter and input the administrator password (the default password is raspberry).
- Next, enter agent on and press enter. Then type default-agent and press enter.
- Type scan on and press enter one more time. The unique addresses of all the Bluetooth devices around the Raspberry Pi will appear and look something like an alphanumeric XX:XX:XX:XX:XX:XX. If you make the device you want to pair discoverable (or put it into pairing mode), the device nickname may appear to the right of the address. If not, you will have to do a little trial and error or waiting to find the correct device.
- To pair the device, type pair [device Bluetooth address]. The command will look something like pair XX:XX:XX:XX:XX:XX.