Suspend fails on Ubuntu 18.04 when mobile network connected and no WiFi connection.

Bug #1826461 reported by Jan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned
modem-manager-gui (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Suspend fails on Ubuntu 18.04 when mobile network connected and no WiFi connection.

Ubuntu 18.04, Thinkpad X240, Sierra modem
Reproduced on 4.15 and 4.18 kernel.
The bug is triggered only when there is no WiFi connection. After waking laptop from suspend ModemManager stops working and after that I cannot suspend anymore. When it happens mmcli -L gives:

Found 1 modems:
    /org/freedesktop/ModemManager1/Modem/9 [Sierra] MBIM [1199:A001]

And mmcli -m 9:

  Status | lock: 'none'
           | unlock retries: 'sim-pin (3)'
           | state: 'registered'
           | power state: 'on'
           | access tech: 'gprs, lte'
           | signal quality: '0' (cached)

After a few attempts to restart ModemManager and suspend it starts working. But only for one suspend. After one suspend I need to do the whole procedure again.

Similar to:
https://askubuntu.com/questions/1084698/ubuntu-18-04-em7455-works-only-after-suspend
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1774950?comments=all
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1801743

On Ubuntu 16.04 suspend and ModemManager used to work flawlessly.
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jan 2384 F.... pulseaudio
 /dev/snd/controlC1: jan 2384 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=UUID=2e1ab569-7004-4df3-b9f0-445fd74a1998
InstallationDate: Installed on 2016-10-22 (915 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: LENOVO 20ALA0ARHH
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-18-generic root=UUID=88a770a0-dfd0-42f5-91bb-960353d1f1f6 ro quiet splash vt.handoff=1
ProcVersionSignature: Ubuntu 4.18.0-18.19~18.04.1-generic 4.18.20
RelatedPackageVersions:
 linux-restricted-modules-4.18.0-18-generic N/A
 linux-backports-modules-4.18.0-18-generic N/A
 linux-firmware 1.173.5
Tags: bionic
Uname: Linux 4.18.0-18-generic x86_64
UpgradeStatus: Upgraded to bionic on 2018-08-14 (254 days ago)
UserGroups: adm audio cdrom dip input lp lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/20/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: GIET94WW (2.44 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20ALA0ARHH
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 PRO
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrGIET94WW(2.44):bd09/20/2018:svnLENOVO:pn20ALA0ARHH:pvrThinkPadX240:rvnLENOVO:rn20ALA0ARHH:rvrSDK0E50510PRO:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad X240
dmi.product.name: 20ALA0ARHH
dmi.product.sku: LENOVO_MT_20AL_BU_Think_FM_ThinkPad X240
dmi.product.version: ThinkPad X240
dmi.sys.vendor: LENOVO

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1826461

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
Revision history for this message
Jan (ijonfryderyk) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Jan (ijonfryderyk) wrote : CRDA.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : IwConfig.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : Lspci.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : Lsusb.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : ProcModules.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : PulseList.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : RfKill.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : UdevDb.txt

apport information

Revision history for this message
Jan (ijonfryderyk) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v5.2-rc1 kernel [0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed”, and attach dmesg.

Thanks in advance.

[0] https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.2-rc1/

Revision history for this message
Jan (ijonfryderyk) wrote :

Hi Kai-Heng Feng, thanks for your time.
I would like to help but I have never installed mainline kernel before. Is it safe? Is it necessary since we know that this bug appeared after upgrade from Ubuntu 16.04 to 18.04 (so it didn't affect kernels before 4.15)? This is my only laptop and it is indispensable for me to work. Can I do it with ukuu or do I have to do it manually?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

It should be safe.

Let's see if it's already fixed upstream, before bisecting between two older kernel versions.

Revision history for this message
Jan (ijonfryderyk) wrote :

Hi,
accidentally I might have discovered what was causing this problem. I was using Modem Manager Gui setup to auto-start after boot. Yesterday I have noticed that it's not working. I tried to start it manually but without success. It crashes immediately after start. But I have noticed one more thing – there is no problem with suspend anymore. It still needs testing but I think that it's safe to assume that Modem Manager Gui was causing my problems with suspend and mobile network connection.

Jan (ijonfryderyk)
affects: linux (Ubuntu) → modem-manager-gui (Ubuntu)
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

I think it's a kernel bug.

Please test kernel parameter "usbcore.quirks=1199:a001:m".

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
Jan (ijonfryderyk) wrote :

Sure, but could you help me with that?
Do you still want me to check 5.2 kernel?
Can I install it with ukuu?
https://github.com/teejee2008/ukuu
I don't know how to test kernel parameter "usbcore.quirks=1199:a001:m".
Could you tell me how to do it?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Graham Inggs (ginggs)
Changed in modem-manager-gui (Ubuntu):
status: Confirmed → Incomplete
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for modem-manager-gui (Ubuntu) because there has been no activity for 60 days.]

Changed in modem-manager-gui (Ubuntu):
status: Incomplete → Expired
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.