Add Shutdown option to XBMC in Raspbian

When I installed XBMC in Raspbian I noticed that the shutdown menu only had the “Exit” button, which returned me to the ussual terminal login screen. I want my parents to use this media center so I have to make it as simple as possible.

exit

After some time searching on the net I found the solution. You have to become root (using su, note that if you haven’t yet changed roots password you can do it by running sudo passwd) and create a file named /var/lib/polkit-1/localauthority/50-local.d/xbmc.pkla with those options (in my case I had to change the xbmc user to pi because thats the one that runs XBMC):

[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

shutdown

If you want to change or remove some of the menu options in the shutdown window just edit the /usr/share/xbmc/addons/skin.confluence/720p/DialogButtonMenu.xml file. There you can change the <visible> option to “no” if you want to hide a button for example.

Ref: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=127003
http://wiki.xbmc.org/index.php?title=HOW-TO:Suspend_and_wake_in_Ubuntu

You might also like

Fix no video problem in XBMC
Although is recommended using a dedicated media center distribution (raspbmc, openelec or xbian for example)...

Adding custom action to a keycode in XBMC
There are some USB IR remotes out there specifically made to be used in media centers. I bought one of...

Install script for XBMC in Raspbian
# Install XBMC sudo sh -c "echo 'deb http://archive.mene.za.net/raspbian wheezy contrib' > /etc/apt/sources.list.d/mene.list" sudo...

Boost low volume in XBMC
AC3 encoded movies usually have very low volume. To fix this edit the /usr/share/xbmc/system/advancedsettings.xml...

  1. Anderson Castro

    Worked for me. Thanks. I had to change xbmc user to pi too. But it does not apear hibernate and suspend. Any thoughts?

    Regards.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.