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
Watch / Listen Media
MP 1 Hangs on resume fro sleep (TV)
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: 1275592" data-attributes="member: 141969"><p>Me too! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /> <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>I occasionally do this. As well as using MP, I also sometimes watch live TV using the TV's tuner <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":eek:" title="Eek! :eek:" loading="lazy" data-shortname=":eek:" />. I switch it off by pressing the OFF button on my Logitech Harmony 650 remote, which switches everything off. But if I am actually using MP to watch TV, the OFF button does not stop live TV playing, with the result that my system never hibernates (it runs continuously).</p><p></p><p>To avoid my HTPC running all night, I have set up another AutoHotKey script to use with my hibernation controller. When invoked, this script sends the keystrokes for STOP, HOME, and EXIT (ALT_F4) (the script contains a bit more than this):</p><ul> <li data-xf-list-type="ul">STOP stops playback of live TV, video, radio, music.</li> <li data-xf-list-type="ul">HOME displays the "Home" panel (required because there is a config setting that prevents sleep or hibernation if not on the "Home" panel).</li> <li data-xf-list-type="ul">EXIT (ALT_F4) either exits MP, or displays the exit pop-up (depends on your remote control config). If your remote control config displays the "Exit" pop-up in response to ALT_F4, you need to send ENTER too, in order to select the first item on the pop-up.</li> </ul><p>The problem now is how to cause this script to be invoked when the system is about to sleep or hibernate. I use my weird hibernation controller, but in the absence of that, you might be able to use PowerScheduler to invoke a progam when the system is about to sleep or hibernate. It is the <strong>Run command on system power state change</strong> on the "Advanced" tab in PowerScheduler config (you need to be in expert mode).</p><p></p><p>The catch here is that the command needs to have admin authority, and AutoHotKey scripts do not have admin authority. The way that I <em>think</em> that you can get around this is to use "Task Scheduler" to set up a "run on request" task, and create a shortcut on the desktop to invoke it. The task runs the AutoHotKey script, and the reason this works (I think) is that you can select a setting on the task properties panel that allows the task to run with admin authority. So:</p><ul> <li data-xf-list-type="ul">When the system is about to sleep or hibernate, PowerScheduler invokes the desktop shortcut.</li> <li data-xf-list-type="ul">The desktop shortcut starts the task.</li> <li data-xf-list-type="ul">The task runs the AutoHotKey script with admin authority.</li> <li data-xf-list-type="ul">The script sends the commands to stop playback and close MP.</li> </ul><p>Well... it might work <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite12" alt="o_O" title="Er... what? o_O" loading="lazy" data-shortname="o_O" /> (I have not actually tried it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />).</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1275592, member: 141969"] Me too! (y) :) I occasionally do this. As well as using MP, I also sometimes watch live TV using the TV's tuner :eek:. I switch it off by pressing the OFF button on my Logitech Harmony 650 remote, which switches everything off. But if I am actually using MP to watch TV, the OFF button does not stop live TV playing, with the result that my system never hibernates (it runs continuously). To avoid my HTPC running all night, I have set up another AutoHotKey script to use with my hibernation controller. When invoked, this script sends the keystrokes for STOP, HOME, and EXIT (ALT_F4) (the script contains a bit more than this): [LIST] [*]STOP stops playback of live TV, video, radio, music. [*]HOME displays the "Home" panel (required because there is a config setting that prevents sleep or hibernation if not on the "Home" panel). [*]EXIT (ALT_F4) either exits MP, or displays the exit pop-up (depends on your remote control config). If your remote control config displays the "Exit" pop-up in response to ALT_F4, you need to send ENTER too, in order to select the first item on the pop-up. [/LIST] The problem now is how to cause this script to be invoked when the system is about to sleep or hibernate. I use my weird hibernation controller, but in the absence of that, you might be able to use PowerScheduler to invoke a progam when the system is about to sleep or hibernate. It is the [b]Run command on system power state change[/b] on the "Advanced" tab in PowerScheduler config (you need to be in expert mode). The catch here is that the command needs to have admin authority, and AutoHotKey scripts do not have admin authority. The way that I [i]think[/i] that you can get around this is to use "Task Scheduler" to set up a "run on request" task, and create a shortcut on the desktop to invoke it. The task runs the AutoHotKey script, and the reason this works (I think) is that you can select a setting on the task properties panel that allows the task to run with admin authority. So: [LIST] [*]When the system is about to sleep or hibernate, PowerScheduler invokes the desktop shortcut. [*]The desktop shortcut starts the task. [*]The task runs the AutoHotKey script with admin authority. [*]The script sends the commands to stop playback and close MP. [/LIST] Well... it might work o_O (I have not actually tried it :D). -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
MP 1 Hangs on resume fro sleep (TV)
Contact us
RSS
Top
Bottom