

Result = "You\'re on the correct video card. If (on_ac_power and card = '9400') or (not on_ac_power and card = '9600'): If (display_status = 'spdisplays_not_connected'): Sp = Popen(, stdout=PIPE).communicate()ĭisplay_status = pl Will gfxcardstatus 2.4.4i work as it does now in Catalina I hate the heat of having that 650m. Result = "You\'re on the correct video card." Result = 'You\'re on the wrong video card.' On_ac_power = (structured_power_data = 'TRUE') Structured_power_data = Plist.parse_xml(data) If (display_status.eql?('spdisplays_not_connected')) thenĭata = `system_profiler SPPowerDataType -xml` Structured_video_data = Plist.parse_xml(data)ĭisplay_status = structured_video_data Ruby: (requires the "Plist" gem to be installed) # video_profiler.rbĭata = `system_profiler SPDisplaysDataType -xml` Placing it here for anyone who ever finds this via Google.

but this order seems consistent on my machine. they rely on specific data appearing in a particular order in the system_profile plist. I have no idea how fragile these scripts are.
#GFXCARDSTATUS 2012 RETINA INSTALL#
As activegfx is a ruby gem, install it via gem install activegfx.

Instead of going through the list of open processes in Activity Monitor, this tool spits out the currently used graphics chip by querying the systemprofiler. Using the basic idea presented in the other two answers, I wrote the following scripts to determine if you are using the "correct" video card (Correct = "on battery and using the 9400" or "on ac adapter and using the 9600") activegfx shows the graphics card currently in use by your macOS system. Scripts are below to parse the resulting plist and display the result. I should be able to script something that figures it out from there.ĮDIT2: The key is getting the output from system_profier in the xml format (using the -xml switch). using the solutions posted above, I am able to run sierra, but the computer wont wake up from sleep and the only way to get it to boot up is to force shut down and boot into single user mode and run the shell script again that disables the dedicated GPU.
#GFXCARDSTATUS 2012 RETINA PRO#
This review only relates to MacBook Pro machines which have dual display adapters fitted. BUT will show "display not connected" for the display attached to the inactive card. With gfxCardStatus, you can see when your dual-video-card-equipped MacBook Pro uses each GPU. The MBP shows information for BOTH video cards, regardless of which is active. I'm also capable of writing my own tool if anyone happens to know where in the API I would look for this information.ĮDIT: The answers below concerning system_profiler are definitely a step in the right direction. I could use that as part of my GeekTool setup. As far as I can tell, you have to open the Energy Saver System Preference to see which one is active.ĭoes anyone know of a tool that will display (in the menu bar, on the desktop, whatever) my current video card status? Especially good would be a terminal command that would report which one was active. This can end up with a dead battery while on an airplane pretty quickly. The problem is, I often forget which one I am running. The brightness control should be working through function keys now:įix brightness control not working in Ubuntu 13.There is a big difference in both performance and power consumption between the two video cards in a MacBook Pro. sudo gedit /usr/share/X11//nfĪdd the following lines to this file: Section "Device" You can use any editor be it a terminal one or graphical. Open a terminal and create the following configuration file, if it does not exist: sudo touch /usr/share/X11//nf If your graphics card is Intel, you can proceed with the fix below.įix brightness control issue with Intel card in Ubuntu and Linux Mint: Another way to find out the graphics card would be to go in System Settings->Details->Graphics. An indicator that the graphics card in use is Intel. Run the command below in terminal to know what video card is used for the backlight/brightness: ls /sys/class/backlight/Īs you can see, the output for me is dell_backlight and intel_backlight. Find video/graphics card in Ubuntu and Linux Mint
