Mapping the power button to suspend
#1
I have a Ortek remote and when I press the power button it doesn't do anything. Ideally I would like to map this to suspend but I'm not having much luck researching this and I can't even find my keymap.xml or remote.xml as it is rumoured to now be called.

It's actually my Harmony 700 I'm trying to get working but I'm guessing if I get the Ortek remote working then this will too!

I'm using the latest stable build of XBMCBuntu. Can anyone help me please?

Thanks
tooner
Reply
#2
I have the same problem.
I've build a new System, with a build-in IR-Receiver in my case.
My OS: Lubuntu 12.04
MOBO: Asrock E350M1/USB3
CASE+IR: MS-TECH MC-20-ITX

When I press the Power-Button while I'm in/on my Desktop, the Shutdown-Windows appears, but when I press the button in XBMC, nothing happens.
Any ideas what the reason could be?



PS: Good to know for those who want to build an new HTPC: with this case+ir you can powerUP your htpc with the remote.
Reply
#3
worth a try:

<Sleep>ActivateWindow(shutdownmenu)</Sleep>
or
<Power>ActivateWindow(shutdownmenu)</Power>
Reply
#4
If the Ortek remote is a VRC-1100, you can try adding the following entry to your ~/.xbmc/userdata/keymaps/keyboard.xml in the global/keyboard section:
Code:
<alt-numpadfive>XBMC.ActivateWindow(shutdownmenu)</alt-numpadfive>
Reply
#5
Once you get the remote sending the correct signal, you can set in the GUI what action to take when the power button is pressed.

Settings>System>Power Saving --> Shutdown/minimise/suspend/hibernate/Quit
ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD (now updated to Nvidia Shield Pro (P2897)
Reply
#6
(2012-06-09, 18:14)wsnipex Wrote: worth a try:

<Sleep>ActivateWindow(shutdownmenu)</Sleep>
or
<Power>ActivateWindow(shutdownmenu)</Power>

OK, I've created a file in "~/.xbmc/userdata/" called keymap.xml
and wrote this in it:
Quote:<keymap>
<global>
<Power>ActivateWindow(shutdownmenu)</Power>
</global>
</keymap>

but nothing changed, still no response to the power-button. Sad

PS: I've tried "<Sleep>" instead of "<Power>" too.

EDIT: I've managed it Smile


the "keymap.xml"-file has to be in this directory:
"~/xbmc/userdata/keymaps/"
and this is its content:

Quote:<keymap>
<global>
<keyboard>
<key id='61952'>ActivateWindow(shutdownmenu)</key>
</keyboard>
</global>
<ShutdownMenu>
<keyboard>
<key id='61952'>back</key>
</keyboard>
</ShutdownMenu>
</keymap>
Reply
#7
Any luck?

I'm thinking of buying these as @Pyromaniac did:

Mobo: Asrock E350M1/USB3
Case: MS-TECH MC-20-ITX

But if I can't shutdown or power on the device it doesn't matter which mobo I buy as I would buy another remote solution. Bluetooth etc.
Reply
#8
Could be that your xbmc user account does not have the rights to use suspend
Reply

Logout Mark Read Team Forum Stats Members Help
Mapping the power button to suspend0