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
General Support
"Old" screen after resume from standby
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="gurkc006" data-source="post: 780465" data-attributes="member: 96371"><p><strong>AW: "Old" screen after resume from standby</strong></p><p></p><p>I just had a short look into the SVN source code repository and I found the file</p><p>Mediaportal.Application\MediaPortal.cs</p><p>and therein the function</p><p> private void OnSuspend(ref Message msg)</p><p>which is called when windows hibernates or goes into standbye mode...</p><p>Maybe after line "SaveLastActiveModule();" something like the following could do the trick:</p><p></p><p>if (File.Exists(GUIGraphicsContext.Skin + @"\suspend.xml"))</p><p> {</p><p> Log.Info("Main: OnSuspend - Switch to suspend screen");</p><p> GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOWS_SUSPEND);</p><p> }</p><p></p><p>Of course the constant WINDOWS_SUSPEND and the suspend.xml has to be created first.</p><p>I haven't compiled MP yet and I'm going to my holidays now, but perhaps someone of you out there has a compiling setup and could try this out? Would be GREAT <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Christian</p></blockquote><p></p>
[QUOTE="gurkc006, post: 780465, member: 96371"] [b]AW: "Old" screen after resume from standby[/b] I just had a short look into the SVN source code repository and I found the file Mediaportal.Application\MediaPortal.cs and therein the function private void OnSuspend(ref Message msg) which is called when windows hibernates or goes into standbye mode... Maybe after line "SaveLastActiveModule();" something like the following could do the trick: if (File.Exists(GUIGraphicsContext.Skin + @"\suspend.xml")) { Log.Info("Main: OnSuspend - Switch to suspend screen"); GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOWS_SUSPEND); } Of course the constant WINDOWS_SUSPEND and the suspend.xml has to be created first. I haven't compiled MP yet and I'm going to my holidays now, but perhaps someone of you out there has a compiling setup and could try this out? Would be GREAT :-) Christian [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
"Old" screen after resume from standby
Contact us
RSS
Top
Bottom