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

gpu-switch -i causes computer to just freeze on osx 10.12.4 #39

Open
adityaravishankar opened this issue Apr 21, 2017 · 11 comments
Open

Comments

@adityaravishankar
Copy link

adityaravishankar commented Apr 21, 2017

Just got the latest code off github and ran the build script.

Freshly booted laptop with gfxCardStatus running in the background.

Running ./gpu-switch -i caused the computer to freeze completely.

Any advice would be helpful.

Model: MacBookPro8,2
OS: macOS Sierra 10.12.4

Happy to share/add further debugging/logging information as needed, to help with fixing this issue.

@0xbb
Copy link
Owner

0xbb commented Apr 26, 2017

I don't have access to a MacBook anymore and I can't help you with this issue.
But I am not sure if gpu-switch should be run together with gfxCardStatus.

@rythmkraze
Copy link

Same issue here. Running ./gpu-switch -i freezes the computer. No gfxCardStatus running in the background. But gfxCardStatus also exhibits the same behaviour, that is switching to "integrated only" freezes the computer.

Model Identifier: MacBookPro8,2
OS: macOS Sierra 10.12.4 (16E195)

@ah-
Copy link

ah- commented Apr 28, 2017

I suspect this is due to changes Apple made in 10.12.4. switcher/gfxCardStatus call a private API, and the one to switch GPU in particular hasn't been in use by the official energy saver preference pane for a long time now (if it ever was, don't quite remember).

I guess this call is just broken now and there's not a whole lot we can do about it. Someone with a lot of time would need to go and look if there's a new alternative way to switch to internal only mode.

@rythmkraze
Copy link

Thanks @ah- for the quick response. Looks like I am out of luck then :(

@codedmart
Copy link

Not sure if my issue is related. I have been using gpu-switch for a while just fine, but noticed since the upgrading to 10.12.4 I can't get my integrated card to work in Linux. I see it as powered off when I cat vgaswitcheroo, but if I try to switch to it I just get a blank screen now. When I run ./gpu-switch -i my system doesn't freeze though.

@codedmart
Copy link

@0xbb Anyway I can help with getting this to work with Sierra 10.12.4?

@codedmart
Copy link

@ah- Any way I can help with progress on this?

@ah-
Copy link

ah- commented Jun 30, 2017

@codedmart could you try getting some log output from dmesg during/after the switch to a blank screen? Either by ssh-ing in or switching back blindly?
Ideally with drm.debug=0x06 set to get a bit more verbose output if there's nothing clear in dmesg otherwise.

And so gpu-switch -i still works for you (on linux)? Does it actually boot up with the integrated card?

@codedmart
Copy link

@ah- I don't get any errors in OSX when running gpu-switch -i, and when I boot into linux I do see the integrated card, but I can't get it to work anymore (just the blank screen). It use to work fine before 10.12.4. I will try to dump some output from dmesg.

@ah-
Copy link

ah- commented Jun 30, 2017

Has your linux kernel changed since it worked?

I'm just looking for any hint in the logs if it detects a screen at all and if the resolution is correct etc.

@codedmart
Copy link

I don't think it is kernel related because I tried various kernels I had between upgrades, but I could be wrong. I will get more output as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants