Ubuntu 18.04 Kernel 4.18 - Standby wakeup user session crash

Bug #1818974 reported by Martin Dünkelmann on 2019-03-07
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned

Bug Description

I'm using Ubuntu 18.04 (Linux Mint 19.1 Tessa) with HWE.
Since kernel 4.18 sometimes while waking up from standby my user session crash.
I assume that my attached external USB to SATA HDD could be cause this kernel bug.
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: martin 27966 F.... pulseaudio
CurrentDesktop: X-Cinnamon
DistroRelease: Linux Mint 19.1
HibernationDevice: RESUME=UUID=4a747812-cab0-438b-ace1-a46b73f00d4a
InstallationDate: Installed on 2018-07-21 (228 days ago)
InstallationMedia: Linux Mint 19 "Tara" - Release amd64 20180626
MachineType: LENOVO 20FXS05500
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-16-generic root=UUID=8ffc268d-6911-42c4-9bc3-a290376cb41b ro quiet splash nvidia-drm.modeset=1 nopti spectre_v2=off spectre_v2_user=off nospec noibrs noibpb l1tf=off vt.handoff=1
ProcVersionSignature: Ubuntu 4.18.0-16.17~18.04.1-generic 4.18.20
RelatedPackageVersions:
 linux-restricted-modules-4.18.0-16-generic N/A
 linux-backports-modules-4.18.0-16-generic N/A
 linux-firmware 1.173.3
Tags: tessa
Uname: Linux 4.18.0-16-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom davfs2 dip lpadmin plugdev sambashare scanner sudo
_MarkForUpload: True
dmi.bios.date: 09/27/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: R07ET87W (2.27 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20FXS05500
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrR07ET87W(2.27):bd09/27/2018:svnLENOVO:pn20FXS05500:pvrThinkPadT460p:rvnLENOVO:rn20FXS05500:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T460p
dmi.product.name: 20FXS05500
dmi.product.sku: LENOVO_MT_20FX_BU_Think_FM_ThinkPad T460p
dmi.product.version: ThinkPad T460p
dmi.sys.vendor: LENOVO

My mistake, I know now how to add the files separately without using an archive.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1818974

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic

apport information

tags: added: apport-collected tessa
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Kai-Heng Feng (kaihengfeng) wrote :

What is the symptom? From dmesg everything looks fine.

Every time my external HDD is connected via USB the wakeup takes a bit, showing a black screen.
Then I see my login window, and after login I don't see any window I opened. Everything is like a fresh computer restart, except the webdav mount I mounted before.

The /dev/sdb4 has some ext4 file system errors fsk.ext4 can't fix.
Maybe there is a relationship.

(Sorry, can't edit my previous post to add an information.)

Now it happened even with my external HDD detached.
The laptop was in standby for 8 hours.

It starts to happen more often.
The symptom is a black screen with only "Started Bpfilter", a blinking cursor and a long waiting time, before showing the login screen.

And I have a HiDPI Monitor, but i lowered the resolution to a normal one for 14".
But if this problem happen, the monitor has the 2k resolution at login, while the login window itself has my lowered resolution.
Meaning a little login screen attached to the left upper corner of the screen and the unused rest of the screen is just black.

Kai-Heng Feng (kaihengfeng) wrote :

Other than offline fsck, it's a good idea to run full SMART test.

SMART long offline test was successful.
Everything is fine.
I formatted the ext4 partition.
I assume the corruption came, because I turned of the external HDD hub too early several times.

But this weird bug happened one time I unplugged the external HDD before waking up my ThinkPad T460P.

PS:
I hope the issue can be found and fixed.
A crashing user session is a bit weird.

Happens too with fixed hdd filesystem.

But now it was forever at "Started Bpfilter" until I switched to the terminal screen and executed a shutdown.

Kai-Heng Feng (kaihengfeng) wrote :

Possible to reproduce the issue and attach dmesg? #30 is hard to read.

Are #31 and #25 enough?
or do you miss something else? :)

If i don't forget it I can make it a third time.

#4 and #26 are containing journals too.

Kai-Heng Feng (kaihengfeng) wrote :

X crashed after resume. Do you see the issue when i915 is used instead?

I'll switch now form permanently nvidia gtx 940mx to permanently i7-6700hq iGPU.
May take a bit until I can see if the bug happens or not, because it doesn't happen every time.
Luckily or badly it happens not often.

I don't know if it is the same bug.

I wanted to use my computer again, I left on the thinkpad docking station, connected with the same external HDD.
I got only a black screen on the main monitor and the other two monitors didn't got an image signal.

PS:
I am running now the intel gpu driver as default, it seems it uses the nvidia gpu automatically in games.
This black screen behaviour looks new to me.

  • syslog Edit (311.4 KiB, application/octet-stream)

Sadly my screen was again black and my external monitors in standby.
Something happened while the laptop did go into auto standby this morning, so a forced reboot was needed at 10:24.

I also now updated to the newest 18.04 HWE 4.18 kernel and disabled all mitigations to speed up my computer.

To post a comment you must log in.