Talk:Kodi: Difference between revisions

From ArchWiki
Latest comment: 28 June 2018 by Nl6720 in topic Remove request for NFS section
(strike out old issues ... when does one delete them?)
Line 23: Line 23:
::This is now correct with {{AUR|xbmc-standalone-service}} version 1.3-1. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 15:41, 9 September 2014 (UTC)
::This is now correct with {{AUR|xbmc-standalone-service}} version 1.3-1. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 15:41, 9 September 2014 (UTC)


== XBMC shutdown/reboot polkit rules ==
== <s>XBMC shutdown/reboot polkit rules </s>==


I undid your modification to the XBMC page, as the polkit rule that enables poweroff and rebooting when using the systemd service is not present in the current package, as you implied in your modification comment. You can check yourself [https://www.archlinux.org/packages/community/x86_64/xbmc/ here]. Any reason you thought it was? I added a bug report mentioning this issue [https://bugs.archlinux.org/task/35729 here]. --[[User:Palmaway|Palmaway]] ([[User talk:Palmaway|talk]]) 03:31, 9 June 2013 (UTC)
I undid your modification to the XBMC page, as the polkit rule that enables poweroff and rebooting when using the systemd service is not present in the current package, as you implied in your modification comment. You can check yourself [https://www.archlinux.org/packages/community/x86_64/xbmc/ here]. Any reason you thought it was? I added a bug report mentioning this issue [https://bugs.archlinux.org/task/35729 here]. --[[User:Palmaway|Palmaway]] ([[User talk:Palmaway|talk]]) 03:31, 9 June 2013 (UTC)
Line 31: Line 31:
::Are you running XBMC by enabling the systemd service? What you mention works if you run XBMC in other ways (xinit with autologin, direct execution...) but not for the systemd service, as in this case it will not register the session correctly therefore not enabling poklit. See this [https://bbs.archlinux.org/viewtopic.php?id=152113 forum post] for more details. --[[User:Palmaway|Palmaway]] ([[User talk:Palmaway|talk]]) 20:20, 9 June 2013 (UTC)
::Are you running XBMC by enabling the systemd service? What you mention works if you run XBMC in other ways (xinit with autologin, direct execution...) but not for the systemd service, as in this case it will not register the session correctly therefore not enabling poklit. See this [https://bbs.archlinux.org/viewtopic.php?id=152113 forum post] for more details. --[[User:Palmaway|Palmaway]] ([[User talk:Palmaway|talk]]) 20:20, 9 June 2013 (UTC)


== lircd with XBMC ==
== <s>lircd with XBMC</s> ==


The section on getting an MCE remote to work with lircd under XBMC had been sitting there with a "this isn't the right way to use systemctl" warning for a while now.  I was reinstalling lircd on my build, and figured I'd update this section.  Fortunately, it seems that as far as I can tell, from lircd 0.9.1 onward, we don't need the custom systemctl service and the confusingly named config file for the service (which shared its name with lircd's own config file), as the lircd.socket service appeared to properly handle the /dev/lirc0 device when specified in lirc's own (also new) lirc_options.conf file.  Shorter: using lircd.socket, everything now seems to work right out of the box.  Would appreciate confirmation of this. --[[User:Slinkygn|Slinkygn]] ([[User talk:Slinkygn|talk]]) 15:37, 9 September 2014 (UTC)
The section on getting an MCE remote to work with lircd under XBMC had been sitting there with a "this isn't the right way to use systemctl" warning for a while now.  I was reinstalling lircd on my build, and figured I'd update this section.  Fortunately, it seems that as far as I can tell, from lircd 0.9.1 onward, we don't need the custom systemctl service and the confusingly named config file for the service (which shared its name with lircd's own config file), as the lircd.socket service appeared to properly handle the /dev/lirc0 device when specified in lirc's own (also new) lirc_options.conf file.  Shorter: using lircd.socket, everything now seems to work right out of the box.  Would appreciate confirmation of this. --[[User:Slinkygn|Slinkygn]] ([[User talk:Slinkygn|talk]]) 15:37, 9 September 2014 (UTC)
Line 44: Line 44:
--[[User:Mex|Mex]] ([[User talk:Mex|talk]]) 20:07, 7 June 2015 (UTC)
--[[User:Mex|Mex]] ([[User talk:Mex|talk]]) 20:07, 7 June 2015 (UTC)


== socket activation ==
== <s>socket activation</s> ==


The text says to replace user in the files it teaches to the user to create with the running user but the file names are inconsistent with that statement.  I don't have the inclination to test the socket method to fix it. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 08:01, 22 November 2014 (UTC)
The text says to replace user in the files it teaches to the user to create with the running user but the file names are inconsistent with that statement.  I don't have the inclination to test the socket method to fix it. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 08:01, 22 November 2014 (UTC)
Line 51: Line 51:
--[[User:Butler360|Butler360]] ([[User talk:Butler360|talk]]) 18:07, 9 January 2015 (UTC)
--[[User:Butler360|Butler360]] ([[User talk:Butler360|talk]]) 18:07, 9 January 2015 (UTC)


== Controlling with a gamepad/joystick ==
== <s>Controlling with a gamepad/joystick</s> ==


I tried a lot of things to in order to get a wireless Xbox 360 controller to work with XBMC, but the thing that finally made it work was going into System -> Settings -> System -> Input devices and checking the "Enable joystick and gamepad support" wich was disabled by default. May want to add a notice about this. [[User:Sivert|Sivert]] ([[User talk:Sivert|talk]]) 23:17, 6 December 2014 (UTC)
I tried a lot of things to in order to get a wireless Xbox 360 controller to work with XBMC, but the thing that finally made it work was going into System -> Settings -> System -> Input devices and checking the "Enable joystick and gamepad support" wich was disabled by default. May want to add a notice about this. [[User:Sivert|Sivert]] ([[User talk:Sivert|talk]]) 23:17, 6 December 2014 (UTC)
Line 57: Line 57:
: It's a wiki, dude.  If you feel that you have some information others could benefit from, you are free to edit the main article to add it. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 11:12, 8 December 2014 (UTC)
: It's a wiki, dude.  If you feel that you have some information others could benefit from, you are free to edit the main article to add it. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 11:12, 8 December 2014 (UTC)


== kodi-standalone systemd service does indeed need Xwrapper.config ==
== <s>kodi-standalone systemd service does indeed need Xwrapper.config</s> ==


The section about the systemd service that starts kodi-standalone mentions in its notes that the file <code>/etc/X11/Xwrapper.config</code> might be needed with the lines (actually, just one line) from the next section, i.e., with
The section about the systemd service that starts kodi-standalone mentions in its notes that the file <code>/etc/X11/Xwrapper.config</code> might be needed with the lines (actually, just one line) from the next section, i.e., with
Line 91: Line 91:
:: ...unless the ATI drivers you're using for some reason require that file which would surprise me.  I have no ATI hardware for testing. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 19:13, 2 January 2016 (UTC)
:: ...unless the ATI drivers you're using for some reason require that file which would surprise me.  I have no ATI hardware for testing. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 19:13, 2 January 2016 (UTC)


== Video tearing on Intel HD Graphics ==
== <s>Video tearing on Intel HD Graphics </s>==


Hi,
Hi,

Revision as of 13:35, 1 July 2018

Example guide for xbmc+MySQL

I spend some considerable effort and time into drafting this section today in hopes in might lower the bar for others to implement the setup: sharing a database across multiple nodes. Please give it a try and provide some feedback, good or bad. Graysky (talk) 18:09, 21 September 2014 (UTC)Reply[reply]

One observation: In the MySQL/MariaDB install section, you grant the 'kodi' user full permissions on all databases ('GRANT ALL ON *.*'). This is not great security for users who may be running other, private databases on the same server. Suggest this be changed to warn of this and/or to provide alternative instruction, i.e.
CREATE DATABASE <name-of-kodi-db>;
GRANT ALL ON <name-of-kodi-db>.* to 'kodi';
Unless Kodi needs to be able to perform any global actions (and I can't imagine why it would), this is a safer approach. If no objections I'll research this and edit the section in due course. Havin it (talk) 12:24, 4 April 2015 (UTC)Reply[reply]

I recently followed the steps in this section to set up sharing of my database across nodes. I had to change:

CREATE USER 'kodi' IDENTIFIED BY 'kodi';
to
CREATE USER 'kodi'@'localhost' IDENTIFIED BY 'kodi';
in order to make it work.Dafrizz (talk) 02:09, 11 October 2015 (UTC)Reply[reply]
modified a while back, thanks. Graysky (talk) 23:16, 18 November 2016 (UTC)Reply[reply]

Pulseaudio and XBMC autostart

Using the xbmc.service did not start pulseaudio. I ended up having to set a tty to autologin(getty) and start X in .bash_profile (using geforce integrated ION and HDIM out). Olivervbk (talk) 16:10, 28 January 2013‎ (UTC)Reply[reply]

Yes, this is a known issue currently. See: xbmc forum post and arch bbs post and systemd bugzilla. Also, please sign your comments using four tilde characters. Graysky (talk) 07:08, 11 August 2014 (UTC)Reply[reply]
This is now correct with xbmc-standalone-serviceAUR version 1.3-1. Graysky (talk) 15:41, 9 September 2014 (UTC)Reply[reply]

XBMC shutdown/reboot polkit rules

I undid your modification to the XBMC page, as the polkit rule that enables poweroff and rebooting when using the systemd service is not present in the current package, as you implied in your modification comment. You can check yourself here. Any reason you thought it was? I added a bug report mentioning this issue here. --Palmaway (talk) 03:31, 9 June 2013 (UTC)Reply[reply]

It's not the exact udev rule, but placing the user in the 'power' group, and invoking the shutdown option works for me. This can be reversed by removing the user for the power group, logging out and back in, and invoking the shutdown option again. Now, the box does not go down; xbmc just exits. So functionally, that udev rule is not needed. Graysky (talk) 10:44, 9 June 2013 (UTC)Reply[reply]
Are you running XBMC by enabling the systemd service? What you mention works if you run XBMC in other ways (xinit with autologin, direct execution...) but not for the systemd service, as in this case it will not register the session correctly therefore not enabling poklit. See this forum post for more details. --Palmaway (talk) 20:20, 9 June 2013 (UTC)Reply[reply]

lircd with XBMC

The section on getting an MCE remote to work with lircd under XBMC had been sitting there with a "this isn't the right way to use systemctl" warning for a while now. I was reinstalling lircd on my build, and figured I'd update this section. Fortunately, it seems that as far as I can tell, from lircd 0.9.1 onward, we don't need the custom systemctl service and the confusingly named config file for the service (which shared its name with lircd's own config file), as the lircd.socket service appeared to properly handle the /dev/lirc0 device when specified in lirc's own (also new) lirc_options.conf file. Shorter: using lircd.socket, everything now seems to work right out of the box. Would appreciate confirmation of this. --Slinkygn (talk) 15:37, 9 September 2014 (UTC)Reply[reply]



The secion on setting up lircd with mce remote has this line, however the file isn't in the lirc pacakge.

# ln -s /usr/share/lirc/mceusb/lircd.conf.mceusb /etc/lirc/lircd.conf

--Mex (talk) 20:07, 7 June 2015 (UTC)Reply[reply]

socket activation

The text says to replace user in the files it teaches to the user to create with the running user but the file names are inconsistent with that statement. I don't have the inclination to test the socket method to fix it. Graysky (talk) 08:01, 22 November 2014 (UTC)Reply[reply]

It works for me as written. I'll go ahead and remove the warning. --Butler360 (talk) 18:07, 9 January 2015 (UTC)Reply[reply]

Controlling with a gamepad/joystick

I tried a lot of things to in order to get a wireless Xbox 360 controller to work with XBMC, but the thing that finally made it work was going into System -> Settings -> System -> Input devices and checking the "Enable joystick and gamepad support" wich was disabled by default. May want to add a notice about this. Sivert (talk) 23:17, 6 December 2014 (UTC)Reply[reply]

It's a wiki, dude. If you feel that you have some information others could benefit from, you are free to edit the main article to add it. Graysky (talk) 11:12, 8 December 2014 (UTC)Reply[reply]

kodi-standalone systemd service does indeed need Xwrapper.config

The section about the systemd service that starts kodi-standalone mentions in its notes that the file /etc/X11/Xwrapper.config might be needed with the lines (actually, just one line) from the next section, i.e., with needs_root_rights = yes On my fresh Arch Linux box I did indeed need this file, so the remark to add this file with given content should be placed above those subsections to say that it is needed for all systemd service options.

The fact that this remark was placed at the end of the notes made me unfortunately realize it after a couple of other attempts to fix my non-starting kodi service...

Epinephrine (talk) 16:56, 2 January 2016 (UTC)Reply[reply]

No, remove the file and reboot with the service enabled; provided that you have the correct video driver installed, it works fine without it. Graysky (talk) 17:01, 2 January 2016 (UTC)Reply[reply]
Confirmed on a fresh install just now. Upon rebooting into it, I was greeted with kodi with no additional setup. I suspect you are missing something with regard to your ati drivers.
mount /dev/sda4 /mnt/mini
pacstrap -i /mnt/mini base xf86-video-intel kodi kodi-standalone-service
echo "LABEL=mini / ext4 defaults,relatime 0 1" >> /mnt/mini/etc/fstab
echo mini > /mnt/mini/etc/hostname
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /mnt/mini/etc/locale.gen
echo "LANG=en_US.UTF-8" > /mnt/mini/etc/locale.conf 

arch-chroot /mnt/mini /bin/bash
passwd
sed -i '/^MODULES/ s,"","i915",' /etc/mkinitcpio.conf
mkinitcpio -p linux
locale-gen
systemctl enable kodi
exit
reboot
Graysky (talk) 18:24, 2 January 2016 (UTC)Reply[reply]
...unless the ATI drivers you're using for some reason require that file which would surprise me. I have no ATI hardware for testing. Graysky (talk) 19:13, 2 January 2016 (UTC)Reply[reply]

Video tearing on Intel HD Graphics

Hi, I am new to the wiki, so I did not want to just edit the pages.

The intel video tearing tip is outdated, as its already patched in Arch. This tip could be removed.

However I still have the issues, but found a solution: You can try to use a different X11 compositor like compton which reduces video tearing. In my setup I did not use the intel driver, I used the builtin kernel driver. https://wiki.archlinux.org/index.php/Compton

I'd be happy if someone can help me on how to rewrite this section ;) NicoHood (talk) 18:40, 17 July 2016 (UTC)Reply[reply]

Remove request for NFS section

@Nl6720 - In reference to this flag, I feel that we should retain at least the example /etc/exports in this article to point the user to the needed NFS options/provide a minimal example on which to build. If you want to reference the nfs wiki and outline the steps in a single sentence (ie creating the bind mounts/mods to /etc/fstab noted in the linked article), that is fine with me. Thoughts? Graysky (talk) 17:47, 25 June 2018 (UTC)Reply[reply]

Actually, if we omit those two subsections, there are other parts of the guide that won't make sense. For the sake of completeness of this section, I think they actually need to stay or a shorter description should be added outlining them. For me, I'd rather keep the page as-is since there really isn't a strong driving force to trim the subsection of the article. Graysky (talk) 17:54, 25 June 2018 (UTC)Reply[reply]
I'm not against keeping /etc/exports (although I would prefer if the section used .exports files in /etc/exports.d/). I mostly don't like the bind mount and fstab examples, I think the section should just tell what to do and link to NFS#Server. See #NFS server export example below.
-- nl6720 (talk) 14:53, 26 June 2018 (UTC)Reply[reply]
Sounds good to me, make it so :) Graysky (talk) 18:10, 27 June 2018 (UTC)Reply[reply]
Done. -- nl6720 (talk) 02:36, 28 June 2018 (UTC)Reply[reply]

NFS server export example

Create an empty directory in NFS root for each media directory you want to share. E.g.:

# mkdir -p /srv/nfs/{shows,movies,music}

Bind mount your media directories to the empty directories in /srv/nfs/.

Setup exports:

/etc/exports.d/kodi.exports
/srv/nfs          192.168.0.0/24(ro,fsid=0,no_subtree_check)
/srv/nfs/shows    192.168.0.0/24(ro,no_subtree_check,insecure)
/srv/nfs/movies   192.168.0.0/24(ro,no_subtree_check,insecure)
/srv/nfs/music    192.168.0.0/24(ro,no_subtree_check,insecure)