Turn off the monitor with the remote control (2 Viewers)

rtv

Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    nothing changes....any other idea?
    You're running a current svn build and do not see this option?
     

    mogi_dk

    Portal Member
    March 24, 2006
    24
    0
    Vildbjerg
    Home Country
    Denmark Denmark
    I was referencing to:
    "turn off monitor when blanking screen"
    I found this option "turn off monitor when blanking screen" but the only way to turn monitor back on again is to move my mouse or use the keyboard - the remote cannot turn the monitor back on again.

    Is this a bug ?
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,995
    29
    Melbourne
    If you use the up or down arrow buttons on the MCE this turns th monitor back on. Any arrow keys should work.

    As for the blanking of the monitor, MP power saving takes care of all that, but disables monitor turning off when any full screen video is playing (including visualisations). If you want the monitor to blank, simply stay out of full screen viz?
     

    NLS

    Portal Pro
    April 26, 2006
    922
    0
    50
    Home Country
    Greece Greece
    I agree with mogi. My remote ALSO doesn't turn the monitor back on using any key (using a generic X10 remote).

    (so I stopped using this mode)
     

    mogi_dk

    Portal Member
    March 24, 2006
    24
    0
    Vildbjerg
    Home Country
    Denmark Denmark
    If you use the up or down arrow buttons on the MCE this turns th monitor back on. Any arrow keys should work.

    As for the blanking of the monitor, MP power saving takes care of all that, but disables monitor turning off when any full screen video is playing (including visualisations). If you want the monitor to blank, simply stay out of full screen viz?
    Hi NLS

    I have the Hauppauge remote that comes with the Nova DVB-T PCI board and this remote cannot turn the monitor back on again. So I guess the implementation right now only works properly with the MCE Remote or mouse/keyboard.
     

    mogi_dk

    Portal Member
    March 24, 2006
    24
    0
    Vildbjerg
    Home Country
    Denmark Denmark
    HI again

    I just had a look at the source. It seems that the MONITOR_ON constant is defined wrongly (set to 0x0001) this should have been -1 (decimal).

    Source snip:
    const uint MONITOR_ON = 0x0001;
    const uint MONITOR_OFF = 0x0002;

    0x0001 is actually standby and 0x0002 is power off.
    MONITOR_ON should have been -1; (but converted to uint)

    I seem to have some trouble compiling MP and I don't think I have the possibility to commit source changes.

    Hopefully someone else will see this and do it.
    I will try this my self asap.

    Best wishes,
    Mads
     

    mogi_dk

    Portal Member
    March 24, 2006
    24
    0
    Vildbjerg
    Home Country
    Denmark Denmark
    Hi again

    Just change the source in GraphicContext.cs to
    const uint SC_MONITORPOWER = 0xF170;
    const uint WM_SYSCOMMAND = 0x0112;
    const int MONITOR_ON = -1;
    const int MONITOR_OFF = 2;

    [DllImport("user32.dll")]
    static extern bool SendMessage(IntPtr hWnd, uint Msg, uint wParam, int lParam);

    And it works flawlessly!

    How do I get this into the mainstream ?

    /Mads
     

    Users who are viewing this thread

    Top Bottom