[Desktop-packages] [Bug 1809552] Re: Ubuntu sees duplicate display for each graphics card on Macbook Pro

2019-03-10 Thread Daniel van Vugt
** Changed in: xorg-server (Ubuntu)
   Status: Expired => New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1809552

Title:
  Ubuntu sees duplicate display for each graphics card on Macbook Pro

Status in xorg-server package in Ubuntu:
  New

Bug description:
  After booting Ubuntu in BIOS mode on my machine for years, I just
  switched over to EFI boot. The reason for which I switched is that, on
  this machine, Ubuntu cannot detect the integrated GPU under BIOS boot.

  Ubuntu now recognizes both integrated and discrete GPU on my machine,
  but it also seems to think I have two monitors.

  Expected Behavior: Ubuntu properly recognizes that both graphics cards
  are in fact controlling the same display

  Actual Behavior: Ubuntu thinks I have two displays (each being
  controlled by a separate card?). If I navigate to the "Devices >
  Displays" section of the settings app, then Ubuntu lists two "Built in
  Displays," and offers options to "Join Displays," mirror them, etc.

  I have created a question on AskUbuntu
  (https://askubuntu.com/questions/1103696/ubuntu-duplicates-display-
  for-each-graphics-card-fresh-install) detailing this issue; it
  presents much of the same information in this bug report, along with
  several images.

  I have also discovered a similar thread from three years ago
  (https://askubuntu.com/questions/582574/my-macbook-has-two-built-in-
  displays) suggesting that I am not the only Macbook user to suffer
  from this issue. The user in said thread worked around this issue by
  powering off his iGPU. I would like to set up graphics switching in
  the future, so this is not an option for me. In any case, I have
  tested his "solution" and it DOES NOT work on my machine (I also don't
  have a /sys/kernel/debug/vgaswitcheroo folder like he apparently does)

  SYSTEM INFORMATION
  

  OS Version: Ubuntu (64-bit) 18.04.1
  Kernel: 4.15.0-43-generic

  GRAPHICS CARD INFORMATION
  ==
  $ lshw -c video
  *-display 
 description: VGA compatible controller
 product: GK107M [GeForce GT 650M Mac Edition]
 vendor: NVIDIA Corporation
 physical id: 0
 bus info: pci@:01:00.0
 version: a1
 width: 64 bits
 clock: 33MHz
 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
 configuration: driver=nouveau latency=0
 resources: irq:45 memory:c000-c0ff memory:9000-9fff 
memory:a000-a1ff ioport:2000(size=128) memory:c100-c107

  *-display
 description: VGA compatible controller
 product: 3rd Gen Core processor Graphics Controller
 vendor: Intel Corporation
 physical id: 2
 bus info: pci@:00:02.0
 version: 09
 width: 64 bits
 clock: 33MHz
 capabilities: msi pm vga_controller bus_master cap_list
 configuration: driver=i915 latency=0
 resources: irq:47 memory:c140-c17f memory:b000-bfff 
ioport:3000(size=64)

  MORE GRAPHICS CARD INFORMATION
  ==
  $ lspci | grep VGA
  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)

  
  DISPLAY CONFIGURATION INFO (1)
  ==
  NOTE: In this diagnostic, I have chosen the "Single Display" option via the 
System Settings app. Only one of the two "built-in displays" is actually 
usable, selecting the other just gives me a black screen until my changes are 
auto-reverted

  $ xrandr - q
  Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
  LVDS-1 connected primary 1440x900+0+0 (normal left inverted right x axis y 
axis) 331mm x 207mm
1440x900  59.90*+
1152x864  59.97  
1024x768  59.95  
800x600   59.96  
640x480   59.94  
720x400   59.97  
640x400   59.96  
640x350   59.84  
  DP-1 disconnected (normal left inverted right x axis y axis)
  DP-2 disconnected (normal left inverted right x axis y axis)
  DP-3 disconnected (normal left inverted right x axis y axis)
  LVDS-1-2 connected (normal left inverted right x axis y axis)
1440x900  59.90 +  59.89  
1400x900  59.9659.88  
1440x810  60.0059.97  
1368x768  59.8859.85  
1360x768  59.8059.96  
1280x800  59.9959.9759.8159.91  
1152x864  60.00  
1280x720  60.0059.9959.8659.74  
1024x768  60.0460.00  
960x720   60.00  
928x696   60.05  
896x672   60.01  
1024x576  59.9559.9659.9059.82  
960x600   59.9360.00  
960x540   59.9659.9959.6359.82  
800x600   60.0060.3256.25  
840x525   60.01

[Desktop-packages] [Bug 1809552] Re: Ubuntu sees duplicate display for each graphics card on Macbook Pro

2019-03-08 Thread Launchpad Bug Tracker
[Expired for xorg-server (Ubuntu) because there has been no activity for
60 days.]

** Changed in: xorg-server (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1809552

Title:
  Ubuntu sees duplicate display for each graphics card on Macbook Pro

Status in xorg-server package in Ubuntu:
  Expired

Bug description:
  After booting Ubuntu in BIOS mode on my machine for years, I just
  switched over to EFI boot. The reason for which I switched is that, on
  this machine, Ubuntu cannot detect the integrated GPU under BIOS boot.

  Ubuntu now recognizes both integrated and discrete GPU on my machine,
  but it also seems to think I have two monitors.

  Expected Behavior: Ubuntu properly recognizes that both graphics cards
  are in fact controlling the same display

  Actual Behavior: Ubuntu thinks I have two displays (each being
  controlled by a separate card?). If I navigate to the "Devices >
  Displays" section of the settings app, then Ubuntu lists two "Built in
  Displays," and offers options to "Join Displays," mirror them, etc.

  I have created a question on AskUbuntu
  (https://askubuntu.com/questions/1103696/ubuntu-duplicates-display-
  for-each-graphics-card-fresh-install) detailing this issue; it
  presents much of the same information in this bug report, along with
  several images.

  I have also discovered a similar thread from three years ago
  (https://askubuntu.com/questions/582574/my-macbook-has-two-built-in-
  displays) suggesting that I am not the only Macbook user to suffer
  from this issue. The user in said thread worked around this issue by
  powering off his iGPU. I would like to set up graphics switching in
  the future, so this is not an option for me. In any case, I have
  tested his "solution" and it DOES NOT work on my machine (I also don't
  have a /sys/kernel/debug/vgaswitcheroo folder like he apparently does)

  SYSTEM INFORMATION
  

  OS Version: Ubuntu (64-bit) 18.04.1
  Kernel: 4.15.0-43-generic

  GRAPHICS CARD INFORMATION
  ==
  $ lshw -c video
  *-display 
 description: VGA compatible controller
 product: GK107M [GeForce GT 650M Mac Edition]
 vendor: NVIDIA Corporation
 physical id: 0
 bus info: pci@:01:00.0
 version: a1
 width: 64 bits
 clock: 33MHz
 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
 configuration: driver=nouveau latency=0
 resources: irq:45 memory:c000-c0ff memory:9000-9fff 
memory:a000-a1ff ioport:2000(size=128) memory:c100-c107

  *-display
 description: VGA compatible controller
 product: 3rd Gen Core processor Graphics Controller
 vendor: Intel Corporation
 physical id: 2
 bus info: pci@:00:02.0
 version: 09
 width: 64 bits
 clock: 33MHz
 capabilities: msi pm vga_controller bus_master cap_list
 configuration: driver=i915 latency=0
 resources: irq:47 memory:c140-c17f memory:b000-bfff 
ioport:3000(size=64)

  MORE GRAPHICS CARD INFORMATION
  ==
  $ lspci | grep VGA
  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)

  
  DISPLAY CONFIGURATION INFO (1)
  ==
  NOTE: In this diagnostic, I have chosen the "Single Display" option via the 
System Settings app. Only one of the two "built-in displays" is actually 
usable, selecting the other just gives me a black screen until my changes are 
auto-reverted

  $ xrandr - q
  Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
  LVDS-1 connected primary 1440x900+0+0 (normal left inverted right x axis y 
axis) 331mm x 207mm
1440x900  59.90*+
1152x864  59.97  
1024x768  59.95  
800x600   59.96  
640x480   59.94  
720x400   59.97  
640x400   59.96  
640x350   59.84  
  DP-1 disconnected (normal left inverted right x axis y axis)
  DP-2 disconnected (normal left inverted right x axis y axis)
  DP-3 disconnected (normal left inverted right x axis y axis)
  LVDS-1-2 connected (normal left inverted right x axis y axis)
1440x900  59.90 +  59.89  
1400x900  59.9659.88  
1440x810  60.0059.97  
1368x768  59.8859.85  
1360x768  59.8059.96  
1280x800  59.9959.9759.8159.91  
1152x864  60.00  
1280x720  60.0059.9959.8659.74  
1024x768  60.0460.00  
960x720   60.00  
928x696   60.05  
896x672   60.01  
1024x576  59.9559.9659.9059.82  
960x600   59.9360.00  
960x540   59.9659

[Desktop-packages] [Bug 1809552] Re: Ubuntu sees duplicate display for each graphics card on Macbook Pro

2019-01-07 Thread Daniel van Vugt
Does the problem also occur in Wayland sessions?

** Changed in: xorg-server (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1809552

Title:
  Ubuntu sees duplicate display for each graphics card on Macbook Pro

Status in xorg-server package in Ubuntu:
  Incomplete

Bug description:
  After booting Ubuntu in BIOS mode on my machine for years, I just
  switched over to EFI boot. The reason for which I switched is that, on
  this machine, Ubuntu cannot detect the integrated GPU under BIOS boot.

  Ubuntu now recognizes both integrated and discrete GPU on my machine,
  but it also seems to think I have two monitors.

  Expected Behavior: Ubuntu properly recognizes that both graphics cards
  are in fact controlling the same display

  Actual Behavior: Ubuntu thinks I have two displays (each being
  controlled by a separate card?). If I navigate to the "Devices >
  Displays" section of the settings app, then Ubuntu lists two "Built in
  Displays," and offers options to "Join Displays," mirror them, etc.

  I have created a question on AskUbuntu
  (https://askubuntu.com/questions/1103696/ubuntu-duplicates-display-
  for-each-graphics-card-fresh-install) detailing this issue; it
  presents much of the same information in this bug report, along with
  several images.

  I have also discovered a similar thread from three years ago
  (https://askubuntu.com/questions/582574/my-macbook-has-two-built-in-
  displays) suggesting that I am not the only Macbook user to suffer
  from this issue. The user in said thread worked around this issue by
  powering off his iGPU. I would like to set up graphics switching in
  the future, so this is not an option for me. In any case, I have
  tested his "solution" and it DOES NOT work on my machine (I also don't
  have a /sys/kernel/debug/vgaswitcheroo folder like he apparently does)

  SYSTEM INFORMATION
  

  OS Version: Ubuntu (64-bit) 18.04.1
  Kernel: 4.15.0-43-generic

  GRAPHICS CARD INFORMATION
  ==
  $ lshw -c video
  *-display 
 description: VGA compatible controller
 product: GK107M [GeForce GT 650M Mac Edition]
 vendor: NVIDIA Corporation
 physical id: 0
 bus info: pci@:01:00.0
 version: a1
 width: 64 bits
 clock: 33MHz
 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
 configuration: driver=nouveau latency=0
 resources: irq:45 memory:c000-c0ff memory:9000-9fff 
memory:a000-a1ff ioport:2000(size=128) memory:c100-c107

  *-display
 description: VGA compatible controller
 product: 3rd Gen Core processor Graphics Controller
 vendor: Intel Corporation
 physical id: 2
 bus info: pci@:00:02.0
 version: 09
 width: 64 bits
 clock: 33MHz
 capabilities: msi pm vga_controller bus_master cap_list
 configuration: driver=i915 latency=0
 resources: irq:47 memory:c140-c17f memory:b000-bfff 
ioport:3000(size=64)

  MORE GRAPHICS CARD INFORMATION
  ==
  $ lspci | grep VGA
  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)

  
  DISPLAY CONFIGURATION INFO (1)
  ==
  NOTE: In this diagnostic, I have chosen the "Single Display" option via the 
System Settings app. Only one of the two "built-in displays" is actually 
usable, selecting the other just gives me a black screen until my changes are 
auto-reverted

  $ xrandr - q
  Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
  LVDS-1 connected primary 1440x900+0+0 (normal left inverted right x axis y 
axis) 331mm x 207mm
1440x900  59.90*+
1152x864  59.97  
1024x768  59.95  
800x600   59.96  
640x480   59.94  
720x400   59.97  
640x400   59.96  
640x350   59.84  
  DP-1 disconnected (normal left inverted right x axis y axis)
  DP-2 disconnected (normal left inverted right x axis y axis)
  DP-3 disconnected (normal left inverted right x axis y axis)
  LVDS-1-2 connected (normal left inverted right x axis y axis)
1440x900  59.90 +  59.89  
1400x900  59.9659.88  
1440x810  60.0059.97  
1368x768  59.8859.85  
1360x768  59.8059.96  
1280x800  59.9959.9759.8159.91  
1152x864  60.00  
1280x720  60.0059.9959.8659.74  
1024x768  60.0460.00  
960x720   60.00  
928x696   60.05  
896x672   60.01  
1024x576  59.9559.9659.9059.82  
960x600   59.9360.00  
960x540   59.9659.9959.6359.82  
800x600

[Desktop-packages] [Bug 1809552] Re: Ubuntu sees duplicate display for each graphics card on Macbook Pro

2019-01-07 Thread Daniel van Vugt
Your XorgLog seems to show that you do have two different GPU drivers
both connected to the same physical screen (or two identical screens):

[15.105] (II) NOUVEAU(0): EDID (in hex):
[15.105] (II) NOUVEAU(0):   00000610a39c
[15.105] (II) NOUVEAU(0):   00130103802115780af595a3554f9c26
[15.105] (II) NOUVEAU(0):   0f50540001010101010101010101
[15.105] (II) NOUVEAU(0):   010101010101ab22a0a050841a303020
[15.105] (II) NOUVEAU(0):   36004bcf1018000100061030
[15.105] (II) NOUVEAU(0):   0a2000fe004c
[15.105] (II) NOUVEAU(0):   503135345750342d544c413100fe
[15.105] (II) NOUVEAU(0):   00436f6c6f72204c43440a202020

15.464] (II) modeset(G0): EDID (in hex):
[15.464] (II) modeset(G0):  00000610a39c
[15.464] (II) modeset(G0):  00130103802115780af595a3554f9c26
[15.464] (II) modeset(G0):  0f50540001010101010101010101
[15.464] (II) modeset(G0):  010101010101ab22a0a050841a303020
[15.464] (II) modeset(G0):  36004bcf1018000100061030
[15.464] (II) modeset(G0):  0a2000fe004c
[15.464] (II) modeset(G0):  503135345750342d544c413100fe
[15.464] (II) modeset(G0):  00436f6c6f72204c43440a202020

Technically this is correct if the hardware has both GPUs wired to the
screen. The system can't know in advance which GPU you would prefer to
use unless one has been explicitly disabled already. So I guess it is
correct to show the same LCD connection to each GPU.

Certainly in software we should be able to detect this and better inform
the user that it's only one screen. Ideally that would be via unique
serial numbers but Apple has failed to provide a serial number:

[15.464] (II) modeset(G0): Manufacturer: APP  Model: 9ca3  Serial#:
0

As a next option we could guess that most laptops will only ever have
one LVDS-connected display, but that's not strictly true for multi-
screen laptops. They're rare, but do exist.

So I guess the best option we have is to add quirks, which means
hardcoding rules for known weird hardware like this. It's possible, but
probably not worth doing. So I think the right answer here is to say
"Won't fix". The software is indeed correctly showing that you have two
different GPUs connected to /a/ screen.

** Changed in: xorg-server (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1809552

Title:
  Ubuntu sees duplicate display for each graphics card on Macbook Pro

Status in xorg-server package in Ubuntu:
  Incomplete

Bug description:
  After booting Ubuntu in BIOS mode on my machine for years, I just
  switched over to EFI boot. The reason for which I switched is that, on
  this machine, Ubuntu cannot detect the integrated GPU under BIOS boot.

  Ubuntu now recognizes both integrated and discrete GPU on my machine,
  but it also seems to think I have two monitors.

  Expected Behavior: Ubuntu properly recognizes that both graphics cards
  are in fact controlling the same display

  Actual Behavior: Ubuntu thinks I have two displays (each being
  controlled by a separate card?). If I navigate to the "Devices >
  Displays" section of the settings app, then Ubuntu lists two "Built in
  Displays," and offers options to "Join Displays," mirror them, etc.

  I have created a question on AskUbuntu
  (https://askubuntu.com/questions/1103696/ubuntu-duplicates-display-
  for-each-graphics-card-fresh-install) detailing this issue; it
  presents much of the same information in this bug report, along with
  several images.

  I have also discovered a similar thread from three years ago
  (https://askubuntu.com/questions/582574/my-macbook-has-two-built-in-
  displays) suggesting that I am not the only Macbook user to suffer
  from this issue. The user in said thread worked around this issue by
  powering off his iGPU. I would like to set up graphics switching in
  the future, so this is not an option for me. In any case, I have
  tested his "solution" and it DOES NOT work on my machine (I also don't
  have a /sys/kernel/debug/vgaswitcheroo folder like he apparently does)

  SYSTEM INFORMATION
  

  OS Version: Ubuntu (64-bit) 18.04.1
  Kernel: 4.15.0-43-generic

  GRAPHICS CARD INFORMATION
  ==
  $ lshw -c video
  *-display 
 description: VGA compatible controller
 product: GK107M [GeForce GT 650M Mac Edition]
 vendor: NVIDIA Corporation
 physical id: 0
 bus info: pci@:01:00.0
 version: a1
 width: 64 bits
 clock: 33MHz
 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
 configuration: driver=nouveau latency=0
 resources: irq:45 memory:c000-c0ff memory:9000-9fff 
memory:a000-a1ff ioport:2000(size=128) memory:c100-c107

  *-display
   

[Desktop-packages] [Bug 1809552] Re: Ubuntu sees duplicate display for each graphics card on Macbook Pro

2018-12-23 Thread Daniel van Vugt
** Package changed: xorg (Ubuntu) => xorg-server (Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1809552

Title:
  Ubuntu sees duplicate display for each graphics card on Macbook Pro

Status in xorg-server package in Ubuntu:
  New

Bug description:
  After booting Ubuntu in BIOS mode on my machine for years, I just
  switched over to EFI boot. The reason for which I switched is that, on
  this machine, Ubuntu cannot detect the integrated GPU under BIOS boot.

  Ubuntu now recognizes both integrated and discrete GPU on my machine,
  but it also seems to think I have two monitors.

  Expected Behavior: Ubuntu properly recognizes that both graphics cards
  are in fact controlling the same display

  Actual Behavior: Ubuntu thinks I have two displays (each being
  controlled by a separate card?). If I navigate to the "Devices >
  Displays" section of the settings app, then Ubuntu lists two "Built in
  Displays," and offers options to "Join Displays," mirror them, etc.

  I have created a question on AskUbuntu
  (https://askubuntu.com/questions/1103696/ubuntu-duplicates-display-
  for-each-graphics-card-fresh-install) detailing this issue; it
  presents much of the same information in this bug report, along with
  several images.

  I have also discovered a similar thread from three years ago
  (https://askubuntu.com/questions/582574/my-macbook-has-two-built-in-
  displays) suggesting that I am not the only Macbook user to suffer
  from this issue. The user in said thread worked around this issue by
  powering off his iGPU. I would like to set up graphics switching in
  the future, so this is not an option for me. In any case, I have
  tested his "solution" and it DOES NOT work on my machine (I also don't
  have a /sys/kernel/debug/vgaswitcheroo folder like he apparently does)

  SYSTEM INFORMATION
  

  OS Version: Ubuntu (64-bit) 18.04.1
  Kernel: 4.15.0-43-generic

  GRAPHICS CARD INFORMATION
  ==
  $ lshw -c video
  *-display 
 description: VGA compatible controller
 product: GK107M [GeForce GT 650M Mac Edition]
 vendor: NVIDIA Corporation
 physical id: 0
 bus info: pci@:01:00.0
 version: a1
 width: 64 bits
 clock: 33MHz
 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
 configuration: driver=nouveau latency=0
 resources: irq:45 memory:c000-c0ff memory:9000-9fff 
memory:a000-a1ff ioport:2000(size=128) memory:c100-c107

  *-display
 description: VGA compatible controller
 product: 3rd Gen Core processor Graphics Controller
 vendor: Intel Corporation
 physical id: 2
 bus info: pci@:00:02.0
 version: 09
 width: 64 bits
 clock: 33MHz
 capabilities: msi pm vga_controller bus_master cap_list
 configuration: driver=i915 latency=0
 resources: irq:47 memory:c140-c17f memory:b000-bfff 
ioport:3000(size=64)

  MORE GRAPHICS CARD INFORMATION
  ==
  $ lspci | grep VGA
  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)

  
  DISPLAY CONFIGURATION INFO (1)
  ==
  NOTE: In this diagnostic, I have chosen the "Single Display" option via the 
System Settings app. Only one of the two "built-in displays" is actually 
usable, selecting the other just gives me a black screen until my changes are 
auto-reverted

  $ xrandr - q
  Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
  LVDS-1 connected primary 1440x900+0+0 (normal left inverted right x axis y 
axis) 331mm x 207mm
1440x900  59.90*+
1152x864  59.97  
1024x768  59.95  
800x600   59.96  
640x480   59.94  
720x400   59.97  
640x400   59.96  
640x350   59.84  
  DP-1 disconnected (normal left inverted right x axis y axis)
  DP-2 disconnected (normal left inverted right x axis y axis)
  DP-3 disconnected (normal left inverted right x axis y axis)
  LVDS-1-2 connected (normal left inverted right x axis y axis)
1440x900  59.90 +  59.89  
1400x900  59.9659.88  
1440x810  60.0059.97  
1368x768  59.8859.85  
1360x768  59.8059.96  
1280x800  59.9959.9759.8159.91  
1152x864  60.00  
1280x720  60.0059.9959.8659.74  
1024x768  60.0460.00  
960x720   60.00  
928x696   60.05  
896x672   60.01  
1024x576  59.9559.9659.9059.82  
960x600   59.9360.00  
960x540   59.9659.9959.6359.82  
800x600   60.0060.3256.25  
840x525   60.0159.88  

[Desktop-packages] [Bug 1809552] Re: Ubuntu sees duplicate display for each graphics card on Macbook Pro

2018-12-22 Thread Anish Moorthy
I should specify, the specific model of Macbook Pro which I am using is
the mid-2012 15" version (version 10,1)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/1809552

Title:
  Ubuntu sees duplicate display for each graphics card on Macbook Pro

Status in xorg package in Ubuntu:
  New

Bug description:
  After booting Ubuntu in BIOS mode on my machine for years, I just
  switched over to EFI boot. The reason for which I switched is that, on
  this machine, Ubuntu cannot detect the integrated GPU under BIOS boot.

  Ubuntu now recognizes both integrated and discrete GPU on my machine,
  but it also seems to think I have two monitors.

  Expected Behavior: Ubuntu properly recognizes that both graphics cards
  are in fact controlling the same display

  Actual Behavior: Ubuntu thinks I have two displays (each being
  controlled by a separate card?). If I navigate to the "Devices >
  Displays" section of the settings app, then Ubuntu lists two "Built in
  Displays," and offers options to "Join Displays," mirror them, etc.

  I have created a question on AskUbuntu
  (https://askubuntu.com/questions/1103696/ubuntu-duplicates-display-
  for-each-graphics-card-fresh-install) detailing this issue; it
  presents much of the same information in this bug report, along with
  several images.

  I have also discovered a similar thread from three years ago
  (https://askubuntu.com/questions/582574/my-macbook-has-two-built-in-
  displays) suggesting that I am not the only Macbook user to suffer
  from this issue. The user in said thread worked around this issue by
  powering off his iGPU. I would like to set up graphics switching in
  the future, so this is not an option for me. In any case, I have
  tested his "solution" and it DOES NOT work on my machine (I also don't
  have a /sys/kernel/debug/vgaswitcheroo folder like he apparently does)

  SYSTEM INFORMATION
  

  OS Version: Ubuntu (64-bit) 18.04.1
  Kernel: 4.15.0-43-generic

  GRAPHICS CARD INFORMATION
  ==
  $ lshw -c video
  *-display 
 description: VGA compatible controller
 product: GK107M [GeForce GT 650M Mac Edition]
 vendor: NVIDIA Corporation
 physical id: 0
 bus info: pci@:01:00.0
 version: a1
 width: 64 bits
 clock: 33MHz
 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
 configuration: driver=nouveau latency=0
 resources: irq:45 memory:c000-c0ff memory:9000-9fff 
memory:a000-a1ff ioport:2000(size=128) memory:c100-c107

  *-display
 description: VGA compatible controller
 product: 3rd Gen Core processor Graphics Controller
 vendor: Intel Corporation
 physical id: 2
 bus info: pci@:00:02.0
 version: 09
 width: 64 bits
 clock: 33MHz
 capabilities: msi pm vga_controller bus_master cap_list
 configuration: driver=i915 latency=0
 resources: irq:47 memory:c140-c17f memory:b000-bfff 
ioport:3000(size=64)

  MORE GRAPHICS CARD INFORMATION
  ==
  $ lspci | grep VGA
  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)

  
  DISPLAY CONFIGURATION INFO (1)
  ==
  NOTE: In this diagnostic, I have chosen the "Single Display" option via the 
System Settings app. Only one of the two "built-in displays" is actually 
usable, selecting the other just gives me a black screen until my changes are 
auto-reverted

  $ xrandr - q
  Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
  LVDS-1 connected primary 1440x900+0+0 (normal left inverted right x axis y 
axis) 331mm x 207mm
1440x900  59.90*+
1152x864  59.97  
1024x768  59.95  
800x600   59.96  
640x480   59.94  
720x400   59.97  
640x400   59.96  
640x350   59.84  
  DP-1 disconnected (normal left inverted right x axis y axis)
  DP-2 disconnected (normal left inverted right x axis y axis)
  DP-3 disconnected (normal left inverted right x axis y axis)
  LVDS-1-2 connected (normal left inverted right x axis y axis)
1440x900  59.90 +  59.89  
1400x900  59.9659.88  
1440x810  60.0059.97  
1368x768  59.8859.85  
1360x768  59.8059.96  
1280x800  59.9959.9759.8159.91  
1152x864  60.00  
1280x720  60.0059.9959.8659.74  
1024x768  60.0460.00  
960x720   60.00  
928x696   60.05  
896x672   60.01  
1024x576  59.9559.9659.9059.82  
960x600   59.9360.00  
960x540   59.9659.9959.6359.82  
800x600   60.0060.3256.