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
Mac Book Pro 6,2 and arch linux #19
Comments
Allo someone is here ? 10 days commonnnnnnnnnnnnnnnnn |
Hi, what are you trying to do exactly? What does work already and what doesn't? Have you tried running it as root? |
What I'm trying to do is switch the gpu. For now I can successfully boot with the grub tricks and disable the discrete. Basically I want to have "two" boot option, one with Discrete on and one with discrete off. For now I'have a "working" setup with grub and nomodeset i915.modeset=0 nouveau.modeset=1 and with a xorg.conf.d/10-nvidia.conf. But I need to stop lxdm.service, then modprobe nouveau, sometimes in freeze, sometimes not, then type startx. And I have the X coming. With the intel mode boot, I have nothing to do, lxdm comme directly without problem. And yes of course I have typed the command as root. |
@dummys so it seems you got GPU switching working, but you are having troubles with the X drivers? You could check the output of |
Nop it's not working... I need to do it all manually. I have no vgaswitcheroo/switch in the folder debug. Which kernel module do I need to have it ? |
Is your Macbook even booted in EFI mode? (check with: |
yes it's booted in uefi. [ 0.000000] efi: EFI v1.10 by Apple |
OK, I can also only ask @ah- . |
Ok. If you need testing something, just tell me. |
Can you paste a full dmesg? |
yes here it is: -> $ sudo dmesg |
? |
I've got the same issue. I'm running a MacBook Pro 6,2 with Fedora 23. $ sudo ./gpu-switch -i
./gpu-switch: line 45: printf: write error: Invalid argument |
I'm getting this issue on a Macbook Pro 5,4 running Arch some system information
If you want anything else let me know. I know this is an older device but I can help with testing as well if you need it. |
Hello, I have the same issue on a MPB 6.2 (+ broken discrete hw) and Ubuntu 14.
I got somewhat further digging into this, but no success... Using
Any ideas on how to get past this point ? |
FYI you can use the techniques mentioned here to get ubuntu working on your MBP 6,2 using only the integrated GPU: http://forums.fedoraforum.org/showpost.php?p=1664873&postcount=10 Here are the steps I took, adapted from there: edit /etc/default/grub and add the following line:
I also changed this line in the same file:
Change this in /etc/grub.d/10_linux:
to this:
Here's what those do btw:
Also you need to run this to update grub, and then reboot:
This is literally ALL I needed to do. I had installed 10.12.4 previously, which updated the EFI firmware, so I also reset my NVRAM with the command-option-P-R trick after rebooting to make sure there weren't any EFI variables left over which might be screwing with the framebuffer and GPU settings at boot. I am also running a daily build clean install of Ubuntu 17.10 Artful Aardvark, which I think may have fixed some issues I was having with an upgrade to Zesty (Ubuntu 17.04) but you may be fine installing Zesty. As it stands, the intel internal GPU is automatically detected, and the nvidia gpu is just never used. (This is probably also using the internal apple_gmux driver functionality to see what is available when linux starts, so that maybe helps too.) |
Hello there ! I'm having the exact same issue here trying to revive a MacBookPro 6,2 : I'm intending to use OS X 10.11.6, so the fix for Ubuntu will obviously not work. Thanks for your work and thanks in advance for your kind help. |
I also have the same issue as above.
Any way to force write this, even overriding in vim doesn't work. Thanks. |
Hello ! @arpan-ghosh : your error msg ends with an 'incomplete' statement. It's easy to miss an option or suffer errors due to character encoding when copy/pasting commands (back quotes and such...). If you're sure about your command syntax and still faces error, I went around the problem using the method described here : boot to single user mode (Command + S) then type Good luck ! |
Hello,
Did you know if your solution could work with my version of MBP ? Also did you know if there is a way to use the MBP with bumblebee ? My only way to make X works till now it's with the nvidia nouveau module...
I tried your tool and I get an error:
./gpu-switch -i
./gpu-switch: line 44: printf: write error: Invalid argument
So I tried to type it in shell:
printf "\x07\x00\x00\x00\x01\x00\x00\x00" > "/sys/firmware/efi/efivars/gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9"
and got:
bash: printf: write error: Invalid argument
The efivar exist and the gpu-power-prefs exists too...
The text was updated successfully, but these errors were encountered: