Having 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:
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:
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:
Change this to a new value to make everything fit:
Save the file and you should now be able to power off the box using the new button.
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