Linux Mint freeze after suspend

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Linux Mint freeze after suspend

Post by MrJFK »

Hi guys,

since the installation of LM 19.1 I have problems with my laptop after suspend: If I had the WiFi on before its switched of now, and trying to get it back on results into the laptop freezing. If I dont try getting it back on, it will instead not properly shut down (i.e. being in shutdown loop for over 10h so i forcefully shut it down).
I have read a couple of other threads that deal with this problem:
viewtopic.php?f=46&t=274817
viewtopic.php?t=283531
viewtopic.php?t=217167
But I couldn't really extract what this means for me. I've tried but failed to install a new driver and I'm not that happy with the solution "just don't use suspend" (I am using a laptop and it just automatically goes into suspend when i close the lid). I would also like to avoid going back to 18.2 as suggested in one of the posts.
On the German website "https://www.linuxmintusers.de" I got advice for a workaround (https://www.linuxmintusers.de/index.php?topic=56661.0): since the problem is not occuring if I switch of the wifi before suspending (I'm doing this manually rn), the idea was to have a script that does the switching of for me before suspending. Yet the code doesn't execute, or only after resuming.

Code to execute before suspending:

Code: Select all

#!/bin/sh
case $1/$2 in
  pre/*)
    echo "aktivate $2..."
    /bin/sh -c 'play -v 1.0  /usr/share/mint-artwork/sounds/login.oga'

     /bin/systemctl stop network-manager.service
      /bin/sh -c 'play -v 1.0  /usr/share/mint-artwork/sounds/login.oga'
       /sbin/modprobe -rf ath10k_pci btusb
     	/bin/sh -c 'play -v 1.0  /usr/share/mint-artwork/sounds/login.oga'
    ;;
  post/*)
    echo "wakeup from $2..."
     /bin/sh -c 'play -v 1.0  /usr/share/mint-artwork/sounds/login.oga'
      /sbin/modprobe ath10k_pci btusb
       /bin/sh -c 'play -v 1.0  /usr/share/mint-artwork/sounds/login.oga'
        /bin/systemctl start network-manager.service
    ;;
esac
My inxi:

Code: Select all

System:    Host: Bufis Kernel: 4.15.0-118-generic x86_64 bits: 64 Desktop: MATE 1.20.1 Distro: Linux Mint 19.1 Tessa 
Machine:   Type: Laptop System: LENOVO product: 80M5 v: Lenovo U31-70 serial: <filter> 
           Mobo: LENOVO model: Lenovo U31-70 v: No DPK serial: <filter> UEFI [Legacy]: LENOVO v: AFCN30WW(V2.02) 
           date: 10/01/2015 
Battery:   ID-1: BAT1 charge: 25.9 Wh condition: 27.9/35.0 Wh (80%) 
CPU:       Topology: Dual Core model: Intel Core i3-5010U bits: 64 type: MT MCP L2 cache: 3072 KiB 
           Speed: 800 MHz min/max: 500/2000 MHz Core speeds (MHz): 1: 800 2: 801 3: 798 4: 798 
Graphics:  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (BDW GT2) v: 4.6 Mesa 20.0.8 
Audio:     Device-1: Intel Broadwell-U Audio driver: snd_hda_intel 
           Device-2: Intel Wildcat Point-LP High Definition Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k4.15.0-118-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Device-2: Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter driver: ath10k_pci 
           IF: wlp3s0 state: up mac: <filter> 
           Device-3: Atheros type: USB driver: btusb 
Drives:    Local Storage: total: 465.76 GiB used: 341.11 GiB (73.2%) 
           ID-1: /dev/sda vendor: Seagate model: ST500LM000-SSHD-8GB size: 465.76 GiB 
Partition: ID-1: / size: 453.58 GiB used: 341.10 GiB (75.2%) fs: ext4 dev: /dev/dm-0 
           ID-2: swap-1 size: 3.92 GiB used: 8.5 MiB (0.2%) fs: swap dev: /dev/dm-1 
Sensors:   System Temperatures: cpu: 45.0 C mobo: 45.0 C 
           Fan Speeds (RPM): N/A 
Last edited by MrJFK on Sun Oct 18, 2020 1:16 pm, edited 1 time in total.
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

Can somebody either tell me whats wrong with the script or how I can fix the original problem?
User avatar
SMG
Level 7
Level 7
Posts: 1962
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint freeze after suspend

Post by SMG »

One of the things I noticed is your root directory is quite full. This may be a contributing factor in your problem suspending. I suggest you remove old files and software you are no longer using.

Partition: ID-1: / size: 453.58 GiB used: 341.10 GiB (75.2%) fs: ext4 dev: /dev/dm-0

Kernels can take up a lot of space. I usually keep the current driver and one installed version prior (just in case I might need to go back to it). If you open Update Manager and select View>Linux Kernels and then click Continue you will see a list of kernels. The middle row indicates which kernel is "Active" and what kernels are "Installed". There may be ones you can remove to free up space.

I am not aware of people usually shutting down the network manager to be able to suspend their computer, so I can offer no advice on the script.

I did a search on this forum for "QCA6164" which is your wireless card and found firmware might need to be installed for it. I do not know if you have done this already. You have a newer version of Linux Mint than the person in this thread, but you have an older kernel. Did Ubuntu ever include proper drivers for Qualcomm Atheros cards in linux-firmware?

This thread seems to have the same laptop as you and was having problems shutting down. Laptop does not shut down Maybe you will find something helpful in it even though it does not mention wireless issues or suspend issues.

This is an older thread (LM17), but mentions having to turn off the wireless in order to hibernate (which is slightly different than suspend). Hibernation not working with Kernel 4.10.0-38. You have a newer kernel, so the issue in this thread may not apply, but I'm including it in case there is something helpful to you.

Hopefully something in my post will help you.
LM20.0 Cinnamon
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

Thanks for your research :)
One of the things I noticed is your root directory is quite full. This may be a contributing factor in your problem suspending. I suggest you remove old files and software you are no longer using.

Partition: ID-1: / size: 453.58 GiB used: 341.10 GiB (75.2%) fs: ext4 dev: /dev/dm-0
Thats true, I don't have a routine set up to tidy up old kernels. I usually do sudo apt autoremove as a cleanup when I notice that the boot gets cluttered. However the issue is independent of that. I just cleaned up and it still does it.
I did a search on this forum for "QCA6164" which is your wireless card and found firmware might need to be installed for it. I do not know if you have done this already. You have a newer version of Linux Mint than the person in this thread, but you have an older kernel. Did Ubuntu ever include proper drivers for Qualcomm Atheros cards in linux-firmware?
The suggested sudo apt-get install linux-firmware only tells me that linux firmware is at the newest version. I had issues with the WiFi card and a driver before though, so this could be the source of the issue. However I didn't manage to reinstall or update the driver for the WiFi card. This however seems to be due to my lack of experience rather than it being impossible.
This thread seems to have the same laptop as you and was having problems shutting down. Laptop does not shut down Maybe you will find something helpful in it even though it does not mention wireless issues or suspend issues.
In this post the same thing seems to happen as does happen to me, but imho due to a different reason. I can however try to reproduce the issue and follow the steps suggested in the post. WIll do that tomorrow though.
This is an older thread (LM17), but mentions having to turn off the wireless in order to hibernate (which is slightly different than suspend). Hibernation not working with Kernel 4.10.0-38. You have a newer kernel, so the issue in this thread may not apply, but I'm including it in case there is something helpful to you.
This sounds like the issue I'm having. I think it also happens on hibernation but I will confirm tomorrow. I can't really extract too much useful information from the post, as it is too specific for me, but I could try running the error log dmesg | grep ath10k_pci and see what it produces.

Thanks for the help and I will dive in deeper tomorrow. Feel free to suggest more things I should check or any commands you need information about :)
User avatar
SMG
Level 7
Level 7
Posts: 1962
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint freeze after suspend

Post by SMG »

MrJFK wrote:
Sun Oct 18, 2020 8:09 pm
The suggested sudo apt-get install linux-firmware only tells me that linux firmware is at the newest version. I had issues with the WiFi card and a driver before though, so this could be the source of the issue. However I didn't manage to reinstall or update the driver for the WiFi card. This however seems to be due to my lack of experience rather than it being impossible.
You may already have the latest firmware and driver. That post was from a while ago.

Since your computer has the ath10k_pci driver, perhaps something in this How to solve internet connection problems may help. Those are usually tips for those having internet connection issues, but maybe they will help your situation. (Remember timeshift snapshots before making changes are helpful if you decide any changes you make are not to your liking.)

What are your results for iwconfig? If power management is on, maybe you will have better luck with turning it off. (The power management of the card may be interfering with the suspend power state, but I do not know that for sure.)

Maybe someone else will be able to add ideas too.
LM20.0 Cinnamon
User avatar
AZgl1500
Level 14
Level 14
Posts: 5316
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Linux Mint freeze after suspend

Post by AZgl1500 »

I realize the OP does not like "don't use suspend"

but, for me, that has been the only, and best way to prevent freezes.

I have turned OFF
  • Sleep
  • Suspend
  • Hibernate.
Have set Lid Closed to "Do Nothing"

I have now setup 7 laptops this way, and not a one of them has ever frozen up when closing the Lid.

On all of the Laptops, IF they are on Battery Power only, I set Close Lid to shutdown now

for me, it has eliminated all issues associated with the above problems.

I also have Update Manager set in Automated Mode
It installs the new kernels, and removes all but one prior Kernel.
Linux Mint 19.3 Cinnamon
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

iwconfig gives:

Code: Select all

enp2s0    no wireless extensions.

lo        no wireless extensions.

wlp3s0    IEEE 802.11  ESSID:...[omitted]
          Mode:Managed  Frequency:2.437 GHz  Access Point: 1C:BD:B9:90:60:E6   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=39/70  Signal level=-71 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:17   Missed beacon:0
I have now setup 7 laptops this way, and not a one of them has ever frozen up when closing the Lid.
Your approach is quite logical: no source for issues --> no issues. However quite often I have sessions with some programs and maybe multiple internet pages open, so its way easier to just suspend and resume than shut down and boot again. And if I leave the laptop for some time its not possible to just do nothing due to the power management. I hope there is another way to resolve this issue, but if there isn't I might have to rethink how I am dealing with sessions.
User avatar
SMG
Level 7
Level 7
Posts: 1962
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint freeze after suspend

Post by SMG »

In the middle of the wlp3s0 section:
Power Management:on

The computer modulates how much power to give to the wireless card is an attempt to give it as little as possible to save battery power. Many times it gets too low and people lose their signal, so it is often recommended to turn the power management off. How to do so is described here Improve WiFi connection by disabling power management for the wireless card

I do not know if this modulation of the power of the wireless card might be a factor in your issue. It might be worth trying to leave the power management off (which keeps the power at the same level all the time) to see if it makes a difference. You can take a Timeshift snapshot before making any changes so you can switch back if it does not work or you do not like how your wireless is working.
LM20.0 Cinnamon
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

Ok, I have done some testing, here is the result:
first of all, I followed the steps regarding the WiFi card (power management off and setting toggled).
Now it seems like the laptop freezes sometimes? I had a take where it didn't freeze twice in a row, but a different one where it did and the REISUO trick did nothing to help it.
On a different take I didn't try turning the wifi back on but shut the laptop down after. It took unusually long to shutdown and apparently due to some driver tasks and a Failed unmounting /run/user/1000. But it shut down in the end (after ca 15min).
I took a log with dmesg | grep ath10k_pci and got the following results:

The take where the wifi switched back on:

Code: Select all

[   11.516177] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   11.798045] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[   11.798058] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[   11.798760] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-6.bin failed with error -2
[   11.801813] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[   11.801816] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[   11.802312] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[   11.959471] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[   13.185082] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   13.302592] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
[  105.190128] ath10k_pci 0000:03:00.0: firmware crashed! (guid 7f0f7f82-857f-41b5-b47f-adff61881501)
[  105.190138] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[  105.190141] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[  105.190625] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[  105.190875] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[  105.190877] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  105.192907] ath10k_pci 0000:03:00.0: firmware register dump:
[  105.192914] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x00000000 0x0092E4DC 0x2F50827D
[  105.192918] ath10k_pci 0000:03:00.0: [04]: 0x0092E4DC 0x00060130 0x00000018 0x0041A760
[  105.192922] ath10k_pci 0000:03:00.0: [08]: 0x2F508269 0x00400000 0x00000000 0x000A5C88
[  105.192928] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x0096C09C 0x0096C0A7
[  105.192932] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x0092E609 0x00000000 0x00000000
[  105.192936] ath10k_pci 0000:03:00.0: [20]: 0x4092E4DC 0x0041A710 0x00000000 0x0F000000
[  105.192940] ath10k_pci 0000:03:00.0: [24]: 0x809432A7 0x0041A770 0x0040D400 0xC092E4DC
[  105.192944] ath10k_pci 0000:03:00.0: [28]: 0x80942BC4 0x0041A790 0x2F508269 0x00400000
[  105.192948] ath10k_pci 0000:03:00.0: [32]: 0x80947BA7 0x0041A7B0 0x00404D88 0x0040E074
[  105.192952] ath10k_pci 0000:03:00.0: [36]: 0x809BDECC 0x0041A7D0 0x00404D88 0x0040E074
[  105.192955] ath10k_pci 0000:03:00.0: [40]: 0x8099638C 0x0041A7F0 0x00404D88 0x00000000
[  105.192959] ath10k_pci 0000:03:00.0: [44]: 0x80992076 0x0041A810 0x0044FD68 0x0046FFE8
[  105.192963] ath10k_pci 0000:03:00.0: [48]: 0x80996BD3 0x0041A830 0x0044FD68 0x00000000
[  105.192966] ath10k_pci 0000:03:00.0: [52]: 0x800B4405 0x0041A850 0x00422318 0x00005002
[  105.192970] ath10k_pci 0000:03:00.0: [56]: 0x809A6C34 0x0041A8E0 0x0042932C 0x0042CA44
[  105.192974] ath10k_pci 0000:03:00.0: Copy Engine register dump:
[  105.192985] ath10k_pci 0000:03:00.0: [00]: 0x00034400   1   1   3   3
[  105.192997] ath10k_pci 0000:03:00.0: [01]: 0x00034800  20  20 279 280
[  105.193006] ath10k_pci 0000:03:00.0: [02]: 0x00034c00  42  42 105 106
[  105.193016] ath10k_pci 0000:03:00.0: [03]: 0x00035000   8   8   8   8
[  105.193026] ath10k_pci 0000:03:00.0: [04]: 0x00035400 1361 1361 234 170
[  105.193036] ath10k_pci 0000:03:00.0: [05]: 0x00035800   0   0   0   0
[  105.193046] ath10k_pci 0000:03:00.0: [06]: 0x00035c00  13  13  13  13
[  105.193055] ath10k_pci 0000:03:00.0: [07]: 0x00036000   1   1   1   1
[  105.199915] ath10k_pci 0000:03:00.0: failed to set pdev regdomain: -108
[  106.682608] ath10k_pci 0000:03:00.0: device successfully recovered
[  109.169851] ath10k_pci: unknown parameter 'btusb' ignored
[  109.172542] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  109.447649] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[  109.447659] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[  109.447666] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-6.bin failed with error -2
[  109.447870] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[  109.447872] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[  109.448322] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[  109.509862] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[  110.678720] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  110.768341] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
The take where I shut down the laptop after without doing anything else:

Code: Select all

[   12.859852] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   13.155730] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[   13.155751] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[   13.156238] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-6.bin failed with error -2
[   13.159141] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[   13.159145] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[   13.159768] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[   13.259870] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[   14.431290] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   14.763438] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
[  626.650468] ath10k_pci 0000:03:00.0: failed to install key for vdev 0 peer 1c:bd:b9:90:60:e6: -110
[  626.671081] ath10k_pci 0000:03:00.0: firmware crashed! (guid 139dda0b-637e-4adb-a6a0-9195ead062fa)
[  626.671091] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[  626.671094] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[  626.671588] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[  626.671845] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[  626.671849] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  626.673861] ath10k_pci 0000:03:00.0: firmware register dump:
[  626.673870] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x00000000 0x0092E4DC 0x8B7BDD7D
[  626.673874] ath10k_pci 0000:03:00.0: [04]: 0x0092E4DC 0x00060130 0x00000018 0x0041A760
[  626.673877] ath10k_pci 0000:03:00.0: [08]: 0x8B7BDD69 0x00400000 0x00000000 0x000A5C88
[  626.673881] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x0096C09C 0x0096C0A7
[  626.673884] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x00000000
[  626.673888] ath10k_pci 0000:03:00.0: [20]: 0x4092E4DC 0x0041A710 0x00000000 0x0F000000
[  626.673892] ath10k_pci 0000:03:00.0: [24]: 0x809432A7 0x0041A770 0x0040D400 0xC092E4DC
[  626.673896] ath10k_pci 0000:03:00.0: [28]: 0x80942BC4 0x0041A790 0x8B7BDD69 0x00400000
[  626.673900] ath10k_pci 0000:03:00.0: [32]: 0x80947BA7 0x0041A7B0 0x00404D88 0x0040E074
[  626.673903] ath10k_pci 0000:03:00.0: [36]: 0x809BDECC 0x0041A7D0 0x00404D88 0x0040E074
[  626.673906] ath10k_pci 0000:03:00.0: [40]: 0x8099638C 0x0041A7F0 0x00404D88 0x00000000
[  626.673910] ath10k_pci 0000:03:00.0: [44]: 0x80992076 0x0041A810 0x0044FD68 0x0046FFE8
[  626.673914] ath10k_pci 0000:03:00.0: [48]: 0x80996BD3 0x0041A830 0x0044FD68 0x00000000
[  626.673917] ath10k_pci 0000:03:00.0: [52]: 0x800B4405 0x0041A850 0x00422318 0x00005002
[  626.673921] ath10k_pci 0000:03:00.0: [56]: 0x809A6C34 0x0041A8E0 0x0042932C 0x0042CA20
[  626.673924] ath10k_pci 0000:03:00.0: Copy Engine register dump:
[  626.673935] ath10k_pci 0000:03:00.0: [00]: 0x00034400   1   1   3   3
[  626.673946] ath10k_pci 0000:03:00.0: [01]: 0x00034800  13  13  48  49
[  626.673957] ath10k_pci 0000:03:00.0: [02]: 0x00034c00  60  60 123 124
[  626.673967] ath10k_pci 0000:03:00.0: [03]: 0x00035000  10  10  11  10
[  626.673977] ath10k_pci 0000:03:00.0: [04]: 0x00035400 493 493  56 248
[  626.673987] ath10k_pci 0000:03:00.0: [05]: 0x00035800   0   0   0   0
[  626.673997] ath10k_pci 0000:03:00.0: [06]: 0x00035c00   9   9   9   9
[  626.674008] ath10k_pci 0000:03:00.0: [07]: 0x00036000   1   1   1   1
[  626.782362] ath10k_pci 0000:03:00.0: failed to delete WMI vdev 1: -108
I wasn't able to take a log when the laptop froze.
User avatar
AZgl1500
Level 14
Level 14
Posts: 5316
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Linux Mint freeze after suspend

Post by AZgl1500 »

MrJFK wrote:
Mon Oct 19, 2020 6:29 pm

I have now setup 7 laptops this way, and not a one of them has ever frozen up when closing the Lid.
Your approach is quite logical: no source for issues --> no issues. However quite often I have sessions with some programs and maybe multiple internet pages open, so its way easier to just suspend and resume than shut down and boot again. And if I leave the laptop for some time its not possible to just do nothing due to the power management. I hope there is another way to resolve this issue, but if there isn't I might have to rethink how I am dealing with sessions.
IF, we are just talking about Firefox, I have it set to always Restore all open tabs.
I hit Control-Q to quit FF, and when it reopens, it goes right back to exactly the paragraph I had open before.
And the same happens if for some reason the laptop shuts down, due to low battery, or I just hit the Cntl/Alt/O key sequence which is a kybd shortcut to shutdown. FF still reopens all tabs the next time.

This has been very useful the last 3 days, what with having to re-establish next years Medicare options;
I am being forced to change to a different RX drug plan carrier.
Linux Mint 19.3 Cinnamon
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

For the record here are two other loosely connected posts:
viewtopic.php?f=90&t=305228
viewtopic.php?f=90&t=313062
Both mention the system freezing when coming out of suspend, but there is no mention of it being connected to the wifi. One possible fix was to revert to kernel 4.15, another one exchanging some parts (motherboard etc?) and another one by blacklisting the ucsi_ccg module.
I will give the last suggestion a shot and see if it does anything for me.
In the meantime understanding the log goes beyond my capabilities but I'm wondering whether it reveals anything interesting.

EDIT: I just realised I actually am using kernel 4.15 at the moment. Someone fixed their problem by porting to kernel 5.3. Is this possible with LM 19.1?
User avatar
Larry78723
Level 10
Level 10
Posts: 3072
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Linux Mint freeze after suspend

Post by Larry78723 »

From your inxi report, it appears that you're using a USB wireless dongle. If this is correct, I would go into bios and make sure Config --> USB --> "Always on USB" is set to enabled.
Image
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

So the suggested fix to blacklist the thingy didn't do it for me. But fortunately I took a log this time:

Code: Select all

[ 6985.845778] ath10k_pci 0000:03:00.0: failed to install key for vdev 0 peer 1c:bd:b9:90:60:e6: -110
[ 9726.325761] ath10k_pci 0000:03:00.0: failed to install key for vdev 0 peer 1c:bd:b9:90:60:e6: -110
[ 9726.332565] ath10k_pci 0000:03:00.0: firmware crashed! (guid 852102b6-8571-42e5-a8d0-83042bbdf4cb)
[ 9726.332576] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[ 9726.332578] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 9726.333073] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[ 9726.333330] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[ 9726.333335] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 9726.335347] ath10k_pci 0000:03:00.0: firmware register dump:
[ 9726.335355] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x00000000 0x0092E4DC 0xE1334B22
[ 9726.335359] ath10k_pci 0000:03:00.0: [04]: 0x0092E4DC 0x00060130 0x00000018 0x0041A760
[ 9726.335362] ath10k_pci 0000:03:00.0: [08]: 0xE1334B0E 0x00400000 0x00000000 0x000A5C88
[ 9726.335366] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x0096C09C 0x0096C0A7
[ 9726.335369] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x009287BD
[ 9726.335372] ath10k_pci 0000:03:00.0: [20]: 0x4092E4DC 0x0041A710 0x00000000 0x0F000000
[ 9726.335376] ath10k_pci 0000:03:00.0: [24]: 0x809432A7 0x0041A770 0x0040D400 0xC092E4DC
[ 9726.335379] ath10k_pci 0000:03:00.0: [28]: 0x80942BC4 0x0041A790 0xE1334B0E 0x00400000
[ 9726.335382] ath10k_pci 0000:03:00.0: [32]: 0x80947BA7 0x0041A7B0 0x00404D88 0x0040E074
[ 9726.335386] ath10k_pci 0000:03:00.0: [36]: 0x809BDECC 0x0041A7D0 0x00404D88 0x0040E074
[ 9726.335389] ath10k_pci 0000:03:00.0: [40]: 0x8099638C 0x0041A7F0 0x00404D88 0x00000000
[ 9726.335393] ath10k_pci 0000:03:00.0: [44]: 0x80992076 0x0041A810 0x0044FD68 0x0046FFE8
[ 9726.335397] ath10k_pci 0000:03:00.0: [48]: 0x80996BD3 0x0041A830 0x0044FD68 0x00000000
[ 9726.335400] ath10k_pci 0000:03:00.0: [52]: 0x800B4405 0x0041A850 0x00422318 0x00005002
[ 9726.335403] ath10k_pci 0000:03:00.0: [56]: 0x809A6C34 0x0041A8E0 0x0042932C 0x0042CA20
[ 9726.335407] ath10k_pci 0000:03:00.0: Copy Engine register dump:
[ 9726.335417] ath10k_pci 0000:03:00.0: [00]: 0x00034400   1   1   3   3
[ 9726.335427] ath10k_pci 0000:03:00.0: [01]: 0x00034800  29  29 352 353
[ 9726.335437] ath10k_pci 0000:03:00.0: [02]: 0x00034c00  24  24  87  88
[ 9726.335446] ath10k_pci 0000:03:00.0: [03]: 0x00035000  16  16  17  16
[ 9726.335456] ath10k_pci 0000:03:00.0: [04]: 0x00035400 1517 1517  56 248
[ 9726.335466] ath10k_pci 0000:03:00.0: [05]: 0x00035800   0   0   0   0
[ 9726.335475] ath10k_pci 0000:03:00.0: [06]: 0x00035c00  20  20  20  20
[ 9726.335485] ath10k_pci 0000:03:00.0: [07]: 0x00036000   1   1   1   1
[ 9726.342549] ath10k_pci 0000:03:00.0: failed to update channel list: -108
[ 9726.342553] ath10k_pci 0000:03:00.0: failed to set pdev regdomain: -108
[ 9727.824440] ath10k_pci 0000:03:00.0: device successfully recovered
[ 9733.910902] ath10k_pci: unknown parameter 'btusb' ignored
[ 9733.914969] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 9734.214555] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
[ 9734.214584] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 9734.215175] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-6.bin failed with error -2
[ 9734.218181] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[ 9734.218183] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 9734.218711] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[ 9734.282151] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[ 9735.450816] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 9735.705747] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
[12369.008971] ath10k_pci 0000:03:00.0: failed to install key for vdev 0 peer 1c:bd:b9:90:60:e6: -110
[12369.013908] ath10k_pci 0000:03:00.0: firmware crashed! (guid fa49898b-1d9b-4c28-9bf4-4bf09361f3e9)
[12369.013929] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[12369.013938] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[12369.015245] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[12369.015935] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[12369.015945] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[12369.018100] ath10k_pci 0000:03:00.0: firmware register dump:
[12369.018108] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x00000000 0x0092E4DC 0x1E521B11
[12369.018112] ath10k_pci 0000:03:00.0: [04]: 0x0092E4DC 0x00060130 0x00000018 0x0041A760
[12369.018116] ath10k_pci 0000:03:00.0: [08]: 0x1E521AFD 0x00400000 0x00000000 0x000A5C88
[12369.018119] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x0096C09C 0x0096C0A7
[12369.018122] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x00000000
[12369.018126] ath10k_pci 0000:03:00.0: [20]: 0x4092E4DC 0x0041A710 0x00000000 0x0F000000
[12369.018129] ath10k_pci 0000:03:00.0: [24]: 0x809432A7 0x0041A770 0x0040D400 0xC092E4DC
[12369.018132] ath10k_pci 0000:03:00.0: [28]: 0x80942BC4 0x0041A790 0x1E521AFD 0x00400000
[12369.018136] ath10k_pci 0000:03:00.0: [32]: 0x80947BA7 0x0041A7B0 0x00404D88 0x0040E074
[12369.018139] ath10k_pci 0000:03:00.0: [36]: 0x809BDECC 0x0041A7D0 0x00404D88 0x0040E074
[12369.018142] ath10k_pci 0000:03:00.0: [40]: 0x8099638C 0x0041A7F0 0x00404D88 0x00000000
[12369.018145] ath10k_pci 0000:03:00.0: [44]: 0x80992076 0x0041A810 0x0044FD68 0x0046FFE8
[12369.018149] ath10k_pci 0000:03:00.0: [48]: 0x80996BD3 0x0041A830 0x0044FD68 0x00000000
[12369.018152] ath10k_pci 0000:03:00.0: [52]: 0x800B4405 0x0041A850 0x00422318 0x00005002
[12369.018155] ath10k_pci 0000:03:00.0: [56]: 0x809A6C34 0x0041A8E0 0x0042932C 0x0042CA20
[12369.018158] ath10k_pci 0000:03:00.0: Copy Engine register dump:
[12369.018168] ath10k_pci 0000:03:00.0: [00]: 0x00034400   1   1   3   3
[12369.018178] ath10k_pci 0000:03:00.0: [01]: 0x00034800   4   4 423 424
[12369.018187] ath10k_pci 0000:03:00.0: [02]: 0x00034c00  39  39  38  39
[12369.018197] ath10k_pci 0000:03:00.0: [03]: 0x00035000  10  10  11  10
[12369.018206] ath10k_pci 0000:03:00.0: [04]: 0x00035400 1081 1081  94  30
[12369.018216] ath10k_pci 0000:03:00.0: [05]: 0x00035800   0   0   0   0
[12369.018225] ath10k_pci 0000:03:00.0: [06]: 0x00035c00   0   0   0   0
[12369.018234] ath10k_pci 0000:03:00.0: [07]: 0x00036000   1   1   1   1
[12369.018325] ath10k_pci 0000:03:00.0: failed to update channel list: -108
[12369.018328] ath10k_pci 0000:03:00.0: failed to set pdev regdomain: -108
[12369.113310] ath10k_pci 0000:03:00.0: failed to delete WMI vdev 1: -108
[12479.174013]  ath10k_pci_hif_stop+0x3f/0xd0 [ath10k_pci]
[12499.498198]  ath10k_pci_hif_stop+0x3f/0xd0 [ath10k_pci]
I will revert the changes with timeshift...
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

From your inxi report, it appears that you're using a USB wireless dongle.
I'm not sure what suggests that for you, but the WiFI card I'm using is internal. I could only imagine that its connected to an internal usb-port?
User avatar
SMG
Level 7
Level 7
Posts: 1962
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint freeze after suspend

Post by SMG »

These log reports are all pretty much the same. They are indicating there is an issue in how the system is viewing and using both the driver and the firmware for the wireless card. There seems to me to be instability with your current setup.

I searched last night on some of the lines listed in the log and fell down a rabbit hole of all kinds of suggestions and fixes. People were able to get it to work, but the combination of the kernel and drivers and firmware was very specific and I didn't see any general advice I could pass along to you. Especially since I am not really clear what you have already installed (or how to check for that--I just do not yet have enough experience with wireless card firmware).

The common denominator in what I found last night seemed to be that the card was a little too new for the kernels available at the time of the posts. It was mentioned that perhaps newer kernels might provide more of the needed files so less "fixing" would be needed.

I am not familiar enough with LM19.1 to know how a newer kernel might work with it. I also do not know how the interaction of the firmware you have already downloaded might work with a newer kernel. You could try a newer kernel. If it does not work, you have the option to boot into grub and select your previous 4.15 kernel to return to it and delete the kernel you tried.

I do know that many people with LM19.3 are currently using the 5.4 kernel which is the LTS kernel for LM20. Perhaps you can create a bootable media of LM20 and test it? I do not know if you would need to download the wireless firmware if you test LM20. I would try testing first without the firmware. If it works, then you could try whatever combination of firmware and kernel with which you had success with your LM19.1 install (presuming you do not want to move to LM20).
LM20.0 Cinnamon
User avatar
Larry78723
Level 10
Level 10
Posts: 3072
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: Linux Mint freeze after suspend

Post by Larry78723 »

I'm no networking guru but I noticed this from your iwconfig:
Link Quality=39/70 Signal level=-71 dBm
These are not very good numbers. I'm over 80 feet from my router and I get
Link Quality=61/70 Signal level=-49 dBm
. Is it possible that either the Link Quality or Signal level is falling to the point during suspend that it can't restart Network Manager and freezes?
Image
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

These are not very good numbers. I'm over 80 feet from my router and I get
This observation is correct :D. The connection is in fact so bad that in my room I usually us a LAN cable. However I have tested the issue right next to the router (and also with different ones) with the same result so I would like think it is independent of that. I can however conduct the next tests in close range to my router to fully dissuade any doubts in this direction.
Especially since I am not really clear what you have already installed (or how to check for that--I just do not yet have enough experience with wireless card firmware).
As I had this issues since I installed LM 19.1 I think the problem itself does not arise from anything I installed between then and now. Of course a possible fix could be affected by it.
These log reports are all pretty much the same. They are indicating there is an issue in how the system is viewing and using both the driver and the firmware for the wireless card. There seems to me to be instability with your current setup.

I searched last night on some of the lines listed in the log and fell down a rabbit hole of all kinds of suggestions and fixes.
That sounds like you put in an awful amount of effort. Thank you so much is all i can say :shock: :). I think the suggestion to make a bootable LM20 is very good. I'm not sure whether its enough to test the full functionality but if it doesn't show the same problems I will consider swapping.
If this doesn't work I will consider removing all options to suspend and always use shut down instead. To me it feels like the problem is very complicated and hard to point a finger at what is causing this or rather how to fix it.
User avatar
SMG
Level 7
Level 7
Posts: 1962
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint freeze after suspend

Post by SMG »

If you do decide to test LM20, run iwconfig on it and compare the values to what you posted above.

If you want, you can also download and test the firmware on LM20. It will work for your session, but not be saved once you shut down the session.
LM20.0 Cinnamon
MrJFK
Level 1
Level 1
Posts: 15
Joined: Wed Jan 09, 2019 1:32 pm

Re: Linux Mint freeze after suspend

Post by MrJFK »

If you want, you can also download and test the firmware on LM20. It will work for your session, but not be saved once you shut down the session.
do you mean the sudo apt install linux-firmware? Does that not come with LM20? or will it install the correct firmware for my machine only if I issue that command?
User avatar
SMG
Level 7
Level 7
Posts: 1962
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint freeze after suspend

Post by SMG »

MrJFK wrote:
Tue Oct 20, 2020 6:10 pm
If you want, you can also download and test the firmware on LM20. It will work for your session, but not be saved once you shut down the session.
do you mean the sudo apt install linux-firmware? Does that not come with LM20? or will it install the correct firmware for my machine only if I issue that command?
I do not know if it is included with LM20 which is why I made my comment. If you are having problems with LM20, then you could try adding the firmware. Hopefully you will not need it.
LM20.0 Cinnamon
Post Reply

Return to “Wireless”