Posts: 7,648
Joined: Jun 2011
Reputation:
287
do you know on which version this worked last for you?
Posts: 7,648
Joined: Jun 2011
Reputation:
287
2014-10-16, 07:58
(This post was last modified: 2014-10-16, 07:59 by wsnipex.)
can you try "Powerdown" as action? also pastebin a full debug.log
Posts: 6
Joined: Mar 2011
Reputation:
0
Hello!
I do have similar problem, so I'll post here and hope it resolves for both of us.
I have LXDE on Ubuntu 14.04. I had XBMC (last version of it) until today, when I upgraded to Kodi.
On XBMC I had custom keyboard.xml with <F4 mod="alt">XBMC.ShutDown()</F4> defined and working perfectly with my remote.
After updating to Kodi I customized new keyboard.xml with <F4 mod="alt">XBMC.ShutDown()</F4>, so it should work. I also tried Powerdown etc.
BUT command EXITS program instead power down. After few tests with custom keypresses for my remote I realized, that problem is that alt+F4 (remote power button keypress) works faster than Kodi recognizes it as shut down command.
It worked fine before updating so I don't understand why the problem is now. What else could I try?
Thank you for your help.
p.s.: I want power button to shut down and power up my computer, so any suggestions about remaping remote are not a solution. Only alt+F4 powers up my IR. And will not use other button to shut down. If we don't find the problem I will just downgrade and use XBMC again.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
See
Settings/System#Power_saving (wiki)
Makes sure
Shutdown function Defined that "Shutdown" is set to actually shutdown, not suspend, minimize, or quit.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
In that case make sure that your user running kodi is allowed to perform these actions.
Confirm that your user belongs t correct user groups and that customactions.pkla exist
On a terminal type
Code:
sudo apt-get install pastebinit -y
id <username> | pastebinit
pastebinit < /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
You should get something like
http://paste.ubuntu.com/10800805/
and
http://paste.ubuntu.com/10800827/
If you dont then add the user to those groups and see
https://gist.github.com/uNiversaI/4930c59beed92071f6c5
Else no idea as it works here just fine.
Posts: 6
Joined: Mar 2011
Reputation:
0
My system does shutdown, if I map button PLAY on remote (or any other button) to do it. So there is no problem with my button configuration and these actions are alowed to perform.
Problem is POWER button on my remote, using keypress combination alt+F4. So command alt+F4 closes KODI before KODI realises, that alt+F4 means actually to shutdown computer.
It worked on previous XBMC version with no problem. Same remote, same key configuration. It shutdown system with alt+F4. IDK why is this problem with KODI. Nothing else is changed on system. I did run update and dist-upgrade though, but It should not be problem, I have done it many times before, when still using XBMC.
Is there any way to force alt+F4 to delay a bit, so KODI would read it's command?
Posts: 7,648
Joined: Jun 2011
Reputation:
287
thats because your window manager/desktop intercepts the alt-f4 press. Either remove that keyboard shortcut or start kodi in standalone mode(kodi desktop session).