Difference between revisions of "Talk:Kodi"

From ArchWiki
Jump to: navigation, search
(Comments Welcome: Remove closed discussion.)
(XBMC shutdown/reboot polkit rules)
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== policykit rules ==
+
== SDL_VIDEO_FULLSCREEN_HEAD ==
  
Seems policykit config format is deprecated. I found following variant:
+
If xbmc starts with SDL_VIDEO_FULLSCREEN_HEAD=1 mouse hold inside second screen.
  
{{hc|/etc/polkit-1/rules.d/50-xbmc.rules|
 
<nowiki>polkit.addRule(function(action, subject) {
 
    if (( (action.id.indexOf("org.freedesktop.udisks.") == 0) || (action.id.indexOf("org.freedesktop.upower.")== 0) || (action.id.indexOf("org.freedesktop.consolekit.")== 0) ) &&
 
        subject.user=="xbmc") {
 
        return polkit.Result.YES;
 
    }
 
});</nowiki>
 
}}
 
  
Somebody confirm this.  
+
== Pulseaudio and XBMC autostart ==
[[User:Unikum|Unikum]] ([[User talk:Unikum|talk]]) 01:15, 19 October 2012 (UTC)
+
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)
 +
 
 +
== lirc udev rule ==
 +
 
 +
For some reason {{ic|ATTR{protocols}&#61;&#61;"*lirc*"}} filter doesn't work for me. Rule does not apply despite rc device has [lirc] in protocols. The best thing I could come up with is to replace the rule with {{ic|ACTION&#61;&#61;"add", SUBSYSTEM&#61;&#61;"rc", RUN+&#61;"/bin/sh -c 'echo lirc > $sys$devpath/protocols'"}}.
 +
 
 +
== XBMC shutdown/reboot polkit rules ==
 +
 
 +
I undid your modification to the XBMC page, as the polkit rule that enabes 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)
 +
 
 +
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. [[User:Graysky|Graysky]] ([[User talk:Graysky|talk]]) 10:44, 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)

Revision as of 20:20, 9 June 2013

SDL_VIDEO_FULLSCREEN_HEAD

If xbmc starts with SDL_VIDEO_FULLSCREEN_HEAD=1 mouse hold inside second screen.


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)

lirc udev rule

For some reason ATTR{protocols}=="*lirc*" filter doesn't work for me. Rule does not apply despite rc device has [lirc] in protocols. The best thing I could come up with is to replace the rule with ACTION=="add", SUBSYSTEM=="rc", RUN+="/bin/sh -c 'echo lirc > $sys$devpath/protocols'".

XBMC shutdown/reboot polkit rules

I undid your modification to the XBMC page, as the polkit rule that enabes 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)

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)

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)