Lightdm is just a black screen when booting kernel 5.3 on an i5-6500, but kernels 5.0/5.2 work

Bug #1847980 reported by Claudio Fior
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Xorg freeze at boot on Intel Corporation HD Graphics 530 with linux-image-5.3.0-17 after upgraded to the development release Ubuntu Eoan Ermine (development branch).
If i boot with linux-image-5.0.0-31-generic the Xorg works well.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: xorg 1:7.7+19ubuntu12
ProcVersionSignature: Ubuntu 5.0.0-31.33-generic 5.0.21
Uname: Linux 5.0.0-31-generic x86_64
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: XFCE
Date: Mon Oct 14 11:15:23 2019
DistUpgraded: Fresh install
DistroCodename: eoan
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GpuHangFrequency: Continuously
GpuHangReproducibility: Yes, I can easily reproduce it
GpuHangStarted: Immediately after installing this version of Ubuntu
GraphicsCard:
 Intel Corporation HD Graphics 530 [8086:1912] (rev 06) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company HD Graphics 530 [103c:8054]
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 047d:2048 Kensington Orbit Trackball with Scroll Ring
 Bus 001 Device 002: ID 04d9:a0cd Holtek Semiconductor, Inc. USB Keyboard
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: HP HP EliteDesk 800 G2 SFF
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-31-generic root=UUID=714cc192-0d1c-4899-b891-16e6e504c662 ro resume=UUID=316a3e2d-ef98-4c31-8ba1-52e1cd0e8c05
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/19/2019
dmi.bios.vendor: HP
dmi.bios.version: N01 Ver. 02.42
dmi.board.name: 8054
dmi.board.vendor: HP
dmi.board.version: KBC Version 05.36
dmi.chassis.asset.tag: CZC64082W1
dmi.chassis.type: 4
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrN01Ver.02.42:bd08/19/2019:svnHP:pnHPEliteDesk800G2SFF:pvr:rvnHP:rn8054:rvrKBCVersion05.36:cvnHP:ct4:cvr:
dmi.product.family: 103C_53307F G=D
dmi.product.name: HP EliteDesk 800 G2 SFF
dmi.product.sku: X3J10ET#ABZ
dmi.sys.vendor: HP
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.99-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 19.2.1-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 19.2.1-1ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.5+git20191008-0ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.6-1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.0.1-1ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20190815-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: XFCE
DistUpgraded: Fresh install
DistroCodename: eoan
DistroRelease: Ubuntu 19.10
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Intel Corporation HD Graphics 530 [8086:1912] (rev 06) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company HD Graphics 530 [103c:8054]
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 047d:2048 Kensington Orbit Trackball with Scroll Ring
 Bus 001 Device 002: ID 04d9:a0cd Holtek Semiconductor, Inc. USB Keyboard
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: HP HP EliteDesk 800 G2 SFF
Package: xorg-server (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-17-generic root=UUID=714cc192-0d1c-4899-b891-16e6e504c662 ro nomodeset resume=UUID=316a3e2d-ef98-4c31-8ba1-52e1cd0e8c05
ProcVersionSignature: Ubuntu 5.3.0-17.18-generic 5.3.1
Tags: eoan ubuntu
Uname: Linux 5.3.0-17-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip docker lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 08/19/2019
dmi.bios.vendor: HP
dmi.bios.version: N01 Ver. 02.42
dmi.board.name: 8054
dmi.board.vendor: HP
dmi.board.version: KBC Version 05.36
dmi.chassis.asset.tag: CZC64082W1
dmi.chassis.type: 4
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrN01Ver.02.42:bd08/19/2019:svnHP:pnHPEliteDesk800G2SFF:pvr:rvnHP:rn8054:rvrKBCVersion05.36:cvnHP:ct4:cvr:
dmi.product.family: 103C_53307F G=D
dmi.product.name: HP EliteDesk 800 G2 SFF
dmi.product.sku: X3J10ET#ABZ
dmi.sys.vendor: HP
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.99-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 19.2.1-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 19.2.1-1ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.5+git20191008-0ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.0.1-1ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20190815-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Claudio Fior (caiofior) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

What do you see during the freeze? Is it a black screen or something else?

Does the machine even boot kernel 5.3 successfully?

affects: xorg (Ubuntu) → xorg-server (Ubuntu)
Changed in xorg-server (Ubuntu):
status: New → Incomplete
Revision history for this message
Claudio Fior (caiofior) wrote :

Every time i boot with kernel 5.3 I can see the services loaded (I disable splash screen), the screen is black when requiring the user credentials.
I switch to tty1 and the pc runs well, the I reboot to kernel 5.0.
With kernel 5.0 everything is good.

Revision history for this message
Claudio Fior (caiofior) wrote : BootLog.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Claudio Fior (caiofior) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : DpkgLog.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : LightdmDisplayLog.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : LightdmLog.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : Lspci.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : ProcEnviron.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : ProcModules.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : UdevDb.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : XorgLog.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : XorgLogOld.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : Xrandr.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : xdpyinfo.txt

apport information

Revision history for this message
Claudio Fior (caiofior) wrote : Re: Xorg freeze at boot on Intel Corporation HD Graphics 530 with linux-image-5.3.0-17

At least I was able to start the pc with kernel 5.3 using nomodeset kernel option.

I added the system logs.

The second screen has not benn detected

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Can you please attach a photo of the original problem (the black screen) without using nomodeset?

Please also log in to the text console there and record the kernel log:

  dmesg > blackscreendmesg.txt

Then attach the file 'blackscreendmesg.txt' to this bug.

We would like to see photos and logs from the 5.3 kernel trying to boot without nomodeset.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Claudio Fior (caiofior) wrote :

black screen

Revision history for this message
Claudio Fior (caiofior) wrote :

Datail of black screen

Revision history for this message
Claudio Fior (caiofior) wrote :

Black screen log

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks!

summary: - Xorg freeze at boot on Intel Corporation HD Graphics 530 with linux-
- image-5.3.0-17
+ [i915] Black screen when booting kernel 5.3.0-17-generic an i5-6500, but
+ "nomodeset" fixes it
Changed in linux (Ubuntu):
status: Incomplete → New
Changed in xorg-server (Ubuntu):
status: Incomplete → New
summary: - [i915] Black screen when booting kernel 5.3.0-17-generic an i5-6500, but
- "nomodeset" fixes it
+ [i915] Black screen when booting kernel 5.3.0-17-generic on an i5-6500,
+ but "nomodeset" fixes it
summary: [i915] Black screen when booting kernel 5.3.0-17-generic on an i5-6500,
- but "nomodeset" fixes it
+ but "nomodeset" or booting kernel 5.0.0 fixes it
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [i915] Black screen when booting kernel 5.3.0-17-generic on an i5-6500, but "nomodeset" or booting kernel 5.0.0 fixes it

Oops, I missed the part where you said that booting works. Only the login screen is missing:

Every time i boot with kernel 5.3 I can see the services loaded (I disable splash screen), the screen is black when requiring the user credentials.

affects: xorg-server (Ubuntu) → lightdm (Ubuntu)
summary: - [i915] Black screen when booting kernel 5.3.0-17-generic on an i5-6500,
- but "nomodeset" or booting kernel 5.0.0 fixes it
+ Lightdm is just a black screen when booting kernel 5.3.0-17-generic on
+ an i5-6500, but "nomodeset" or booting kernel 5.0.0 fixes it
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
tags: added: disco
Revision history for this message
Claudio Fior (caiofior) wrote : Re: Lightdm is just a black screen when booting kernel 5.3.0-17-generic on an i5-6500, but "nomodeset" or booting kernel 5.0.0 fixes it

I did some test, with kernel 5.2.21 everything works (linux-image-unsigned-5.2.21-050221-generic_5.2.21-050221.201910111731_amd64.deb).

I also tried kernel 5.3.6 and the screen is again black at boot (linux-headers-5.3.6-050306_5.3.6-050306.201910111731_all.deb)

summary: - Lightdm is just a black screen when booting kernel 5.3.0-17-generic on
- an i5-6500, but "nomodeset" or booting kernel 5.0.0 fixes it
+ Lightdm is just a black screen when booting kernel 5.3 on an i5-6500,
+ but kernels 5.0/5.2 work
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Would it be possible for you to do a kernel bisection?

First, find the last good -rc kernel and the first bad -rc kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/

Then,
$ sudo apt build-dep linux
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ cd linux
$ git bisect start
$ git bisect good $(the good version you found)
$ git bisect bad $(the bad version found)
$ make localmodconfig
$ make -j`nproc` deb-pkg
Install the newly built kernel, then reboot with it.
If the issue still happens,
$ git bisect bad
Otherwise,
$ git bisect good
Repeat to "make -j`nproc` deb-pkg" until you find the commit that causes the regression.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lightdm (Ubuntu):
status: New → Confirmed
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

and test newer mainline kernels
https://kernel.ubuntu.com/~kernel-ppa/mainline/

try 5.4-rc4 and if it doesn't work, drm-tip

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

the kernel driver seems perfectly happy though.. could you change to tty1 and copy /var/log/Xorg.0.log somewhere and then attach here

Revision history for this message
Claudio Fior (caiofior) wrote :

The video works with kernel 5.4-rc4 form https://kernel.ubuntu.com/~kernel-ppa/mainline/.

Thank you for your patience.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

great, then try 5.4-rc1 hoping that it's broken there, then a fix would be fairly easy to spot

tags: added: fixed-upstream
no longer affects: lightdm (Ubuntu)
no longer affects: xorg-server (Ubuntu)
Revision history for this message
Claudio Fior (caiofior) wrote :

Fixed also on 5.4-rc1 and 5.3.8

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

if 5.3.8 works then 5.3.0-24.26 from eoan-proposed should work as well, could you check?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

assuming fixed since 5.3.8 worked

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.