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.


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]


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.


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 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?


Leave a Comment

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