October 16, 201510 yr comment_11543 If you have been wondering on how to make Kodi work with Flirc and Harmony remotes to automatically suspend without you having to call up the shutdown menu or be stuck with the other methods that limit suspend commands to the home screen of Kodi this is how to do it with Kodi v15 at time of writing. Thx to GoodOmens for the tip though his info is a little out of date now so this is a guide on how to do it all. Kodi/OpenelecGo to system information and make a note of it's IP addressTurn on SSH in Kodi services Harmony SoftwareDevicesFlirc Media PlayerChange Device SettingsPower SettingsI want to turn this device off when not in useI press the same button for on and offAdd command and select PowerOff (if you have messed with poweroff before finding this guide choose the fix command and reset IR code for PowerOff)Sync remote Go to Flirc softwareSelect file clear configurationSelect full keyboardSelect Ctrl+F12 (as Kodi wont respond to this at least not yet)Go to devices on Harmony remote and select Flirc media player then hit the power off key to map it to Ctrl+F12 (requires harmony with display screen or map power off to physical button) From WindowsDownload WinSCPSelect SFTPInput Kodi IP addressUsername = root and password = openelecOnce logged in select options\preferences\panels and tick the box for “show hidden files”Browse to /storage/.kodi/userdata/keymaps folderCreate a file called remote.xmlCopy and paste in the text below, then save (old floppy disk icon)<keymap> <global> <keyboard> <f12 mod="ctrl">XBMC.Suspend()</f12> </keyboard> </global> </keymap> Exit WinSCP Kodi/OpenelecReboot the system (required for new xml to take effect) Now if all goes well when using Harmony activities the system should go into suspend.If you've been wondering why not just use the stock Flirc/Kodi power off command combined with the Kodi settings\power saving changing it from shutdown to suspend, this doesn't work. If you go this path the system will always wake up when using any activity and not go into suspend, the stock power off command is bugged somehow like it's being sent multiple times. Edited October 16, 201510 yr by crutonbn Report
October 27, 201510 yr comment_11576 I'm running Kodi 15.1 with Windows 10. I have the "wake" function from suspend working with a Harmony One. I want to try your solution for a "suspend" function but I am a real beginner. What is "SSH" and where under Services do I find it; I looked for something like it but didn't recognize anything it might be.Sorry for what is probably a silly question.. Report
October 28, 201510 yr comment_11583 I'm running Kodi 15.1 with Windows 10. I have the "wake" function from suspend working with a Harmony One. I want to try your solution for a "suspend" function but I am a real beginner. What is "SSH" and where under Services do I find it; I looked for something like it but didn't recognize anything it might be.Sorry for what is probably a silly question..http://lmgtfy.com/?q=what+is+ssh%3Fand to atone for thathttp://kodi.wiki/view/Settings/Services Report
October 29, 201510 yr comment_11585 Thanks, Wayneg. I have decided toi abandon my use of the FLIRC-USB and go with the SE version modified to use in my case per this thread: http://forum.flirc.tv/index.php?/topic/2008-modifying-flirc-se-for-other-case/ Report
May 4, 201610 yr comment_12309 This has been a very helpful thread - many thanks to CRUTONBN for taking the time to document this. This would all work very well if it didn't make the assumption that the MyHarmony default settings for the FLIRC/Kodi device included the keyboard "ctrl-F12" for the PowerOff command. Several other threads which I read also indicated that this was now part of the MyHarmony profile for the device. But it was not the case for me... and I have a few grayer hairs because I didn't validate this first.I followed the directions to a T, but selecting PowerOff always resulted in the Kodi shutdown menu. I'll spare the reader the variety of things I tried and get to the punchline: MyHarmony put the keyboard "s" for the PowerOff command. I finally validated this by watching the keyboard in the FLIRC software while I pressed the PowerOff button, yep, "s" lit up.The quick resolution was to the change the line:<f12 mod="ctrl">XBMC.Suspend()</f12>To:<s>XBMC.Suspend()</s>Bliss at last! Now if I could just figure out why my Harmony activity of turning on the TV, Amp and Kodi takes SO long before it exits and I can use the buttons... But that's for another forum.Edit: OK, using the s key wasn't ideal since whenever I needed to enter text in Kodi (search function etc) if I hit s it would suspend. lol I remapped the PowerOff command on the remote in FLIRC to ctrl-F12, so I'm in line with the "standard"Cheers!Robert Edited May 4, 201610 yr by Phydeaux Additional Information Report
May 24, 20179 yr comment_13738 Harmony Software Devices Flirc Media Player Change Device Settings Power Settings This is as far as I got - there is no Power Settings in MyHarmony software. Am I missing something? Report
December 6, 20178 yr comment_14615 I followed the OP and got this working in suspending and waking up my Windows 10 box with Kodi. But during the suspend time, any Harmony hub activity or even without Harmony hub activities, the Kodi box will wake up... I thought by making an xml file as described by the OP, this won't happen. I am running the latest Krypton release of Kodi. Any ideas? Thank you. Report
December 7, 20178 yr comment_14618 Now both wake and suspend stopped working... LOL This has been a very frustrating and confusing experience so far, to say the least. I think for now, I'll just turn the HTPC on and off manually... Thinking about trying the SE though. Edited December 7, 20178 yr by DE2000 Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.