X server fails to start on MacBookPro9,1 with hybrid Intel/Nvidia graphics: no screens found

Bug #1190806 reported by Adam Dingle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Invalid
Low
Unassigned

Bug Description

I have a MacBookPro9,1, which has both an integrated Intel HD Graphics 4000 controller and a discrete Nvidia GeForce GT 650M. I want to disable the Nvidia graphics and boot using Intel only, since I don't need the Nvidia chip's capabilities and it shortens battery life (and makes suspend/resume not work; see bug #1084960). But when I blacklist the Nouveau driver and reboot using the Intel driver only, the X server fails to start: it reports "no screens found" and crashes.

I'm booting using EFI rather than BIOS; not sure whether that's relevant.

I'll attach the X server log and the dmesg log. Just let me know if there's any other information I can provide.

Tags: no-screens
Revision history for this message
Adam Dingle (adam-yorba) wrote :
Revision history for this message
Adam Dingle (adam-yorba) wrote :
Revision history for this message
Adam Dingle (adam-yorba) wrote :

Note that in the X log I attached the X server still loads the Nouveau X driver nouveau_drv.so. As I mentioned I blacklisted the kernel driver, so I assume that the X driver can't do anything. Still, maybe I should repeat this experiment with the Nouveau X driver uninstalled.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

OK, I uninstalled the Nouveau X driver, blacklisted the Nouveau kernel driver and rebooted. As I suspected, it made no difference: the X server still failed to start. I'll attach the Xorg.0.log from this time around.

Revision history for this message
Adam Dingle (adam-yorba) wrote :
Revision history for this message
Chris Wilson (ickle) wrote :

Looks like there is still a mux involved - a hardware switch between the GPUs and the screen. That is preventing the igfx from detecting any connectors, and from there it looks like things go south. (But as far as I am aware, that should not actually prevent the driver from being loaded - since there are configurations where we support no connectors.)

Revision history for this message
Chris Wilson (ickle) wrote :

No... The issue is that X considers the nvidia GPU still as the primary and so loads VESA for it (which fails) and Intel as the secondary GPU driver.

So the secret will be to set the mux to make Intel the primary/boot GPU and connected to the displays.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Ah. And who should be setting the mux in that way? The Intel X driver? The Intel kernel driver? Some other component?

Revision history for this message
Chris Wilson (ickle) wrote :

vgaarb and the mux driver

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Ah. Is this something that you can work on (and are willing to), or should I refile this as a bug in those kernel drivers to bring this to the attention of others?

Revision history for this message
Chris Wilson (ickle) wrote :

I spoke to Dave Airlie and he is aware of this issue, but hasn't a clue how to proceed given the dearth of documentation Apple (or their component suppliers) provides - though he succeeded in getting the eDP lit up on occasion. It is not a task I am going to do myself. You can always ask if Maarten Lankhorst or Robert Sarvatt have the opportunity to take a look at the hardware.

bugbot (bugbot)
tags: added: no-screens
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Adam Dingle, thank you for reporting this and helping make Ubuntu better.

Could you please boot into a working environment of Ubuntu (i.e. without disabling the nvidia card), and run the following command once from a terminal by ensuring you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information:
apport-collect -p xorg 1190806

affects: xserver-xorg-video-intel (Ubuntu) → xorg (Ubuntu)
Changed in xorg (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Adam Dingle (adam-yorba) wrote :

I'm no longer attempting to run Ubuntu on a MacBook, so I have no way to test this right now. Sorry! We can just close this if you like.

Revision history for this message
penalvch (penalvch) wrote :

Adam Dingle, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1190806/comments/14 regarding you aren't running Ubuntu on the computer. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in xorg (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.