-
Notifications
You must be signed in to change notification settings - Fork 58
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
write error: Invalid argument #40
Comments
Nobody ? Really ? |
Sorry, I just don't quite know what's wrong. I suspect this is some efi variable protection introduced in recent kernels, but I might be completely wrong about that. The script just tries to create an efi variable that tells the firmware what GPU to use, and it seems the kernel doesn't let it do that. |
Hello ! I also suspected some additional security concerning /sys/firmware/efi/efivars/, so after a few unsuccessful attempts using archlinux-2017.05.01, I downloaded archlinux-2017.03.01 but encountered the same issue (I originally followed the procedure described here). I wonder if an older release could work, and wish I could bring more useful inputs. |
Hi pipolo, Have you found any solution to the I've also followed the steps of the macrumors thread and I'm stuck trying to recreate the gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9 file, surprisingly I was able to delete it but not creating the file again. Regards and thanks in advance. |
Hello bethnull, I found out a workaround described here. Simply boot in single user mode, and carefully type this command : That should lock your MBP in integrated GPU mode. Can't guarantee it'll persist that way, as an update or a reset PRAM will probably restore your Mac to its default behavior, switching from integrated to discrete GPU and crash. |
Hi, As the OSX was installed using another computer it isn't detected as the startup disk, also I can't boot to recovery to change it because it hangs with the same gray screen I'm having when booting choosing the OSX Sierra. So to summarise, I've to press the option key to choose the startup disk but doing this I am not able to press cmd + s to boot in single mode. If I boot with cmd + r to boot into recovery it hangs and if I boot with option and choose the recovery partition it also hangs. Jejejeje crazy!!! It's possible to run nvram from another OS?? |
Hello again, Resetting PRAM should force it to startup on your newly installed system. Then you be able to cmd+s to boot into single user mode (I'm pretty sure you can also do it from the boot menu, just hold the keys before clinking your boot drive). I recommend posting to this Macrumors forum thread if you need any further help. |
Hi, I don't know what happened but yesterday I was able to execute gpu-switch without the After that I was able to boot into recovery, remove the firmware password, set the startup disk, and now I have a working computer! I can confirm that gpu-switch works in a 15" early 2011 macbook pro. Thanks pipolo for your help and 0xbb for the gpu-switch script. All the best, |
Subscribed to help. Either it was necessary to do everything fast. |
facing same issue on 6,2 but none of the methods to set the NVRAM variable work for me - all of them either fail or the variable is not there after reboot (and have various OSs installed, only one Linux though - Endeavour OS (Arch distro). I posted more details about my situation at https://forums.macrumors.com/threads/running-windows-with-fully-disabled-dgpu-on-an-old-mbp.2368512/ |
I've discovered another variable that allows selecting active GPU at boot time (well, at least on 6,2):
to activate iGPU at boot time and power down dGPU completely. You can also set it to 0 for iGPU, but this will not power down dGPU, i.e. both dGPU and its HD Audio device will be detectable. see my detailed info at https://forums.macrumors.com/threads/force-2011-macbook-pro-8-2-with-failed-amd-gpu-to-always-use-intel-integrated-gpu-efi-variable-fix.2037591/post-31801562 |
Hello there !
Trying to revive a MacBookPro 6,2, I'm having the exact same issue as described in a previous thread (I commented it but decided to open a new issue when noticing it was closed).
./gpu-switch: line 44: printf: write error: Invalid argument
I'm intending to use OS X 10.11.6, so the fix to run Ubuntu on integrated graphics will obviously not work.
Thanks for your work and thanks in advance for your kind help.
The text was updated successfully, but these errors were encountered: