+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast
Results 1 to 10 of 40

Thread: Windows 7 RC restart/shutdown + sleep/hibernate FIX

  1. #1
    Join Date
    Jun 2009
    Posts
    20

    Wink Windows 7 RC restart/shutdown + sleep/hibernate FIX

    Major update on September 7th:
    Delta owners: M-Audio has released a public BETA driver for Windows 7! See here.
    I tested this BETA driver (6.0.2) and can confirm that there is no BSOD issues when sleeping/shutting down! That's great!
    So the fix is not needed anymore!

    NB: If you have sometimes no sound after resuming from sleep, this is certainly because you've made a driver update from the old Vista driver.
    -> This is solved by a fresh install of Windows 7 with the new driver.
    -> Else, continue to use the fix.
    Some more info can be found in this thread.


    ***Side notes:
    This fix works with Delta series for sure as only Delta owners have reported 100% success, not sure about other card series.
    Firewire and USB cards owners, you have to power down the card before attempting to sleep the computer if the fix doesn't work for you.
    I made a V2 of the fix for testing with FW/USB cards if V1 is not working. Or take a look at sheppy99's solution here.
    Hi guys,

    As a new Windows 7 user, I was searching these forums for the solution to the restart/shutdown problem that affects our cards (and I find the solution here, thanks xdurus77!) and also for the sleep/hibernate BSOD issue ("DRIVER_POWER_STATE_FAILURE (9f)") in both Windows Vista and Windows 7, but I figured out it is driver-related bug known but still unsolved! Damn it!

    Fortunately, the issue can be solved when manually disabling the soundcard under device manager. Driver is indeed the cause.

    Plus, I couldn't believe this: M-Audio tech support guys claiming their audio cards don't support the such *standard* system features that are sleep and hibernate, which exist for years! It's quoted from several threads talking about the problem on this forum:
    M-Audio devices do not support sleep or hibernate modes on your computer. You will want to disable these modes. (...)
    We don't support sleep/hibernate/suspend mode. (...)
    My question: Is there a way to automate disabling the device before going into sleep mode?

    So... I am very glad to give myself an answer!

    I've found a workaround for the sleep/hibernate issue that affects our M-Audio cards under Windows 7.
    This fix is actually the same as the restart/shutdown fix but I had to find a way to implement it on sleep/hibernate.
    Some research but no knowledge in scripting/programming , I actually managed to find a way to execute the batch file just before sleep engages by using a script that infinitely loops to "catch" the suspend state.

    Current limitations: I have problems making this work when "Hybrid sleep" mode is disabled. I don't know if this is due to script timing (standard sleep occurs within 2 seconds while hybrid sleep needs more time like 10-15 seconds to write memory on disk before, letting time for the audio services to be stopped? ). Also when hybrid sleep is disabled, direct hibernate isn't fixed, because it does not go to suspend before.

    So make sure "Hybrid sleep" mode is enabled under Power settings (see below)!


    I made a ZIP file that contains both the shutdown/restart fix and the sleep/hibernate fix. So things are rather simple to do now!

    If you still haven't installed drivers or managed to install them correctly, please go directly to this post.

    Enough words, here are the fixes.

    0) First, be sure that you have administrative rights before modifying system settings -> Disable UAC and run commands as administrator.

    To be sure you have a full administrator account on your computer, with full privileges: Windows shall never ask for your confirmation (it behaves like in XP).

    1) Download the ZIP containing the fix I made:
    Original fix working with Delta cards
    New fix for others cards (*might* work with Firewire/USB cards)
    The ZIP contains 4 files:
    -AudioFix.reg -> A registry entry to load the script upon each startup
    -AudioFix.vbs -> The looping script
    -AudioStart.bat -> The batch file for starting audio services
    -AudioStop.bat -> The batch file for stopping audio services
    2) Unzip those file to the root of your C drive (C:\). This path should be this one as I designed the script this way /!\

    3) The restart/shutdown fix

    (It is re-write of great xdurus77 fix, designed for the files I provide, I've also moved the batch execution to shutdown time rather than logoff time as it's absolutely not necessary there)
    You can skip this step if you have already installed the fix.
    a) Open "Run..." from start menu and enter "gpedit.msc" (without quotes) and hit "OK".

    b) Now navigate in the right panel of the policy window "Computer Configuration" > "Windows Settings" > "Scripts (Startup/Shutdown)" > Double-click on "Shutdown".

    c) In the properties window that popups, click "Add" then browse to the root of your C drive (C:\), choose "AudioStop.bat" by double clicking on it.

    d) Hit "OK" and close the policy window.
    4) The sleep/hibernate fix
    a) Using the explorer, browse to the root of your C drive (C:\). You should see the 4 unzipped files here.

    b) Double-click on "AudioFix.reg" to add the registry key that will launch the looping script at startup.

    c) Hit "Yes" to validate the key. Hit "OK" to close the open dialog.

    d) Open "Run..." from start menu and enter "powercfg -h on" (without quotes) and hit "OK". This will ensure that "Hybrid sleep" mode is available.

    e) Enable "Hybrid sleep" by following these steps:
    - Start the Power Options Control Panel applet (Start -> Control Panel -> System and security -> Power Settings)
    - Select the "Change plan settings" option for the current (selected) power plan
    - On the settings dialog box, click the "Change advanced power settings"
    - Scroll down to the Sleep option, expand "Allow hybrid sleep" and select "On"
    - Hit "OK" and close open dialog boxes
    f) Restart your computer!
    Now you're done and you can enjoy using your computer under Windows 7 together with your M-Audio card, shutting it down, putting it to sleep, saving on time and your electrical bill without issues (I mean: as it should be!).


    M-Audio tech guys: now your cards support sleep and hibernating. Was that a pain?

    Tested on my computer under Windows 7 RC 7100 with a M-Audio Delta Audiophile 2496.

    Hope it'll works for you (it should).
    This should also work under Vista, too!
    Please report any success/issue!


    Cheers and big thanks to xdurus77 for the original fix!
    See ya.
    Alex.
    Last edited by donpipo; 10-30-2009 at 02:37 AM. Reason: Major update because of new drivers



  2. #2
    Join Date
    Jan 2009
    Posts
    6

    Default

    Thanks for working on this issue donpipo, but it's not working for me. I'm still getting the bsod on sleep. Upon checking the provided .reg file, it looks like there's an error "c:\\audiofix.vbs" instead of "c:\" ?? Even after making the adjustment in msconfig, I still have bsod. Are there any other options that I need to enable/disable in the power management settings?

    Here are my sleep settings:

    Sleep After = Never
    Allow hybrid sleep = On
    Hibernate after = Never
    Allow wake timers = Enable

    My "Sleep After" setting is currently never as the maudio bug is keeping me from keeping this on, so when I do my .vbs testing I'm manually hitting "sleep" from the start menu instead of letting it go in automatically. I just thought of this while writing the post, so I'll try it out now with a 1 minute timer and post again. I just don't want to keep crashing my system ...

    Thanks,

    kk

  3. #3
    Join Date
    Jan 2009
    Posts
    6

    Default

    Didn't work, as expected.... Any ideas donpipo?

    Thanks...

  4. #4
    Join Date
    Jun 2009
    Posts
    20

    Default

    Sorry for the late reply, I haven't received the reply notification!
    Hmmm, don't know why it doesn't work... Your sleep settings are just like mine and it works flawlessly since the first day I made the fix at home.
    As I said, turning on "Hybrid sleep" is a workaround to slow time taken to sleep, letting the batch disabling the audio services. Is your system too fast?

    Can you provide your full system specs including your audio card?
    You can also check the script is effectively running by opening the task manager and looking for "wscript" process.

    Another lead maybe: check your standby parameters in BIOS: you should set them to "S3" (not "S1" or" Auto").

    Thanks for your report BTW

    Edit: And the syntax in the REG file is correct!
    Last edited by donpipo; 07-13-2009 at 12:41 AM.



  5. #5
    Join Date
    Jan 2009
    Posts
    6

    Default

    No need for apologies, I can always work around it until we're supplied with something from maudio (fingers crossed).

    Anyway, my system is pretty quick, but I did notice that there was a change in sleep time (took about 20 seconds) compared to how it was before enabling hybrid sleep. I didn't check to see if the script is running, but I'll probably do that when I have a chance tonight or tomorrow.

    Yes, I'm running S3. Specs are:

    Gigabyte EP45-UD3R
    Q6600 (2.4ghz quad)
    Windows 7 32-bit (7100)
    4GB ram (kingston hyperx)
    WD Black HD (640GB)

  6. #6
    Join Date
    Jul 2009
    Posts
    2

    Default

    First off Don, thank you for the work building up these files. The fix works great for shut down and start up. I cannot get computer to come out of sleep however. At first, hybrid mode was not avail. I had to enable it by changing the bios like you mentioned (S3). I can manually disable the driver and put it in and out of sleep, so I know the driver is the culprit, however, the script doesn't seem to trigger the loop file. I'm not sure how to check if my the script is running, other than the fact that it's listed on the program manager. Once again, thanks for your help...look forward to any updates.

    M-Audio Delta 44
    Intel Core 2 Duo E4600 (2.4 GHz)
    2.0 GB Ram
    Windows 7 32-bit

  7. #7
    Join Date
    Jun 2009
    Posts
    20

    Default

    This is weird...
    Should I be the only one having its own fix working?
    Anyway, thanks guys for your reports.
    I'll be investigating, though I can't certify I will find what is preventing the fix to work on your computers

    Quote Originally Posted by congoose View Post
    I can manually disable the driver and put it in and out of sleep, so I know the driver is the culprit, however, the script doesn't seem to trigger the loop file. I'm not sure how to check if my the script is running, other than the fact that it's listed on the program manager.
    Try this:
    Be sure that the driver is enabled then manually run "AudioStop.bat" before putting your computer to sleep.
    If it doesn't come back from sleep after (let it sleep for several minutes), then there is something wrong with the script.

    You could try upgrading your motherboard to latest BIOS, this kind of problem can also be solved by a BIOS upgrade (my motherboard had different (not M-Audio drivers-related) sleep/suspend issue which have been corrected in the BIOS).

    Also, be sure you have a full administrator account on your computer, with full privileges: Windows shall never ask for your confirmation (it behaves like in XP).

    BTW, my specs are:

    M-Audio Delta Audiophile 2496
    Asus P5W DH Deluxe
    Intel Core 2 Quad Q6600
    4GB Crucial Ballistix RAM
    Western Digital Caviar Blue WD6400AAKS 640GB
    Seagate Barracuda 500GB ST3500320AS (two in RAID1)
    Windows 7 RC 7100 64-bit

    Users of this fix, please report success (if any )!
    Last edited by donpipo; 07-16-2009 at 09:02 AM.



  8. #8

    Default Anyway to get shutdown fix for xp home???

    Hi, I posted this in the original thread but as it has been split into 2 I'll put it here in case someone see it. Thx!

    "Thanks for this fix but does anyone know how to accomplish the same with XP Home 32 bit? My computer locks up at shutdown and (as usual) M-AUdio is the problem but XP Home doesn't have the facility to use a shutdown script in the manner above.

    Is there an alternative way to accomplish the same thing?

    Many thanks in advance?

    (I suppose M-Audio will be telling us that they don't support "optional features" such as shutdown and doing bugger all as per normal so I was hoping someone here who has suffered the same problem may have a solution)."

  9. #9
    Join Date
    Jul 2009
    Posts
    2

    Talking

    Quote Originally Posted by donpipo View Post
    :

    Also, be sure you have a full administrator account on your computer, with full privileges: Windows shall never ask for your confirmation (it behaves like in XP).


    Users of this fix, please report success (if any )!
    That must have been it! I turned UAC all the way off and now it's sleeping and waking with no problems. Thank you for the reply!

    M-Audio guys, get on it!!

    -Marcos

  10. #10
    Join Date
    Jun 2009
    Posts
    20

    Default

    Thanks for your report



+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast

Similar Threads

  1. Sleep and Hibernate issue audiophile & 7 x64
    By avgust maiowka in forum Windows 7 FireWire Series BETA Driver
    Replies: 12
    Last Post: 09-04-2009, 02:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts