Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a preference to start in Integrated Only mode #150

Open
millimoose opened this issue Feb 1, 2014 · 66 comments
Open

Add a preference to start in Integrated Only mode #150

millimoose opened this issue Feb 1, 2014 · 66 comments
Labels
Milestone

Comments

@millimoose
Copy link

There should be a preference in the GUI to have the app automatically switch to Integrated Only mode when it starts up.

My use case is an older Macbook Pro with a failing discrete GPU. This causes random hard crashes – this means my computer is only usable with Integrated Only on all the time. (And not even Parallels really needs the GPU for productivity app use, but it's fired up anyway.) If I forget to turn it on first thing after the computer logs in I sometimes end up with the system crashing in the middle of work, or scrambling to close all dependencies to switch before whatever part of the GPU is broken is used. Having this as a persistent option would help me a lot.

@pajp
Copy link

pajp commented Feb 1, 2014

Hi,

I actually implemented a "sticky" mode for gfxCardStatus that makes it remember your last option and tries to keep it that way, also across restarts. It currently more than a quick hack to fill my own needs and I haven't had time to clean it up or do a pull request, especially as my code may overlap a bit that of issue #107. If you want to build it yourself, the code is available at branch 'sticky-mode' in my fork of gfxCardStatus: https://github.com/pajp/gfxCardStatus/commits/sticky-mode

@mdac356
Copy link

mdac356 commented Mar 3, 2014

Hi.
I complied gfxCardStatus for my computer that contained the fix for #103 and starts in Integrated mode (the command line options are disabled). It works fine on my rMBP 2012 (finally).

Am I allowed to post the executable on here? On another website? I've never used these online version control apps (git) and don't want to mess anything up. I'll check here on here over the next couple of days to see what I am supposed to do; won't have much time to check after that (today is 3/3/2014).

@jsmith54
Copy link

@mdac356 , please could you forward me the executable?

@mdac356
Copy link

mdac356 commented Mar 23, 2014

Sure..see attached. I'm on Mountain lion 10.8.5 on a mid 2012 mac pro retina.

-----Original Message-----
From: jsmith54 Sent: Mar 21, 2014 3:10 AM
To: codykrieger/gfxCardStatus Cc: mdac356 Subject: Re: [gfxCardStatus] [Feature] Add a preference to start in Integrated Only mode (#150)

@mdac356 , please could you forward me the executable?

—Reply to this email directly or view it on GitHub.

@jsmith54
Copy link

@mdac356 , thanks for replying! However, I do not see the attachment in your email (while checking my inbox). Did you perhaps forget to attach?

@mdac356
Copy link

mdac356 commented Mar 25, 2014

body{font-size:10pt;font-family:arial,sans-serif;background-color:#ffffff;color:black;}p{margin:0px;}hmm.....it was attached. Perhaps it was stripped for some reason. I renamed the file. it should be attached to this email. -----Original Message-----
From: jsmith54 Sent: Mar 25, 2014 11:59 AM
To: codykrieger/gfxCardStatus Cc: mdac356 Subject: Re: [gfxCardStatus] [Feature] Add a preference to start in Integrated Only mode (#150)

@mdac356 , thanks for replying! However, I do not see the attachment in your email. Did you perhaps forget to attach?

—Reply to this email directly or view it on GitHub.

@codykrieger
Copy link
Owner

I don't think GitHub Issues supports email attachments.

Sent from my iPhone

On Mar 25, 2014, at 10:34 AM, mdac356 [email protected] wrote:

body{font-size:10pt;font-family:arial,sans-serif;background-color:#ffffff;color:black;}p{margin:0px;}hmm.....it was attached. Perhaps it was stripped for some reason. I renamed the file. it should be attached to this email. -----Original Message-----
From: jsmith54 Sent: Mar 25, 2014 11:59 AM
To: codykrieger/gfxCardStatus Cc: mdac356 Subject: Re: [gfxCardStatus] [Feature] Add a preference to start in Integrated Only mode (#150)

@mdac356 , thanks for replying! However, I do not see the attachment in your email. Did you perhaps forget to attach?

—Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

@jsmith54
Copy link

Not sure what the rules are. If you could email me directly at jsmith54(at)gmx.net, or upload to mega, that might just work.

@k0mario
Copy link

k0mario commented Apr 2, 2014

Send it to me too, please, because few days ago my Geforce 650m broke and now if im lucky to get MBP boot up i can only use intel, so i have to click Integrated Only every time. [email protected]

@robertwclark
Copy link

Can you send it to me as well. [email protected]

@jsmith54
Copy link

Been testing it for a few weeks now, and works as intended (still crashes if I start iPhoto though - but that's another problem altogether). Thanks so much @codykrieger - really appreciate the help given.

@codykrieger
Copy link
Owner

You bet. :)

@rwaldura
Copy link

rwaldura commented May 1, 2014

I already commented in #103, here I go nonetheless:

My Retina Mac (A1398) has gone bad: after a few minutes it crashes with "GPU Panic". If I turn off the GPU (switch to "integrated only" using this tool), it's fine.
PHEW THANK YOU CODY FOR SAVING ME $$$$ in repairs!

At startup, it's a race between me and the GPU, trying to switch it off. It would help greatly if the switch could be made permanent. Thanks!

OS 10.8.5, gfxCardStatus 2.3

@pacware
Copy link

pacware commented May 13, 2014

@mdac356 I also have a 2011 MBP with failing GPU, so I need gfxCardStatus to run automatically in "Integrated Only" mode on startup. Can you please email the file to [email protected]? Thanks!

@pacware
Copy link

pacware commented May 15, 2014

Haven't heard from mdac356. Does anyone else have the recompiled executable that lets you start up automatically in Integrated Only mode? If you, could you please send it to me at [email protected]? Thanks!

@qnxor
Copy link

qnxor commented May 15, 2014

@pacware: I compiled a version from the latest sources which includes the --integrated, --discrete and --dynamic command line options which you could use to startup in a given state. The binary (with license) is included in my small MacOH project: https://github.com/qnxor/macoh

Note that there is a documented bug which many times causes gfxCardStatus to not switch the GPU as instructed. My workaround for that was to make 2 attempts, a few seconds apart. You can use my macoh.sh script for that (see the project description).

@mdac356
Copy link

mdac356 commented May 17, 2014

Hi Everyone. I uploaded gfxcardstatus with #103 fix and autostart in integrated mode to megafileupload; the release number of this gfxcardstatus is 2.3.1. You must first install gfxcardstatus 2.3 using cody's installer, then manually overwrite cody's gfxcardstatus 2.3 app with the 2.3.1 version.

Download link is: http://www.megafileupload.com/en/file/531073/gfxCardStatus-2-3-1-app-zip.html

@pacware
Copy link

pacware commented May 17, 2014

@qnxor @mdac356 Thanks for posting recompiled versions!

@mdac356 I copied your version over my existing version 2.3 and then restarted my system a couple of times, and my system always freezes after I log in and around the time that gfxCardStatus is supposed to start up. Does your version default to using the discrete GPU? My MBP is one of those with the failing discrete GPU, so I suspect gfxCardStatus might be trying to use the discrete GPU when it starts up. Version 2.3 didn't do that.

@mmconsult
Copy link

Is the version 2-3-1 working for a macbook with GPU trouble? Can you send it to my email adres please or give a dropbox link to download

@codykrieger codykrieger changed the title [Feature] Add a preference to start in Integrated Only mode Add a preference to start in Integrated Only mode Aug 6, 2014
@slimypi
Copy link

slimypi commented Aug 7, 2014

Can I please have the executable for the version with the sticky-mode? I had trouble compiling it on my machine. you can send it to [email protected].
I've just today began having discrete GPU issues on a early 2011 MBP, I Think it's the beginning of the end...
I am very thankful to you for making my machine work (thanks to your app).

Thank you.

@mjroeleveld
Copy link

I wrote a script which defaults gfxCardStatus to 'integrated' at login. All thanks to @qnxor whose script I used to make this. For those interested: https://github.com/exofes/switchGPU

@cmawhorter
Copy link

I feel bad for @codykrieger. Dude just wanted to make a nice util and has been caught up in a firestorm. Someone throw a bountysource.com on this?

@LighScan
Copy link

LighScan commented Oct 1, 2014

I would definitely like such a preference as well, but for the discrete one instead of the integrated. :-)

@jjb
Copy link

jjb commented Oct 17, 2014

I have the same use case as @millimoose and would love this feature. however...

Is there a risk that gfxCardStatus will start after other apps which use discreet graphics start, and so in the process of forcing back to integrated we'll get the problem of Discreet not being powered down?

@codykrieger codykrieger added this to the v3.0 milestone Dec 27, 2014
@ah-
Copy link

ah- commented Dec 30, 2014

Hi, could somebody with a 2011 MBP (broken GPU optional) please test something? See here: https://github.com/ah-/gmux-scripts/issues/1#issuecomment-68378770

"sudo nvram gpu-power-prefs=%01%00%00%00" in single user mode might work as well.

Edit:
This should do the roughly the same thing that GfxCardStatus does, namely switching to Intel only, but could work even with broken GPUs.
After setting the variable reboot once and check if your MBP uses only the Intel GPU.

@codykrieger
Copy link
Owner

@ah- Also see #184. :) (There's nothing new in that issue, but that's where I was planning on tracking investigation of disabling GPU switching via EFI vars.)

@kwamayze
Copy link

My 2011 MPB can boot but when I use gfxcardstatus to switch to integrated, it hangs. I think gfxCardStatus is switching to discrete first before switching to integrated only

@kwamayze
Copy link

Experiencing issue on 2011 MBP? Try this 1. Shut down the computer.
2. Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
3. On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
4. Release all the keys and the power button at the same time.
5. Press the power button to turn on the computer.
The twist is in step 4. I held the keys in step 3. for about 5 seconds, then released all EXCEPT the power button, holding this for an additional 5 seconds before releasing it. Finally, step 5. The computer booted with a normal screen, which I hadn't seen in 2 months, BUT, the fans were going full blast, no led on the MagSafe, no battery in the menu bar, Mac not going to sleep when closing the top, and probably other stuff that I missed.
I rebooted several times from the menu, without problem and with a normal screen, but still with the fans blasting and all…
Finally, I shut down and did a NORMAL SMC reset, the Apple standard way, and lo and behold… a normal startup, normal screen, fans, MagSafe, everything!
I have since rebooted countless times (deliberately) and even done an update to Yosemite (I was on Mavericks), and the machine has been running perfectly ! I have run videos and generally tried to stress it… it hasn't budged!
It's now Wednesday, 4AM all is well :-)
Fingers crossed then !!
Credit to https://discussions.apple.com/people/Charles%20Houghton-Webb

@japush
Copy link

japush commented Jan 15, 2015

Hey Charles,
Thanks so much, I have not tried it yet, but I want to ask you, did you try
this with AMD/ATI kexts removed from /system/library/extensions / ? I could
only boot my MBP with as such, with them removed, but I want to try your
method tomorrow.. Also, if you have the kexts there intact, are you using
the discrete GPU? Are you using gfxCardStatus to keep to Integrated
graphics, etc?
Thanks again!

On Thu, Jan 15, 2015 at 4:07 AM, kwamayze [email protected] wrote:

Experiencing issue on 2011 MBP? Try this 1. Shut down the computer.
2. Plug in the MagSafe power adapter to a power source, connecting it to
the Mac if its not already connected.
3. On the built-in keyboard, press the (left side) Shift-Control-Option
keys and the power button at the same time.
4. Release all the keys and the power button at the same time.
5. Press the power button to turn on the computer.
The twist is in step 4. I held the keys in step 3. for about 5 seconds,
then released all EXCEPT the power button, holding this for an additional 5
seconds before releasing it. Finally, step 5. The computer booted with a
normal screen, which I hadn't seen in 2 months, BUT, the fans were going
full blast, no led on the MagSafe, no battery in the menu bar, Mac not
going to sleep when closing the top, and probably other stuff that I missed.
I rebooted several times from the menu, without problem and with a normal
screen, but still with the fans blasting and all…
Finally, I shut down and did a NORMAL SMC reset, the Apple standard way,
and lo and behold… a normal startup, normal screen, fans, MagSafe,
everything!
I have since rebooted countless times (deliberately) and even done an
update to Yosemite (I was on Mavericks), and the machine has been running
perfectly ! I have run videos and generally tried to stress it… it hasn't
budged!
It's now Wednesday, 4AM all is well :-)
Fingers crossed then !!
Credit to https://discussions.apple.com/people/Charles%20Houghton-Webb


Reply to this email directly or view it on GitHub
#150 (comment)
.

@kwamayze
Copy link

No. I tried with kexts intact. At first it woukd boot and would hang when i tried switching to integrated knly woth gfxCardStatus then later I couldn't even have a succesful boot. They MBP would hang and restart or I had to manually shut it down. This method has enabled me to boot auccessfully and switched to integrated with gfxCardStatus. The discrete now works but I don't want problems. It did something to the machine. It appears to even work faster

@codykrieger
Copy link
Owner

@kwamayze That doesn't make much sense to me. If you have a 2011 MacBook Pro, you have a hardware problem. I suspect it's just a coincidence that it's working for you right now.

@kwamayze
Copy link

I was skeptical and I know it's a hardware problem but that fan spinning so loud and the LED on the magsafe off were new. I had been stuck the whole day and tried reset PRAM and SMC so many times but this worked on first try

@japush
Copy link

japush commented Jan 16, 2015

@kwamayze, you found a semi-goldmine, but I am afraid Codykrieger was right
about the coincidence. I did what you suggested, and the interesting thing
is that I, indeed for the first time in a long time, was able to start my
2011 macbook with the broken discrete GPU with all the kexts in their
normal place, with fans blasting and battery unavailable, Integrated GPU
active. But when I rebooted and reset SMC in the normal way to get the
fans quiet and battery back, unfortunately I ended up where I have already
been, with white screen. I repeated that and confirmed that holding the
power button for 5 seconds after SMC reset allows this emergency sort of
boot, which might be very useful to some folks.
Once again, Codykrieger, it would be so so so awesome if you could figure a
way to get the regular boot without initializing the discrete GPU..

On Thu, Jan 15, 2015 at 2:12 PM, kwamayze [email protected] wrote:

I was skeptical and I know it's a hardware problem but that fan spinning
so loud and the LED on the magsafe off were new. I had been stuck the whole
day and tried reset PRAM and SMC so many times but this worked on first try


Reply to this email directly or view it on GitHub
#150 (comment)
.

@FRUITSAPbe
Copy link

i have the same problem and im waiting for apple to do a free repair also. im from belgium btw

@kbandura
Copy link

I tried the "sudo nvram gpu-power-prefs=%01%00%00%00" in single user mode on a 2011 mbp, and indeed "nvram -p" does not show it after reboot, but booting normally just hung at a grey screen for me.

@ericpardee
Copy link

Sure most people are aware but just in case you were not, MacBook Pro Repair Extension Program for Video Issues:
http://www.apple.com/support/macbookpro-videoissues/

@rdpoor
Copy link

rdpoor commented Mar 18, 2015

I just want to reinforce the O.P.'s request for "stay in integrated mode" as a workaround for a failing GPU. And yes, I will be sending my MPB to Apple soon for the MacBook Pro Repair Extension Program fix. In the meantime, it would be nice if I could keep this machine running for more than 45 minutes without hitting a GPU panic.

@Meligy
Copy link

Meligy commented Mar 19, 2015

I personally had this by getting the old version which had "on battery" and "pluggedin" options, and set both to integrated. This way my laptop seems to stay in integrated all the time.

(I regret getting a model with discrete at all as I don't need it and it just helps heat/less-battery-life, but I wanted max CPU/SSD and they had one built with discrete and ready to ship).

@ChristianAziz
Copy link

Almost a year later, but want to give thanks to @joachimroeleveld for your contribution! I just installed it and can now boot and restart my MBP without having to remember to manually set my graphics card selection. Thank you!

@mjroeleveld
Copy link

@ChristianAziz great to hear that!

@akontsevich
Copy link

Also have Nvidia bug with Mac Book Mid 2010, can't fix logic board at Apple, so also like to disable discrete GPU on boot cause my machine often crashes on login screen, can't work at all now. There is some keys which switch video on boot however not sure which one. Yes, it connected with EFI somehow.

@codykrieger
Copy link
Owner

If your machine crashes at the login screen then gfxCardStatus couldn't help you even if it did have this preference. It doesn't start until after you've already logged in.

On Jul 10, 2015, at 10:37 PM, Aleksey [email protected] wrote:

Also have Nvidia bug with Mac Book Mid 2010, can't fix logic board at Apple, so also like to disable discrete GPU on boot cause my machine often crashes on login screen, can't work at all now. There is some keys which switch video on boot however not sure which one. Yes, it connected with EFI somehow.


Reply to this email directly or view it on GitHub.

@buddhaauthor
Copy link

Also have Nvidia bug with Mac Book Mid 2010, can't fix logic board at Apple, so also like to disable discrete GPU on boot cause my machine often crashes on login screen, can't work at all now. There is some keys which switch video on boot however not sure which one. Yes, it connected with EFI somehow.

If your machine crashes at the login screen then gfxCardStatus couldn't help you even if it did have this preference. It doesn't start until after you've already logged in.

Sadly, Cody is of course correct about the startup sequence. But why can’t Apple fix your logic board? Or do you mean can’t fix it for free?

@akontsevich
Copy link

I had no access to Apple service in our region. However I found new 3rd party service here, they say they can change some chip - not expensive comparing to logic board completely, will try. I'm saying about startup service cause sometime mac switches to internal card during startup and there is possibility to make this programmatically, hope gfxCardStatus could do such service or whatever, sad if not.

@buddhaauthor
Copy link

Aleksey,

For reasons of (I think, but others would know better) bad programming, the startup routines require using the dedicated graphic processor (even though starting up a computer hardly needs graphics power at all afaik). So, despite the work of Cody and others, no one has been able to find a workaround for a bad gpu in these computers. And this bricks otherwise perfectly usable machines.

Your 3rd party service, if they are Apple authorized, should be able to do the whole logic board replacement and bill it to Apple. This is exactly what I did here in Los Angeles. I first had the gnu reballed, but that only lasted a few months. When the problem returned the replacement program had begun and the 3rd party shop replaced my whole logic board. You should investigate this, plus you should verify that your computer qualifies for the program. You can check whether you qualify here https://selfsolve.apple.com/agreementWarrantyDynamic.do. I’m worried your computer is too old, though, so the 3rd party solution might work, but my experience is that reballing is only a short term fix. Others have had better luck.

Which is what I wish you,

Franz

On 12 Jul, 2015, at 1:10 AM, Aleksey [email protected] wrote:

I had no access to Apple service in our region. However I found new 3rd party service here, they say they can do to change some chip - not expensive comparing to logic board completely, will try. I'm saying about startup service cause sometime mac switches to internal card during startup and there is possibility to make this programmaticaly, hope gfxCardStatus could do such service or whatever, sad if not.


Reply to this email directly or view it on GitHub #150 (comment).

@akontsevich
Copy link

Think they are not Apple authorized and 5 years passed, Apple say the program has ended, in 2012 they say the same, I think it was not possible to order logic board here (Ukraine).

Why reballing is short term? Hope it is not.

@buddhaauthor
Copy link

The program runs until February 2016, but perhaps your computer doesn’t qualify. My reballing probably didn’t fail. It was the gnu that failed, as it had been overheated for so long. The reballing helped but the real solution is to replace the gpu. If your local Ukrainian shop is replacing the gpu in addition to reballing, then that could be a permanent solution.

Franz

On 12 Jul, 2015, at 1:56 PM, Aleksey [email protected] wrote:

Think they are not Apple authorized and 5 years passed, Apple say the program has ended, in 2012 they say the same, I think it was not possible to order logic board here (Ukraine).

Why reballing is short term? Hope it is not.


Reply to this email directly or view it on GitHub #150 (comment).

@akontsevich
Copy link

I have mid 2010 MacBook Pro, They said program was ended: how did You find
that? Why to replace GPU, is it broken?

С Любовью,
Алексей.

Blessings,
Aleksey.

2015-07-13 2:36 GMT+03:00 buddhaauthor [email protected]:

The program runs until February 2016, but perhaps your computer doesn’t
qualify. My reballing probably didn’t fail. It was the gnu that failed, as
it had been overheated for so long. The reballing helped but the real
solution is to replace the gpu. If your local Ukrainian shop is replacing
the gpu in addition to reballing, then that could be a permanent solution.

Franz

On 12 Jul, 2015, at 1:56 PM, Aleksey [email protected] wrote:

Think they are not Apple authorized and 5 years passed, Apple say the
program has ended, in 2012 they say the same, I think it was not possible
to order logic board here (Ukraine).

Why reballing is short term? Hope it is not.


Reply to this email directly or view it on GitHub <
#150 (comment)
.


Reply to this email directly or view it on GitHub
#150 (comment)
.

@buddhaauthor
Copy link

Aleksey,

I was referring to the program for 2011 MBPs. I don’t know about a 2010 program. My understanding is that the GPU on the 2011s gets slowly ruined due to excessive heat and poor thermal paste application in the machines. Apple finally redesigned the logic board and agreed to replace the boards on the 2011 units (and 2012, I think). Perhaps the 2010 issues are different.

Franz

On 13 Jul, 2015, at 5:52 AM, Aleksey [email protected] wrote:

I have mid 2010 MacBook Pro, They said program was ended: how did You find
that? Why to replace GPU, is it broken?

С Любовью,
Алексей.

Blessings,
Aleksey.

2015-07-13 2:36 GMT+03:00 buddhaauthor [email protected]:

The program runs until February 2016, but perhaps your computer doesn’t
qualify. My reballing probably didn’t fail. It was the gnu that failed, as
it had been overheated for so long. The reballing helped but the real
solution is to replace the gpu. If your local Ukrainian shop is replacing
the gpu in addition to reballing, then that could be a permanent solution.

Franz

On 12 Jul, 2015, at 1:56 PM, Aleksey [email protected] wrote:

Think they are not Apple authorized and 5 years passed, Apple say the
program has ended, in 2012 they say the same, I think it was not possible
to order logic board here (Ukraine).

Why reballing is short term? Hope it is not.


Reply to this email directly or view it on GitHub <
#150 (comment)
.


Reply to this email directly or view it on GitHub
#150 (comment)
.


Reply to this email directly or view it on GitHub #150 (comment).

@akhats
Copy link

akhats commented Sep 5, 2015

Hi there,
I compiled the Sticky mode using Xcode but somehow the stick mode still does not work. Can someone email me the compiled application. Thanks. Please email to [email protected]

Repository owner locked and limited conversation to collaborators Sep 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests