Skip to main content
greenhughes.com
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Main navigation

  • About
  • Contact Me
  • Elsewhere
  • Home
  • teleremix
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
User account menu
  • Log in

Breadcrumb

  1. Home

Add a shut down button to Boxee

By Liam Green-Hughes, 16 January, 2011
Tags/Keywords
howto
boxee
stb
set top box
revo
acer aspire revo
xml
remote
power

Boxee exit menu buttonsHaving a nettop like the Acer Aspire Revo running Ubuntu and Boxee is a great addition to the living room. One thing that I have been meaning to do for a while though is add a proper way to shut the unit down from the remote control when I have finished using it. Walking across the room and using the power button just doesn't seem to be appropriate for a set top box experience! I followed the instructions I found on the Boxee forum to add this feature, but instead of changing the Suspend button into a power off button I decided to add a new button to the log out dialogue. Fortunately this was quite a straightforward procedure.

To add the new button you need to edit a file named DialogButtonMenu.xml which is located under the directory: /opt/boxee/skin/boxee/720p, but before you do so make a back up in case things go wrong.

sudo nano /opt/boxee/skin/boxee/720p/DialogButtonMenu.xml

The file is of course in XML format so be careful to check that you have matching start and end tags. Towards the end of this file is a section that defines the list of items you see in the exit menu. It looks like this:





XBMC.ShutDown()

icons/icon_dialog_exit.png


XBMC.Logout()icons/icon_dialog_change_user.png



XBMC.Suspend()icons/icon_dialog_suspend.png


The new button can be added by inserting a new bit of xml below the last item entry which was for the Suspend button, but before the line that says . It will need to look like this:




XBMC.Powerdown()

icons/icon_dialog_suspend.png

You will notice that the other labels have a number whereas this one has text. The reason for this is that the numbers refer to text values that can be inserted depending on the language being used for the device. As I only need an English language front end on my Boxee system I just put some English text in, but you can change it to whatever makes sense to you.

One last job is to fix the positions of the items. If we use the menu now the new Switch off button will not fit in the dialogue box, it will fall out of the right hand side so we need to move all of the buttons to the left. To do this find the line in the DialogButtonMenu.xml file that says:



Below it is a line that will say:

96

Change this to a new value to make everything fit:

36

Save the file and you should now be able to power off the box using the new button.

References:

Shutdown on Exit, Boxee Forum: http://forums.boxee.tv/showthread.php?t=11947
List of built in functions, XBMC Wiki: http://wiki.xbmc.org/?title=List_of_Built_In_Functions

The content of this field is kept private and will not be shown publicly.
About text formats

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <img src alt height width> <q> <blockquote cite> <h1> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
  • 29871 views
greenhughes.com
Powered by Drupal