prevent manual hibernate during recording (1 Viewer)

mrkaras

Portal Pro
December 9, 2006
541
7
Home Country
Currently if i press the power button on my remote the system hibernates, the problem is that if it is recording, the system will still hibernate, restart and miss part of the recording as a result. Is there a way I can setup my remote (iMon, can be set to send any keystroke or various power management functions) so that if it is recording you will jest get told off and the system will refuse to turn off?

the screen tends to get turned off (or even just be blank from the 1 minute timeout) so people don't see (or ignore) the recording icon.

MediaPortal Version: 0.2.2.0 - svn
MediaPortal Skin: BlueTwo Wide
Windows Version: windows 2003 sp1
CPU Type: core 2 duo 2.1
HDD: western digital 400Gb
Memory: 1Gb
Motherboard: Asus P5L-VM 1394
Motherboard Chipset:
Motherboard Bios:
Video Card: Asus Gforce 6200 LE
Video Card Driver:
Sound Card: onboard (ASUS)
Sound Card AC3:
Sound Card Driver:
1. TV Card: kworld
1. TV Card Type: DVB-T (PCI)
1. TV Card Driver: 4.0.108.4
2. TV Card: ASUS My cinema U3000 Mini
2. TV Card Type: DVB-T (USB)
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling: CPU fan / passive on other
Power Supply:
Remote:
TV: Samsung LA37R7
TV - HTPC Connection: VGA, (not DVI->HDMI, mis-led by samsung)
 

Paranoid Delusion

Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Currently if i press the power button on my remote the system hibernates

    Would be better to map the power button to MP's shutdown command, that way MP can intercept and say its recording and do you want to continue.

    At the moment the power button goes straight to windows shutdown and bypasses all running programs.
     

    mrkaras

    Portal Pro
    December 9, 2006
    541
    7
    Home Country
    Yes, that is what I want to do, but is there a key for the mediaportal hibernate? I don't want to have to go through the mediaportal shutdown menu normally (a popup menu yes/no is fine if it is busy). do I have to set one up? is there an ACTION_Hibernate in the key setup? I didn't see one.

    also, if the yes/no dialogue is up will it still turn off via the power scheduler?
     

    Bavarian

    Retired Team Member
  • Premium Supporter
  • April 4, 2005
    698
    167
    Germany, Bayern
    Home Country
    Germany Germany
    MP is stopping the hibernate process (when a recording is running), as long as it is not a force hibernation call.

    Bavarian
     

    mrkaras

    Portal Pro
    December 9, 2006
    541
    7
    Home Country
    I'm not sure what you mean, do you mean that if I select hibernate from the start menu while mediaportal is recording it will stop the hibernation? my remote is setup to start hibernation but not using mediaportal and it does not care if it is recording or not, it just hibernates anyway.

    what is the keystroke/where do i find the keystroke/ how do I setup a keystroke to directly call hibernate via mediaportal?
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,995
    29
    Melbourne
    when anything in windows calls for a shutdown/hibernate/etc, there are two (main) possibilities. The first is a shutdown call that waits for other aopps to shut down. This allows apps like MSWord to ask if you want to save your work first, etc. This also allows MP to over-ride a shutdown if a recording is in progress.

    The second method is a forced shutdown. This type shuts the PC down and doesn't let apps over-ride.

    Your MS remote should do the first method unless something has changed that.
     

    mrkaras

    Portal Pro
    December 9, 2006
    541
    7
    Home Country
    My remote is one that uses the iMon software, not a MS MCE remote. mine is supplied with my case.
    the iMon software assigned only keys or a set list of power management functions
    I do not have control over whether that power hibernate is forced or not

    is there any way to call hibernate via mediaportal in a single or combined (ctrl+... etc) keystroke?

    I would rather not run extra software just for the hibernation, but I can if that is the only way.
     

    mrkaras

    Portal Pro
    December 9, 2006
    541
    7
    Home Country
    shutdown.exe only does shutdown/restart/logoff not hibernate although the command line way to call hibernate might work (any idea what that command is?)
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    C:\WINDOWS\system32\rundll32.exe powrprof.dll,SetSuspendState Hibernate
     

    Users who are viewing this thread

    Top Bottom