How to Automate Disable/Enable of Display Driver


  1. Posts : 80
    Windows 10
       #1

    How to Automate Disable/Enable of Display Driver


    I have a problem where, to get Windows to run smoothly, I have to disable the display driver, via Device Manager, on shutdown. This forces Windows to load the basic display driver on startup and allows me to re-enable the Intel driver once I get to the desktop. Without doing this the computer locks-up/freezes, requiring a hard shutdown. This happens regardless of whether Windows 10 or Windows 7 is installed.

    What I'd like to do is to automate the process so that the Intel driver is disabled on shutdown, or on startup. I just need to make sure that it always boots to the desktop using the basic driver. Manually disabling on shutdown works fine but occasionally i forget to go thru the procedure, resulting in a crippled system. Is there a script i could schedule to run at the opportune time to achieve this?
      My Computer


  2. Posts : 981
    W10 Pro v21H2
       #2

    You may need to verify that you have the proper Intel display driver installed for your system and OS version. Google Intel Driver and Support Assistant, a very useful diagnostic Intel offers to keep Intel hardware drivers up to date.
      My Computers


  3. Posts : 80
    Windows 10
    Thread Starter
       #3

    mta3006 said:
    You may need to verify that you have the proper Intel display driver installed for your system and OS version. Google Intel Driver and Support Assistant, a very useful diagnostic Intel offers to keep Intel hardware drivers up to date.
    I'm very familiar with Intel's Assistant. Appreciate your intent to help, but right now all I need is a way to automate the process as stated. Thanks again.
      My Computer


  4. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    I have not seen a ready-made solution.

    You could try a batch file using
    either
    devcon.exe [a downloadable MS utility]
    or
    NirSoft's DevManView [which can be run on the command line without having to work through its own interface]

    Both are discussed in this thread - Is there a Windows script to disable & enable the Intel GPU? I think the implication of this discussion is that you might well be able to both disable then re-enable automatically at, say, startup** rather than mess about with the interim Basic display driver at all.

    {** See also the discussions in Create Elevated App Shortcut without UAC Prompt & Open task manager - I found that I needed to use a Logon trigger, rather than Startup, in TS to run an elevated task at 'startup'.}

    Perhaps you might also be able to achieve the same end result by re-installing your display driver at each startup. You ought to be able to automate this as well but it would take a long time every time.

    Best of luck,
    Denis
      My Computer


  5. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #5

    Please update the specs in the "My Computer" section:

    System Specs - Fill in at Ten Forums | Tutorials
    In the left corner below in your post you find 'My System Specs'.
    After clicking it you can find a link a little below that says 'Update your System Spec', click on this link to get to the page where you can fill in your system specs.
    System Info - See Your System Specs - Windows 7 Help Forums

    Include PSU. cooler, case, peripherals and anything attached to the computer by wired or wireless (mouse, keyboard, headset, printer, xbox, USB wireless network card, etc.)


    In the left lower corner search type:

    msinfo32: save as NFO > zip > post a share link into the thread using one drive, drop box, or google drive
    dxdiag: save as txt > post a share link into the thread using one drive, drop box, or google drive
      My Computer


  6. Posts : 80
    Windows 10
    Thread Starter
       #6

    Try3 said:
    I have not seen a ready-made solution.

    You could try a batch file using
    either
    devcon.exe [a downloadable MS utility]
    or
    NirSoft's DevManView [which can be run on the command line without having to work through its own interface]

    Both are discussed in this thread - Is there a Windows script to disable & enable the Intel GPU? I think the implication of this discussion is that you might well be able to both disable then re-enable automatically at, say, startup** rather than mess about with the interim Basic display driver at all.

    {** See also the discussions in Create Elevated App Shortcut without UAC Prompt & Open task manager - I found that I needed to use a Logon trigger, rather than Startup, in TS to run an elevated task at 'startup'.}

    Perhaps you might also be able to achieve the same end result by re-installing your display driver at each startup. You ought to be able to automate this as well but it would take a long time every time.

    Best of luck,
    Denis
    A million thanks!! Tried the first one on the list and it worked like a charm ( with a few minor modifications and appropriately structured scheduled tasks)
    Treat yourself to a beer on me 😄
      My Computer


  7. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    If you get time later on & given that nobody else has posted a complete procedure, perhaps you could post your batch file[s] and some notes about how you set the TS task up.

    Unfortunately, I am very busy at the moment so I cannot treat myself to a beer on you. I hope you are not too disappointed. The beer will have to wait until Tuesday evening when I stumble out of the Eurostar in Brussels and then stumble into a bar for severial Maes [a local Pils].

    Denis
      My Computer


  8. Posts : 80
    Windows 10
    Thread Starter
       #8

    I basically just followed the directions given in the link you provided, with slight modifications to address my particular need. Here’s what I did:

    1. Download Nirsoft’s devmanview.exe, and copy it to the system32 folder

    2. Create two batch files, one to disable the other to enable.

    Specimen of disable script:

    @echo off
    echo *** Stopping GPU ***
    devmanview.exe /disable "DeviceName"
    echo *** Done ***
    close

    With the name of my display adapter substituted of course for “DeviceName”

    3. I named one script “StopGPU” and the other “StartGPU”. Because, to me, it’s cleaner and more efficient to disable the adapter at system shutdown, I used GP to handle “StopGPU” – GP\Computer Configuration\Windows Settings\Scripts(Startup/Shutdown) – and TS, with a few minutes delay after logon, to handle “StartGPU”

    It’s a simple setup that works flawlessly and does exactly what I needed doing
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:45.
Find Us




Windows 10 Forums