When I turn on my macbook pro late 2011 I want it to use the integrated video card(not discrete one).
Is there some sort of setting I can set or a driver I can install or some bios setting to achieve this?
You cannot force the OS X to use the integrated GPU if you have dual GPU (integrated + descrete). By default OS X will use descrete GPU when booting.
Anyway, if you were a victim of infamous GPU failure for MacBook Pros in Late 2011, Apple was fixing it for free. That program ended at the beginning of 2017.
Yes, you can achieve that modifying certain EFI variable. I answered this other question with the full procedure to permanently disable discrete graphics card on startup.
Your machine should boot with the integrated card by default.
Under System Preferences > Energy Saver > make sure "Automatic Graphics Switching" or (depending on your OSX) "Better Battery Life" is checked.
Download and install gfxCardStatus. Reboot your machine. Before you do anything else at login, from its drop down menu, check the PID causing the system to switch to the discrete card. Once you isolate the process, you can isolate the application causing it to do so using Activity Monitor.