I am using a Fedora 35 with GNOME and KDE behind a company proxy on my laptop.
For some reason, if I let my laptop go to sleep, it turns off the network connection. Freezes the browser (Firefox) and I am not able to smoothly shutdown (takes about 15 minutes).
I really do like Fedora, but this is a bit annoying, so any help would be appreciated!
If you want to use Firefox and prevent the system from sleep, you can open Firefox from terminal by typing systemd-inhibit firefox. After seconds it will open Firefox and prevent your laptop from sleep.
You can test it by open Firefox with systemd-inhibit firefox then after it open Firefox, then open other terminal and type systemctl suspend and you’ll get message that the system can’t go to sleep because it inhibited.
To be able to run normally again, by just close Firefox and type ctr + c on the terminal where you open Firefox.
Btw, if our system sleep, it’s will also disconnect the network.
I tried what you suggested and it indeed not send the Firefox to sleep and shutting down was not a problem. However starting up bugged. I could get it going by forcing a shutdown (i.e.: holding the power button till the laptop was shut off) and then restarted it.
I could post some logs if you tell me what would be helpful…
Would you like to explain it’s starting Firefox or Fedora Linux?
If it happen after running systemd-inhibit firefox, make sure you already close Firefox and press ctrl + c on the terminal where you type systemd-inhibit ... above.
But if not, please install dnf install inxi then run inxi -Fz and post the result here.
When you turn on the laptop, on boot list (list of kernel), press e on the keyboard. Then on the line after rhgb quiet change to rhgb quiet iommu=soft. Then press ctrl + x to continue booting.
Above are temporary kernel parameter during the booting. It will gone after reboot.
If above works, you can make it permanent with sudo grubby --args="iommu=soft" --update-kernel=ALL.
If above fail, you could try again with temporary edit kernel parameter with rhgb quiet iommu=off. If it work, add it with sudo grubby ... above.
Thanks! Tried both and neither worked. Specifically, with both temporary kernel parameter Fedora has not even started up to reach the log-in screen.
Otherwise, when the next time the screen hung up during shutdown I pressed the up (or down) arrow and got to see the various shutdown processes, as opposed to the shutdown screen (Plymouth splash). As the individual processes closed, the ones that seemed to create a problem (got hung up) were:
( 1 of 2) A stop job is running for Avahi mDNS/DNS-SD Stack (2min 8s / 3min)
( 2 of 2) A stop job is running for User Manager for UID 1000 (2min 9s / 4min)
See below the status reports of the avahi-daemon for both just after starting Fedora and also after the system going to sleep. I didn’t try disabling, but this already shows some difference.
Here is the status of the avahi-daemon, just after starting Fedora:
<pre><font color="#26A269"><b>â—Ź</b></font> avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: <font color="#26A269"><b>active (running)</b></font> since Fri 2022-02-11 09:26:41 CET; 1min 11s ago
TriggeredBy: <font color="#26A269"><b>â—Ź</b></font> avahi-daemon.socket
Main PID: 752 (avahi-daemon)
Status: "avahi-daemon 0.8 starting up."
Tasks: 2 (limit: 18756)
Memory: 1.8M
CPU: 136ms
CGroup: /system.slice/avahi-daemon.service
├─752 "avahi-daemon: running [fedora.local]"
└─787 "avahi-daemon: chroot helper"
Feb 11 09:26:45 fedora avahi-daemon[752]: Joining mDNS multicast group on interface wlo1.IPv6 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:45 fedora avahi-daemon[752]: New relevant interface wlo1.IPv6 for mDNS.
Feb 11 09:26:45 fedora avahi-daemon[752]: Registering new address record for fe80::e78c:4f0a:ac10:e<span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:45 fedora avahi-daemon[752]: Joining mDNS multicast group on interface wlo1.IPv4 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:45 fedora avahi-daemon[752]: New relevant interface wlo1.IPv4 for mDNS.
Feb 11 09:26:45 fedora avahi-daemon[752]: Registering new address record for 192.168.78.180 on wlo1<span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:51 fedora avahi-daemon[752]: Leaving mDNS multicast group on interface wlo1.IPv6 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:51 fedora avahi-daemon[752]: Joining mDNS multicast group on interface wlo1.IPv6 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:51 fedora avahi-daemon[752]: Registering new address record for fda6:98f0:c846:409c:66<span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:26:51 fedora avahi-daemon[752]: Withdrawing address record for fe80::e78c:4f0a:ac10:e449 <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
</pre>
Here is the status of the avahi-daemon, after Fedora went to sleep:
<pre><font color="#26A269"><b>â—Ź</b></font> avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: <font color="#26A269"><b>active (running)</b></font> since Fri 2022-02-11 09:26:41 CET; 2h 22min ago
TriggeredBy: <font color="#26A269"><b>â—Ź</b></font> avahi-daemon.socket
Main PID: 752 (avahi-daemon)
Status: "avahi-daemon 0.8 starting up."
Tasks: 2 (limit: 18756)
Memory: 2.0M
CPU: 4.364s
CGroup: /system.slice/avahi-daemon.service
├─752 "avahi-daemon: running [fedora.local]"
└─787 "avahi-daemon: chroot helper"
Feb 11 09:56:35 fedora avahi-daemon[752]: Interface wlo1.IPv6 no longer relevant for mDNS.
Feb 11 09:56:35 fedora avahi-daemon[752]: Interface wlo1.IPv4 no longer relevant for mDNS.
Feb 11 09:56:35 fedora avahi-daemon[752]: Leaving mDNS multicast group on interface wlo1.IPv4 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:56:35 fedora avahi-daemon[752]: Withdrawing address record for 192.168.78.180 on wlo1.
Feb 11 09:56:35 fedora avahi-daemon[752]: Joining mDNS multicast group on interface wlo1.IPv4 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:56:35 fedora avahi-daemon[752]: New relevant interface wlo1.IPv4 for mDNS.
Feb 11 09:56:35 fedora avahi-daemon[752]: Registering new address record for 192.168.78.180 on wlo1<span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:56:35 fedora avahi-daemon[752]: Withdrawing address record for 192.168.78.180 on wlo1.
Feb 11 09:56:35 fedora avahi-daemon[752]: Leaving mDNS multicast group on interface wlo1.IPv4 with <span style="background-color:#FFFFFF"><font color="#1E1E1E">></font></span>
Feb 11 09:56:35 fedora avahi-daemon[752]: Interface wlo1.IPv4 no longer relevant for mDNS.</pre>
Hi @bbrosch please change the posted code from the terminal as Preformatted text, see </> icon in the editor menu-bar. You can do this while edit your posts clicking on the pencil, mark the code and Preformat it (Ctrl & eor on the </> icon).
So we can scroll and read all the errors or messages…
Sure I do copy paste from a terminal, it just allows for copy pasting with HTML tags. Honestly, I am new on the forum, so I am sorry if this is a mess. If needed I can recreate the entry without HTML tags.
As you were told about 4 posts above, just copy the text from the screen and paste here, then mark it and use the </> tag in the title bar where you enter the post text. Using the html code as you see is very difficult to read. I would have modified one of your text blocks so you can see the difference but the html code embedded in the text makes that difficult.
I’m not sure, I only have little knowledge about networking. But I think your company proxy setting related with what messages reported by avahi-daemon.
Okay, so here is the pure copy/paste log from my terminal with the said preformatting.
Here is the status of the avahi-daemon, just after starting Fedora:
â—Ź avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-02-11 12:40:49 CET; 9h ago
TriggeredBy: â—Ź avahi-daemon.socket
Main PID: 757 (avahi-daemon)
Status: "avahi-daemon 0.8 starting up."
Tasks: 2 (limit: 18756)
Memory: 2.8M
CPU: 2min 34.449s
CGroup: /system.slice/avahi-daemon.service
├─757 "avahi-daemon: running [fedora.local]"
└─791 "avahi-daemon: chroot helper"
Feb 11 12:40:53 fedora avahi-daemon[757]: Joining mDNS multicast group on interface wlo1.IPv6 with >
Feb 11 12:40:53 fedora avahi-daemon[757]: New relevant interface wlo1.IPv6 for mDNS.
Feb 11 12:40:53 fedora avahi-daemon[757]: Registering new address record for fe80::e78c:4f0a:ac10:e>
Feb 11 12:40:53 fedora avahi-daemon[757]: Joining mDNS multicast group on interface wlo1.IPv4 with >
Feb 11 12:40:53 fedora avahi-daemon[757]: New relevant interface wlo1.IPv4 for mDNS.
Feb 11 12:40:53 fedora avahi-daemon[757]: Registering new address record for 192.168.78.180 on wlo1>
Feb 11 12:40:56 fedora avahi-daemon[757]: Leaving mDNS multicast group on interface wlo1.IPv6 with >
Feb 11 12:40:56 fedora avahi-daemon[757]: Joining mDNS multicast group on interface wlo1.IPv6 with >
Feb 11 12:40:56 fedora avahi-daemon[757]: Registering new address record for fda6:98f0:c846:409c:66>
Feb 11 12:40:56 fedora avahi-daemon[757]: Withdrawing address record for fe80::e78c:4f0a:ac10:e449 >
Here is the status of the avahi-daemon, after Fedora went to sleep:
â—Ź avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-02-11 12:40:49 CET; 10h ago
TriggeredBy: â—Ź avahi-daemon.socket
Main PID: 757 (avahi-daemon)
Status: "avahi-daemon 0.8 starting up."
Tasks: 2 (limit: 18756)
Memory: 2.8M
CPU: 2min 40.205s
CGroup: /system.slice/avahi-daemon.service
├─757 "avahi-daemon: running [fedora.local]"
└─791 "avahi-daemon: chroot helper"
Feb 11 22:56:29 fedora avahi-daemon[757]: Interface wlo1.IPv6 no longer relevant for mDNS.
Feb 11 22:56:29 fedora avahi-daemon[757]: Interface wlo1.IPv4 no longer relevant for mDNS.
Feb 11 22:56:29 fedora avahi-daemon[757]: Leaving mDNS multicast group on interface wlo1.IPv4 with >
Feb 11 22:56:29 fedora avahi-daemon[757]: Withdrawing address record for 192.168.78.180 on wlo1.
Feb 11 22:56:29 fedora avahi-daemon[757]: Joining mDNS multicast group on interface wlo1.IPv4 with >
Feb 11 22:56:29 fedora avahi-daemon[757]: New relevant interface wlo1.IPv4 for mDNS.
Feb 11 22:56:29 fedora avahi-daemon[757]: Registering new address record for 192.168.78.180 on wlo1>
Feb 11 22:56:29 fedora avahi-daemon[757]: Withdrawing address record for 192.168.78.180 on wlo1.
Feb 11 22:56:29 fedora avahi-daemon[757]: Leaving mDNS multicast group on interface wlo1.IPv4 with >
Feb 11 22:56:29 fedora avahi-daemon[757]: Interface wlo1.IPv4 no longer relevant for mDNS.