home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
logitech harmony touch general hid
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1172484" data-attributes="member: 141969"><p>Could you post the values that work? I am really curious to see what they are! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p></p><p>When I was investigating the Ortek/Hama remote, I wrote a keyboard test program that used the Windows programming API function "ReadConsoleInput()" to read the button presses. It worked for all buttons except one -- the "Power" button. When I later wrote an AutoHotKey script to trap the Ortek/Hama buttons, that too was unable to trap the "Power" button. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>When you press the "Power" button to shutdown, hibernate, or sleep the system, you want that instruction <strong>passed to every piece of software that is running in the system</strong>. So I believe that Windows intercepts the "Power" button, and converts it into a Shutdown/Hibernate/Sleep message that is broadcast to everything in the system. I think that this is why my keyboard test program never sees the "Power" button, why AutoHotKey cannot trap the "Power" button, and why the MediaPortal "Centarea HID" won't see the "Power" button. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>Does any of this matter? Hopefully it doesn't. I think that your problem probably lies with the settings in the Windows power plan that is active on your system. Some points:</p><p></p><p>(1) Windows uses the term "power button" to mean the power button on the system unit, and the term "sleep button" to mean the power button on the remote control. All WMC-compatible remotes actually send the signal for the sleep button when you press the power button on the remote. So there is some scope for confusion here! Let us use the term "sleep button" to refer to the power button on the remote.</p><p></p><p>(2) Decide what action you want the sleep button to perform. The choices are: shutdown, hibernate, or sleep. If you want to wake the HTPC using the remote, <strong>sleep</strong> is the easiest to get working. (I use hibernation, but it is considerably more complicated to get working.) I will assume that you will use sleep.</p><p></p><p>(3) In the power plan, you can choose what action is to be performed by the power button, and by the sleep button. Either button can be allocated any of the choices (shutdown, hibernate, or sleep). So I would suggest that you want:</p><p>power button (on system unit) = shutdown</p><p>sleep button (on remote control) = sleep</p><p></p><p>(4) When you press the sleep button, the system will now interpret this as "sleep" and broadcast a sleep message to everything in the system. But if TV Server is in the middle of performing a recording, you don't want the system to sleep. To stop the system sleeping, you need to enable "Away mode". This also is defined in the power plan. With away mode enabled, the system will continue running until the recording is finished, and then it will sleep.</p><p></p><p>(5) [USER=74879]@HTPCSourcer[/USER] and [USER=140174]@Stéphane Lenclud[/USER] mentioned that the "Off" button on the Harmony is in fact a macro. But if the HTPC is not needed for the next activity, the Harmony should still be sending the signal for the sleep button to the HTPC (which Windows will interpret as "sleep").</p><p></p><p>(6) If you modify the power plan to use the settings described above, and the "Off" button on the Harmony still does not work, it is probably because it is transmitting an unusual code (i.e. not the normal code for sleep). If so, you need to modify your Harmony config, <strong>but not the Harmony's "Off" button</strong> (which is the macro). What you need to modify is the <strong>power button for the HTPC device</strong> in the Harmony config. If you have a dedicated HTPC remote that works, you could use the Harmony software to learn the "Power" button from the dedicated HTPC remote code. If you don't have a dedicated HTPC remote that works, I don't know what to suggest. It probably means going for the "nuclear option" and using IRSS (which I have never used).</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1172484, member: 141969"] Could you post the values that work? I am really curious to see what they are! :) When I was investigating the Ortek/Hama remote, I wrote a keyboard test program that used the Windows programming API function "ReadConsoleInput()" to read the button presses. It worked for all buttons except one -- the "Power" button. When I later wrote an AutoHotKey script to trap the Ortek/Hama buttons, that too was unable to trap the "Power" button. :( When you press the "Power" button to shutdown, hibernate, or sleep the system, you want that instruction [b]passed to every piece of software that is running in the system[/b]. So I believe that Windows intercepts the "Power" button, and converts it into a Shutdown/Hibernate/Sleep message that is broadcast to everything in the system. I think that this is why my keyboard test program never sees the "Power" button, why AutoHotKey cannot trap the "Power" button, and why the MediaPortal "Centarea HID" won't see the "Power" button. :( Does any of this matter? Hopefully it doesn't. I think that your problem probably lies with the settings in the Windows power plan that is active on your system. Some points: (1) Windows uses the term "power button" to mean the power button on the system unit, and the term "sleep button" to mean the power button on the remote control. All WMC-compatible remotes actually send the signal for the sleep button when you press the power button on the remote. So there is some scope for confusion here! Let us use the term "sleep button" to refer to the power button on the remote. (2) Decide what action you want the sleep button to perform. The choices are: shutdown, hibernate, or sleep. If you want to wake the HTPC using the remote, [b]sleep[/b] is the easiest to get working. (I use hibernation, but it is considerably more complicated to get working.) I will assume that you will use sleep. (3) In the power plan, you can choose what action is to be performed by the power button, and by the sleep button. Either button can be allocated any of the choices (shutdown, hibernate, or sleep). So I would suggest that you want: power button (on system unit) = shutdown sleep button (on remote control) = sleep (4) When you press the sleep button, the system will now interpret this as "sleep" and broadcast a sleep message to everything in the system. But if TV Server is in the middle of performing a recording, you don't want the system to sleep. To stop the system sleeping, you need to enable "Away mode". This also is defined in the power plan. With away mode enabled, the system will continue running until the recording is finished, and then it will sleep. (5) [USER=74879]@HTPCSourcer[/USER] and [USER=140174]@Stéphane Lenclud[/USER] mentioned that the "Off" button on the Harmony is in fact a macro. But if the HTPC is not needed for the next activity, the Harmony should still be sending the signal for the sleep button to the HTPC (which Windows will interpret as "sleep"). (6) If you modify the power plan to use the settings described above, and the "Off" button on the Harmony still does not work, it is probably because it is transmitting an unusual code (i.e. not the normal code for sleep). If so, you need to modify your Harmony config, [b]but not the Harmony's "Off" button[/b] (which is the macro). What you need to modify is the [b]power button for the HTPC device[/b] in the Harmony config. If you have a dedicated HTPC remote that works, you could use the Harmony software to learn the "Power" button from the dedicated HTPC remote code. If you don't have a dedicated HTPC remote that works, I don't know what to suggest. It probably means going for the "nuclear option" and using IRSS (which I have never used). -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
logitech harmony touch general hid
Contact us
RSS
Top
Bottom