Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A How to debug NetworkManager issue after suspend/resume in Ubuntu 22.04

****Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading. After suspend then resume, the network is no longer working...

2 answers  ·  posted 11mo ago by happyborg‭  ·  edited 9mo ago by happyborg‭

#4: Post edited by user avatar happyborg‭ · 2023-08-14T14:22:54Z (9 months ago)
  • Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.
  • After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.
  • After a while (>15m), sometimes this rectified itself, but generally not until after reboot.
  • When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that. EDIT: see 'workaround' below for more on this.
  • Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?
  • This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.
  • Updates:
  • NOT SOLVED: The issue went away for a few weeks, possibly after an update but then returned and has been forcing me to reboot after each resume for the past 10ish days, except for one occasion when I had network after resume.
  • WORKAROUND: If I stop NetworkManager before sleep and start it after resume everything seems ok. Early days but so far so good. Commands I use are:
  • ```
  • sudo service NetworkManager stop
  • ...
  • sudo service NetworkManager start
  • ```
  • So as I suspected the issue seems to be that NetworkManager is not stopping properly when the system is going to sleep (see note above about waiting for a stop job).
  • QUESTIONS:
  • - is there a way to modify when/how NetworkManager is stopped/started? I haven't been able to find this myself.
  • - is there a way to insert my own commands to stop/start on sleep/resume?
  • ****Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.
  • After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.
  • After a while (>15m), sometimes this rectified itself, but generally not until after reboot.
  • When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that. EDIT: see 'workaround' below for more on this.
  • Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?
  • This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.
  • Updates:
  • **NOT SOLVED:**
  • The issue went away for a few weeks, possibly after an update but then returned and has been forcing me to reboot after each resume for the past 10ish days, except for one occasion when I had network after resume.
  • WORKAROUND: If I stop NetworkManager before sleep and start it after resume everything seems ok. Early days but so far so good. Commands I use are:
  • ```
  • sudo service NetworkManager stop
  • ...
  • sudo service NetworkManager start
  • ```
  • So as I suspected the issue seems to be that NetworkManager is not stopping properly when the system is going to sleep (see note above about waiting for a stop job).
  • **UPDATE:**
  • After using the above workaround for a few days I forgot, but on restarting everything worked again and has for several days since, much like before. So it is an intermittent issue and I'm not sure of the usefulness of the workaround until it fails again.
  • **QUESTIONS:**
  • - is there a way to modify when/how NetworkManager is stopped/started? I haven't been able to find this myself.
  • - is there a way to insert my own commands to stop/start on sleep/resume?
#3: Post edited by user avatar happyborg‭ · 2023-08-08T11:04:04Z (9 months ago)
  • Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.
  • After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.
  • After a while (>15m), sometimes this rectified itself, but generally not until after reboot.
  • When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that.
  • Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?
  • This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.
  • Update:
  • The issue went away for a few weeks, possibly after an update but then returned and has been forcing me to reboot after each resume for the past 10ish days, except for one occasion when I had network after resume.
  • So I'll be looking again at the comments to see if they help. Thanks everyone.
  • Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.
  • After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.
  • After a while (>15m), sometimes this rectified itself, but generally not until after reboot.
  • When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that. EDIT: see 'workaround' below for more on this.
  • Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?
  • This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.
  • Updates:
  • NOT SOLVED: The issue went away for a few weeks, possibly after an update but then returned and has been forcing me to reboot after each resume for the past 10ish days, except for one occasion when I had network after resume.
  • WORKAROUND: If I stop NetworkManager before sleep and start it after resume everything seems ok. Early days but so far so good. Commands I use are:
  • ```
  • sudo service NetworkManager stop
  • ...
  • sudo service NetworkManager start
  • ```
  • So as I suspected the issue seems to be that NetworkManager is not stopping properly when the system is going to sleep (see note above about waiting for a stop job).
  • QUESTIONS:
  • - is there a way to modify when/how NetworkManager is stopped/started? I haven't been able to find this myself.
  • - is there a way to insert my own commands to stop/start on sleep/resume?
#2: Post edited by user avatar happyborg‭ · 2023-08-06T15:03:28Z (9 months ago)
  • Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.
  • After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.
  • After a while (>15m), sometimes this rectified itself, but generally not until after reboot.
  • When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that.
  • Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?
  • This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.
  • Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.
  • After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.
  • After a while (>15m), sometimes this rectified itself, but generally not until after reboot.
  • When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that.
  • Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?
  • This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.
  • Update:
  • The issue went away for a few weeks, possibly after an update but then returned and has been forcing me to reboot after each resume for the past 10ish days, except for one occasion when I had network after resume.
  • So I'll be looking again at the comments to see if they help. Thanks everyone.
#1: Initial revision by user avatar happyborg‭ · 2023-06-12T11:50:37Z (11 months ago)
How to debug NetworkManager issue after suspend/resume in Ubuntu 22.04
Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading.

After _suspend_ then _resume_, the network is no longer working although the NetworkManager process is running. I've tried various `nmcli` commands including `nmcli networking reload` but they time out.

After a while (>15m), sometimes this rectified itself, but generally not until after reboot.

When I shutdown the system I find that it is waiting 90s for a 'stop job' on NetworkManager, so maybe the earlier system suspend is not successful leading the resume to time out while trying to re-enable networking. That is just speculation, I'm not sure how to test that.

Any clues on how to look deeper into this, or ideas as to why suspend/resume should cause problems with NetworkManager?

This is a Dell laptop which has been through at least one earlier full Ubuntu upgrade without this kind of issue.