public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* MacBook Pro 10,1 + i915
@ 2013-07-01 20:39 Marek Vasut
  2013-07-03  7:56 ` Chris Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Vasut @ 2013-07-01 20:39 UTC (permalink / raw)
  To: intel-gfx; +Cc: daniel.vetter, dri-devel

Hi guys,

I recently got the rMBP 10,1 model, it has two graphic cards:

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor 
Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M 
Mac Edition] (rev a1)

I'm running linux 3.10-rc7 . The nvidia works with nouveau, but I'd prefer to 
switch the nvidia off altogether and use the intel GPU.

So far I arrived at the point where I disabled X11, mounted debugfs and tried 
the vgaswitcheroo. With the nvidia still in operation, I see the console. 
Unfortunatelly, I end up with a black screen after I run the following command 
to switch to the intel GPU:

echo IGD > /sys/kernel/debug/vgaswitcheroo/switch

If I try to switch back to the nvidia card (using echo DIS > ...), the screen 
remains black. This state persists until reboot. I suspect [1] is the same bug, 
none of the hints there helped.

Can you please give me any hint/patch/idea/... how to continue?

Thank you!

[1] https://bugs.freedesktop.org/show_bug.cgi?id=61115

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MacBook Pro 10,1 + i915
  2013-07-01 20:39 MacBook Pro 10,1 + i915 Marek Vasut
@ 2013-07-03  7:56 ` Chris Wilson
  2013-07-03 11:35   ` Marek Vasut
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2013-07-03  7:56 UTC (permalink / raw)
  To: Marek Vasut; +Cc: daniel.vetter, intel-gfx, dri-devel

On Mon, Jul 01, 2013 at 10:39:14PM +0200, Marek Vasut wrote:
> Hi guys,
> 
> I recently got the rMBP 10,1 model, it has two graphic cards:
> 
> 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor 
> Graphics Controller (rev 09)
> 01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M 
> Mac Edition] (rev a1)
> 
> I'm running linux 3.10-rc7 . The nvidia works with nouveau, but I'd prefer to 
> switch the nvidia off altogether and use the intel GPU.
> 
> So far I arrived at the point where I disabled X11, mounted debugfs and tried 
> the vgaswitcheroo. With the nvidia still in operation, I see the console. 
> Unfortunatelly, I end up with a black screen after I run the following command 
> to switch to the intel GPU:
> 
> echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
> 
> If I try to switch back to the nvidia card (using echo DIS > ...), the screen 
> remains black. This state persists until reboot. I suspect [1] is the same bug, 
> none of the hints there helped.

It is not that bug. This bug I believe is that no one has figured out
how to reprobe the eDP and initialise it after a vgaswitch.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MacBook Pro 10,1 + i915
  2013-07-03  7:56 ` Chris Wilson
@ 2013-07-03 11:35   ` Marek Vasut
  2013-07-03 12:40     ` Chris Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Vasut @ 2013-07-03 11:35 UTC (permalink / raw)
  To: Chris Wilson; +Cc: daniel.vetter, intel-gfx, dri-devel

Hi Chris,

> On Mon, Jul 01, 2013 at 10:39:14PM +0200, Marek Vasut wrote:
> > Hi guys,
> > 
> > I recently got the rMBP 10,1 model, it has two graphic cards:
> > 
> > 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
> > processor Graphics Controller (rev 09)
> > 01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT
> > 650M Mac Edition] (rev a1)
> > 
> > I'm running linux 3.10-rc7 . The nvidia works with nouveau, but I'd
> > prefer to switch the nvidia off altogether and use the intel GPU.
> > 
> > So far I arrived at the point where I disabled X11, mounted debugfs and
> > tried the vgaswitcheroo. With the nvidia still in operation, I see the
> > console. Unfortunatelly, I end up with a black screen after I run the
> > following command to switch to the intel GPU:
> > 
> > echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
> > 
> > If I try to switch back to the nvidia card (using echo DIS > ...), the
> > screen remains black. This state persists until reboot. I suspect [1] is
> > the same bug, none of the hints there helped.
> 
> It is not that bug. This bug I believe is that no one has figured out
> how to reprobe the eDP and initialise it after a vgaswitch.

Do we have any kind of hints into what direction I should dig ? I mean, I went 
through the i915 source, went through David Airlies' patches [1] , but no 
success so far.

(User-unfriendly howto below, I hope this might help someone)

The interesting part is that if I do the following, the intel card operates 
correctly:
1) power down the mac
2) boot into OSX
3) install gfxcardstatus 2.2.1
4) select Discrete first ; then select Integrated card (a popup must be 
displayed in both cases in the top right corner indicating the operation 
succeeded)
5) reboot, start Linux

Now in Linux, I do have nouveau blacklisted and the nvidia blob is NOT installed 
at all. I
- modprobe nouveau
- mount -t debugfs debug /sys/kernel/debug
- echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

And I have 16W power consumption, therefore the intel card is in operation and 
nvidia is probably off. The laptop is still a little hot in linux, but that's 
OK.

Yet I'd prefer to avoid the above booting into macos and do all this in Linux. 
If you could give me any pointers, that'd be really appreciated.

Thanks!

[1] http://cgit.freedesktop.org/~airlied/linux/log/?h=switchy-wip

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MacBook Pro 10,1 + i915
  2013-07-03 11:35   ` Marek Vasut
@ 2013-07-03 12:40     ` Chris Wilson
  2013-07-03 13:13       ` Marek Vasut
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2013-07-03 12:40 UTC (permalink / raw)
  To: Marek Vasut; +Cc: daniel.vetter, intel-gfx, dri-devel

On Wed, Jul 03, 2013 at 01:35:35PM +0200, Marek Vasut wrote:
> Hi Chris,
> 
> > On Mon, Jul 01, 2013 at 10:39:14PM +0200, Marek Vasut wrote:
> > > Hi guys,
> > > 
> > > I recently got the rMBP 10,1 model, it has two graphic cards:
> > > 
> > > 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
> > > processor Graphics Controller (rev 09)
> > > 01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT
> > > 650M Mac Edition] (rev a1)
> > > 
> > > I'm running linux 3.10-rc7 . The nvidia works with nouveau, but I'd
> > > prefer to switch the nvidia off altogether and use the intel GPU.
> > > 
> > > So far I arrived at the point where I disabled X11, mounted debugfs and
> > > tried the vgaswitcheroo. With the nvidia still in operation, I see the
> > > console. Unfortunatelly, I end up with a black screen after I run the
> > > following command to switch to the intel GPU:
> > > 
> > > echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
> > > 
> > > If I try to switch back to the nvidia card (using echo DIS > ...), the
> > > screen remains black. This state persists until reboot. I suspect [1] is
> > > the same bug, none of the hints there helped.
> > 
> > It is not that bug. This bug I believe is that no one has figured out
> > how to reprobe the eDP and initialise it after a vgaswitch.
> 
> Do we have any kind of hints into what direction I should dig ? I mean, I went 
> through the i915 source, went through David Airlies' patches [1] , but no 
> success so far.
> 
> (User-unfriendly howto below, I hope this might help someone)
> 
> The interesting part is that if I do the following, the intel card operates 
> correctly:
> 1) power down the mac
> 2) boot into OSX
> 3) install gfxcardstatus 2.2.1
> 4) select Discrete first ; then select Integrated card (a popup must be 
> displayed in both cases in the top right corner indicating the operation 
> succeeded)
> 5) reboot, start Linux
> 
> Now in Linux, I do have nouveau blacklisted and the nvidia blob is NOT installed 
> at all. I
> - modprobe nouveau
> - mount -t debugfs debug /sys/kernel/debug
> - echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
> 
> And I have 16W power consumption, therefore the intel card is in operation and 
> nvidia is probably off. The laptop is still a little hot in linux, but that's 
> OK.
> 
> Yet I'd prefer to avoid the above booting into macos and do all this in Linux. 
> If you could give me any pointers, that'd be really appreciated.

I think you should also be able to accomplish the same if you were to
reload the i915 module after doing the vgaswitch.

A starting point for patches would be for a notifier to run after
vgaswitch, and for i915 to hook into that notification and reprobe
panels (LVDS/eDP).
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MacBook Pro 10,1 + i915
  2013-07-03 12:40     ` Chris Wilson
@ 2013-07-03 13:13       ` Marek Vasut
  0 siblings, 0 replies; 5+ messages in thread
From: Marek Vasut @ 2013-07-03 13:13 UTC (permalink / raw)
  To: Chris Wilson; +Cc: daniel.vetter, intel-gfx, dri-devel

Dear Chris Wilson,

> On Wed, Jul 03, 2013 at 01:35:35PM +0200, Marek Vasut wrote:
> > Hi Chris,
> > 
> > > On Mon, Jul 01, 2013 at 10:39:14PM +0200, Marek Vasut wrote:
> > > > Hi guys,
> > > > 
> > > > I recently got the rMBP 10,1 model, it has two graphic cards:
> > > > 
> > > > 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
> > > > processor Graphics Controller (rev 09)
> > > > 01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce
> > > > GT 650M Mac Edition] (rev a1)
> > > > 
> > > > I'm running linux 3.10-rc7 . The nvidia works with nouveau, but I'd
> > > > prefer to switch the nvidia off altogether and use the intel GPU.
> > > > 
> > > > So far I arrived at the point where I disabled X11, mounted debugfs
> > > > and tried the vgaswitcheroo. With the nvidia still in operation, I
> > > > see the console. Unfortunatelly, I end up with a black screen after
> > > > I run the following command to switch to the intel GPU:
> > > > 
> > > > echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
> > > > 
> > > > If I try to switch back to the nvidia card (using echo DIS > ...),
> > > > the screen remains black. This state persists until reboot. I
> > > > suspect [1] is the same bug, none of the hints there helped.
> > > 
> > > It is not that bug. This bug I believe is that no one has figured out
> > > how to reprobe the eDP and initialise it after a vgaswitch.
> > 
> > Do we have any kind of hints into what direction I should dig ? I mean, I
> > went through the i915 source, went through David Airlies' patches [1] ,
> > but no success so far.
> > 
> > (User-unfriendly howto below, I hope this might help someone)
> > 
> > The interesting part is that if I do the following, the intel card
> > operates correctly:
> > 1) power down the mac
> > 2) boot into OSX
> > 3) install gfxcardstatus 2.2.1
> > 4) select Discrete first ; then select Integrated card (a popup must be
> > displayed in both cases in the top right corner indicating the operation
> > succeeded)
> > 5) reboot, start Linux
> > 
> > Now in Linux, I do have nouveau blacklisted and the nvidia blob is NOT
> > installed at all. I
> > - modprobe nouveau
> > - mount -t debugfs debug /sys/kernel/debug
> > - echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
> > 
> > And I have 16W power consumption, therefore the intel card is in
> > operation and nvidia is probably off. The laptop is still a little hot
> > in linux, but that's OK.
> > 
> > Yet I'd prefer to avoid the above booting into macos and do all this in
> > Linux. If you could give me any pointers, that'd be really appreciated.
> 
> I think you should also be able to accomplish the same if you were to
> reload the i915 module after doing the vgaswitch.

I tried this, but the i915 didn't detect any panels connected to outputs. I 
think the panel is somehow "disconnected" from the eDP, maybe it's the apple 
GMUX thing interfering.

> A starting point for patches would be for a notifier to run after
> vgaswitch, and for i915 to hook into that notification and reprobe
> panels (LVDS/eDP).

Ok, I think I understand it a little. I will try to fiddle with the kernel a bit 
and see where it gets me.

> -Chris

Thanks a lot!

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-03 13:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 20:39 MacBook Pro 10,1 + i915 Marek Vasut
2013-07-03  7:56 ` Chris Wilson
2013-07-03 11:35   ` Marek Vasut
2013-07-03 12:40     ` Chris Wilson
2013-07-03 13:13       ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox