MacBook Pro 2016: 13” detected as 15”, wrong video mode

Bug #1978396 reported by Harald Rudell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On a vanilla install of Ubuntu 22.04 and 21.10, boot is in a video mode with 2880 vertical pixels, not the real 2560x1600

Impact: at the bottom of the display are 6–12 invisible lines, and during boot and console work, the cursor is below the bottom of the screen
— external display has same problem

Root cause: the computer is detected as MacBookPro13,3 (2016 15” 2880x1800) when it is MacBookPro13,2 (2016 13” 2560x1600)

It appears impossible to change the video mode in grub, there is only one device and it only has one mode. edid seems to claim that the display supports both 2560x1400 and 2880x1800 which is false
The dumb thing of course picks 2880x1800

I have noticed that linux-hardware.org probes incorrectly lists the computer as MacBookPro13,3

— no kernel setting can fix this
— once efi or grub chose a video mode during boot, it cannot be changed
— the hidden lines is where the cursor is, error messages are displayed

after boot, one can find:
get-edid | parse-edidThis is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
No EDID on bus 5
No EDID on bus 6
1 potential busses found: 4
256-byte EDID successfully retrieved from i2c bus 4
Looks like i2c was successful. Have a good day.
Checksum Correct

Section "Monitor"
Identifier "Color LCD"
ModelName "Color LCD"
VendorName "APP"
# Monitor Manufactured week 37 of 2015
# EDID version 1.4
# Digital Display
DisplaySize 290 180
Gamma 2.20
Option "DPMS" "false"
Modeline "Mode 0" 260.73 2560 2568 2600 2640 1600 1632 1640 1646 +hsync -vsync
Modeline "Mode 1" 328.92 2880 2888 2920 2960 1800 1838 1846 1852 +hsync -vsync
EndSection

for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
DP-1: disconnected
DP-2: disconnected
eDP-1: connected
HDMI-A-1: disconnected
HDMI-A-2: disconnected

kernel command-line options tested:

video=eDP-1:2560x1600@60
# does not work
video=eDP-1:640x480
# works but number of rows still wrong

grub:
videoinfo
List of supported video modes:
Legend: mask/position=red/green/blue/reserved
Adapter ‘Bochs PCI Video Driver’:
No info available
Adapter ‘Cirrus CLGD 5446 PCI Video Driver’:
No info available
Adapter ‘EFI GOP driver’:
* 0x0000 2880 x 1800 x 32 (115200) Direct color, mask: 8/8/8/8 pos: 16/8/0/24

does not work:
videotest 2560x1600
videotest 640x480
videotest 1280x900
vbetest 640-480
error: can’t find command ‘vbetest’.
vbeinfo
error: can’t find command ‘vbeinfo’.

hwinfo --framebuffer
# has no output

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-37-generic 5.15.0-37.39
ProcVersionSignature: Ubuntu 5.15.0-37.39-generic 5.15.35
Uname: Linux 5.15.0-37-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D2', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D10p', '/dev/snd/pcmC0D9p', '/dev/snd/pcmC0D8p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CasperMD5CheckResult: pass
Date: Sat Jun 11 21:42:57 2022
HibernationDevice: RESUME=none
InstallationDate: Installed on 2021-10-31 (223 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
MachineType: Apple Inc. MacBookPro13,2
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 TERM=screen
 PATH=(custom, no user)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/BOOT/ubuntu_gk5crv@/vmlinuz-5.15.0-37-generic root=ZFS=rpool/ROOT/ubuntu_gk5crv ro
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-37-generic N/A
 linux-backports-modules-5.15.0-37-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.2
SourcePackage: linux
UpgradeStatus: Upgraded to jammy on 2022-06-11 (1 days ago)
dmi.bios.date: 09/25/2021
dmi.bios.release: 0.1
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 447.40.12.0.0
dmi.board.name: Mac-66E35819EE2D0D05
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro13,2
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-66E35819EE2D0D05
dmi.modalias: dmi:bvnAppleInc.:bvr447.40.12.0.0:bd09/25/2021:br0.1:svnAppleInc.:pnMacBookPro13,2:pvr1.0:rvnAppleInc.:rnMac-66E35819EE2D0D05:rvrMacBookPro13,2:cvnAppleInc.:ct9:cvrMac-66E35819EE2D0D05:sku:
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro13,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Harald Rudell (harald-rudell) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Harald Rudell (harald-rudell) wrote :

rEFInd boot loader: same problem with cursor below the bottom of the display

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.