Kodi

Iš Žinynas.
Jump to navigation Jump to search
sudo apt-get install kodi policykit-1
sudo nano /etc/polkit-1/localauthority/50-local.d/all_users_shutdown_reboot.pkla
[Allow all users to shutdown and reboot]
Identity=unix-user:* 
Action=org.freedesktop.login1.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*
ResultActive=yes
ResultAny=yes
ResultInactive=yes 

Automatinis startavimas sistemos krovimosi metu

sudo wget -O /etc/init.d/kodi https://gist.githubusercontent.com/shyamjos/60ea61fd8932fd5c868c80543b34f033/raw;sudo chmod +x /etc/init.d/kodi
sudo systemctl enable kodi

Wiimote pririšimas[keisti]

  • Start the bluetoothctl interactive command. There one can input help to get a list of available commands.
  • Turn the power to the controller on by entering power on. It is off by default.
  • Turn the agent on with agent on.
  • Enter device discovery mode with scan on command if device is not yet on the list.
  • Now press the red sync button behind the battery cover on the back of the wiimote. (This will also unpair it with your wii.)
  • Enter pair MAC Address to do the pairing (tab completion works).
  • If using a device without a PIN, one may need to manually trust the device before it can reconnect successfully. Enter trust MAC Address to do so.
  • Finally, use connect MAC_address to establish a connection.
  • Now disconnect with disconnect MAC_adress. The wiimote should turn off.
  • Now press the power button on the wiimote to reconnect. This should work after a reboot of RetroPie.
  • Use trust MAC_address to trust the device and not ask everytime it wants to connect.
  • If it didn't work, you may need to remove MAC-adress and try the whole process again.
  • See also: https://wiki.archlinux.org/index.php/XWiimote#Auto-Reconnect_is_not_working_after_pairing_with_red_sync-button