You are not logged in.

#1 2013-12-14 17:37:33

vmalloc
Member
Registered: 2013-09-20
Posts: 6

Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

Hi,

I followed the wiki pages to install Arch and XBMC from scratch, but shutdown and related functions don't appear in the shutdown menu.

My xbmc user is a member of the 'power' group and the appropriate polkit rules file is in place. I also have upower and pm-utils installed.

What am I doing wrong?

Thanks in advance!

Offline

#2 2013-12-26 10:57:23

GeorgeK
Member
Registered: 2013-12-26
Posts: 8

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

I'm just working on the same problem.  I'm building my xbmc client for network booting which might make a difference but ...

I've just spotted that /etc/polkit-1/rules.d is owned by root rather than polkitd which mean the rules aren't being loaded.  I'm currently searching for a reason why ...

Offline

#3 2013-12-26 11:08:15

vmalloc
Member
Registered: 2013-09-20
Posts: 6

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

I solved(?) the issue by editing /usr/share/polkit-1/actions/org.freedesktop.login1.policy, and allowing poweroff and reboot without limitations.

The precursor was that "systemctl poweroff" and friends weren't working either for the xbmc user, so it sent me looking for reasons why this might be. After enabling the options in the action policy config file, it works.

Offline

#4 2013-12-26 11:26:35

GeorgeK
Member
Registered: 2013-12-26
Posts: 8

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

Changing the owner of /etc/polkit-1/rules.d works for me but it's irritating that I can't work out WHY the ownership is wrong.  Still, it can go into the "if I get round to it" pile now.

Offline

#5 2013-12-26 11:32:14

vmalloc
Member
Registered: 2013-09-20
Posts: 6

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

Cool, I will write this down since it's a cleaner solution obviously. Perhaps this is a bug that should be reported to the packager?

Offline

#6 2013-12-26 11:49:02

GeorgeK
Member
Registered: 2013-12-26
Posts: 8

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

I'm not convinced it is a bug in polkit.  I can see in the pkgbuild where the ownership should be set on install.  I can't see any reason why it shouldn't happen and it's fine on my laptop.

It's more likely I'm doing something dumb in my script to build my diskless image so, unless I get time to work out why the ownership is wrong, I'm done with this.

Offline

#7 2013-12-26 12:09:32

vmalloc
Member
Registered: 2013-09-20
Posts: 6

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

I can confirm that /etc/polkit-1/rules.d is owned by root for me as well...

Offline

#8 2013-12-26 13:03:48

GeorgeK
Member
Registered: 2013-12-26
Posts: 8

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

Sussed it!  Installing xbmc before polkit gives the problem, xbmc after polkit is fine.

Reported as https://bugs.archlinux.org/task/38285

Offline

#9 2013-12-26 13:19:31

vmalloc
Member
Registered: 2013-09-20
Posts: 6

Re: Shutdown, Reboot, etc. not appearing on XBMC shutdown menu

Awesome! good catch!

Offline

Board footer

Powered by FluxBB