Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
what you need to do is open up DialogButtonMenu.xml (in Project Mayhem 3) find the shutdown button which is started at <control type="button" id="3112"> and change this
<onclick>XBMC.ShutDown()</onclick>
to this
<onclick>System.Exec(shutdown -h now)</onclick>
Of course you will have to be a root user for this to work or make shutdown work so non root people can
Posts: 127
Joined: Oct 2004
Reputation:
0
Duduke
Senior Member
Posts: 127
same thing, i'm still getting the keymap.xml error...
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
Works fine for me :\ maybe you edited it wrong because its got nothing to do with keymap.xml
Posts: 4,997
Joined: May 2004
Reputation:
12
Did you put the command in quotes like yuvalt's example? ie system.exec("command") ?
Also, shutdown is usually in /sbin/ and requires root access to execute.
Posts: 967
Joined: Nov 2006
Reputation:
27
You can add the XBMC user to sudoers with visudo to execute /sbin/shutdown with the NOPASSWD flag. That'd work.
Posts: 967
Joined: Nov 2006
Reputation:
27
Well if you put the pound sign in front of it you commented it out, which won't work. Beyond that if it works from the commandline it's a XBMC issue not a linux one, and I'm not qualified to help further.
Also you allowed all users to run shutdown which may not be a great idea. But I guess most people don't have multiple users so it wouldn't much matter.
Posts: 113
Joined: Nov 2003
Reputation:
0
Try "/usr/bin/gnome-power-cmd.sh shutdown" This should do the trick as normal user. You can also use "suspend" as argument...
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
rrambo no effect at all might because because you edited the wrong file there is a file in Pal and Pal16x9 (in PM3 skin ) and you need to edit the one that you use