Result = "You\'re on the correct video card. If (on_ac_power and card = '9400') or (not on_ac_power and card = '9600'): When I boot it, the screen is black (no backlight: Apple logo doesnt light up). If (display_status = 'spdisplays_not_connected'): Since yesterday Ive been having major issues with my 15' Retina MacBook Pro (mid 2012 model). Sp = Popen(, stdout=PIPE).communicate()ĭisplay_status = pl 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. 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") 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). BUT will show "display not connected" for the display attached to the inactive card. 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. I’m running CUDA in my Mac Retina smoothly.There is a big difference in both performance and power consumption between the two video cards in a MacBook Pro. If anyone has run into this problem will you please share with me what you did to solve it? Thanks.Ĭonsidering you know how to install CUDA using Xcode 4.3, I think you have just to turn of “Automatic graphics switching” in “System Preferences”->“Energy Saver”. I have tried downloading CUDA 4.2 and 4.0 and both give the same result. Here is the error message that I get.ĬUDA Device Query (Runtime API) version (CUDART static linking) bash_profile file, I tried running the deviceQuery only to find that I can’t. Go to the Apple menu and choose System Preferences and then go to Energy control panel Uncheck the box next to Automatic graphics switching Note the text which states this may decrease battery life on the MacBook Pro When automatic switching is disabled, your computer will always use high-performance graphics. After installing all of these and making sure my path variables are correct in the. I installed XCode from the App Store and then installed the 3 different files from NVIDIA needed to work with CUDA (CUDA Device Driver, CUDA toolkit, and Computing SDK). I have an older mid-2009 MBP that has a working version of CUDA. symptoms include: the smart menu bar icon not switching when i change the card or when the ap. I am working with CUDA for my graduate degree and would like to be able to use it on my new laptop but for some reason I am unable to get it to work properly. when i have gfxCardStatus set to start on login, something seems to get stuck.
0 Comments
Leave a Reply. |