[Optimus Script] Modify defaut GPU for an app

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by UniseV, Sep 27, 2017.

  1. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    Hello I'd like to build a script (in dos/batch if possible) in order to modify the defaut GPU for an app (sketchup as an example).

    This parameter is actually accessed by the Nvidia Control Panel and seems to could only be modified by nVidia API...

    Do you think it will be possible to modify it via DOS/batch using the rundll32.exe ?
     
  2. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    Little UP ?
    Maybe there is there a better place to ask this question ?
     
  3. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    Wouldn't the ap already use the Default GPU installed in a system or are you trying to force an ap to use a say discrete GPU instead of the inbuilt GPU on say an i7 CPU
     
  4. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    I'm trying force an app to use the discrete nVidia GPU instead of the inbuilt GPU on i7 cpu.

    Sketchup is a good example because it natively use the intergated intel GPU/CPU.

    I'd like to do a script to force Sketchup to use nVidia GPU on all my PCs..
     

  5. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    Hmm are you able to turn the iGPU off in BIOS and plug the monitor into the dGPU and just use the nVidia GPU for everything
     
  6. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    This is precisely what I don't want...
    ...I don't want to disable Optimus on all my PCs.
     
  7. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    Well unfortunately it's probably the only way to do what you are wanting to do unless there's a way to make a profile for it in the nVidia control panel I highly doubt there's any sort of script that'll do what your wanting

    Plus by turning off the iGPU your CPU will run a little cooler the 1060 shouldn't have any problem running what ever you throw at it
     
  8. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    I was hoping from nvcpl.dll...
     
  9. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    Cab I ask you question to which connector is your monitor plugged into a: Mobo back panel or b: the gtx1060
     
  10. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    It's a laptop, I'm using the laptop screen, and I'm talking about ALL my PCs.. not only the one with a 1060m.
     

  11. Agent-A01

    Agent-A01 Ancient Guru

    Messages:
    10,047
    Likes Received:
    152
    GPU:
    1080Ti H20
    1060m only uses a few watts at idle.
    Why wouldn't you want to disable intel IGP?
     
  12. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    Because I don't have only one PC with 1060m, I also have 660m, 710m, 675mx PCs..
     
  13. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    Ah well you didn't exactly state that in your 1st post so your basically using switchable graphics sorry but there's probably nothing you can do other than turn off the iGPU which you may not even be able to do at anyrate because Laptop
     
  14. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    To be very clear, here is the part I'd like to script :
     
  15. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    then can you not just do what was shown in that video and have your app use the nVidia GPU
     

  16. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    Because I want to make a script doing it automatically when I install packages...
    ...maybe I'm not posting at the right place, am I in dev section ?
     
  17. Athlonite

    Athlonite Maha Guru

    Messages:
    1,158
    Likes Received:
    1
    GPU:
    Nitro+RX580 8GB OC
    No you are not in the Dev section your in the nVidia GPU driver section where we do try to help people having problems with driver issues but apparently this is not the problem you seem to have perhaps try here with you problem may result in a positive outcome https://forums.guru3d.com/forums/programming-html.36/
     
  18. UniseV

    UniseV Member

    Messages:
    11
    Likes Received:
    0
    GPU:
    1060m - 6GB
    Thank you, I'll try there..
     

Share This Page