Multiple apps hang after suspend and wake up.

I've had some inconveniences with my almost perfect Manjaro install. It's mostly a nuisance but I thought maybe someone can point me in the right direction.

So I suspend my system mostly when I leave home or go to sleep. The machine wakes up most of the time without any issue, and I resume working.
Though there are a few apps that most of the time become unresponsive and a restart of the application is the only thing that works.
Spotify, SignaL, Brave browser are the ones that most of the times just "hang" after a wakeup.
Anyone has an idea where to look for this issue, see below my system config/specs

. . .
 Kernel: 5.4.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 Desktop: Xfce 4.14.1 
           tk: Gtk 3.24.12 info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASRock model: B450 Gaming-ITX/ac serial: <filter> UEFI [Legacy]: American Megatrends v: P3.50 
           date: 08/02/2019 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3 serial: <filter> 
           charge: 100% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86268 
           Speed: 3815 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 3835 2: 2079 3: 2196 4: 2195 5: 2071 
           6: 2197 7: 2196 8: 2195 9: 3640 10: 2048 11: 2093 12: 2197 
Graphics:  Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: Micro-Star MSI driver: nvidia v: 435.21 bus ID: 0a:00.0 
           chip ID: 10de:1d01 
           Display: x11 server: X.Org 1.20.6 driver: nvidia resolution: 3440x1440~60Hz, 1680x1050~60Hz 
           OpenGL: renderer: GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 435.21 direct render: Yes 
Audio:     Device-1: NVIDIA GP108 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 0a:00.1 
           chip ID: 10de:0fb8 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel v: kernel 
           bus ID: 0c:00.4 chip ID: 1022:1487 
           Sound Server: ALSA v: k5.4.2-1-MANJARO 
Network:   Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel bus ID: 08:00.0 
           chip ID: 8086:24fb 
           IF: wlp8s0 state: down mac: <filter> 
           Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: 5.6.0-k port: f000 bus ID: 09:00.0 
           chip ID: 8086:1539 
           IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 3.64 TiB used: 1.60 TiB (44.0%) 
           ID-1: /dev/nvme0n1 vendor: PNY model: CS3030 1000GB SSD size: 931.51 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: CS303224 scheme: MBR 
           ID-2: /dev/sda vendor: HGST (Hitachi) model: HUS72xxxxxxxx size: 2.73 TiB speed: 6.0 Gb/s rotation: 7200 rpm 
           serial: <filter> rev: A580 scheme: GPT 
Partition: ID-1: / size: 688.97 GiB used: 481.80 GiB (69.9%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 42.1 C mobo: N/A gpu: nvidia temp: 46 C 
           Fan Speeds (RPM): fan-1: 0 fan-2: 407 fan-3: 645 fan-4: 0 fan-5: 0 gpu: nvidia fan: 36% 
Info:      Processes: 347 Uptime: 7d 19h 45m Memory: 15.57 GiB used: 6.65 GiB (42.7%) Init: systemd v: 242 Compilers: 
           gcc: 9.2.0 Shell: bash v: 5.0.11 running in: xfce4-terminal inxi: 3.0.37

. . .

Hi there,

First: Can you please format your output using the </> code button?
(also in the future you may prefer to use inxi -Fxxxza --no-host)
And lets do the preliminary checks of mirrors and updates:

sudo pacman-mirrors -f && sudo pacman -Syyu

Also - you might notice that nvidia offers 430,435, and 440 (you are on 435)
You can use mhwd or manjaro settings manager to try different versions, and generally I would advise using latest for a newer card (440) but note I have also seen multiple reports that anything above 430 is buggy on some systems.

And last but not least try this (its a one-time shot, but we can make it permanent if it works):

modprobe nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1
INFO Downloading mirrors from repo.manjaro.org
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.085 Netherlands    : https://mirror.koddos.net/manjaro/
  0.074 Netherlands    : http://ftp.snt.utwente.nl/pub/linux/manjaro/
  0.125 Netherlands    : ftp://ftp.snt.utwente.nl/pub/linux/manjaro/
  0.084 Netherlands    : https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/
  0.115 Netherlands    : ftp://ftp.nluug.nl/pub/os/Linux/distr/manjaro/
  0.089 Netherlands    : https://mirror.neostrada.nl/manjaro/
  0.084 Netherlands    : http://mirror.neostrada.nl/manjaro/
  0.111 Netherlands    : ftp://mirror.neostrada.nl/manjaro/
::INFO Writing mirror list
::Netherlands     : https://mirror.koddos.net/manjaro/stable/$repo/$arch
::Netherlands     : https://mirror.neostrada.nl/manjaro/stable/$repo/$arch
::Netherlands     : https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
::Netherlands     : http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                                                             150,3 KiB  7,34 MiB/s 00:00 [#################################################################] 100%
 extra                                                                           1780,8 KiB  66,9 MiB/s 00:00 [#################################################################] 100%
 community                                                                          5,2 MiB  87,2 MiB/s 00:00 [#################################################################] 100%
 multilib                                                                         176,6 KiB  43,1 MiB/s 00:00 [#################################################################] 100%
:: Starting full system upgrade...
warning: fontconfig: local (2:2.13.1+12+g5f5ec56-2) is newer than extra (2:2.13.1+12+g5f5ec56-1)
 there is nothing to do

Behavious still present:

...System:    Kernel: 5.4.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=e2c8cff9-4c94-45dd-a0c8-d723a729f8e8 rw quiet apparmor=1 
           security=apparmor udev.log_priority=3 
           Desktop: Xfce 4.14.1 tk: Gtk 3.24.12 info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASRock model: B450 Gaming-ITX/ac serial: <filter> UEFI [Legacy]: American Megatrends v: P3.50 
           date: 08/02/2019 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3 serial: <filter> 
           charge: 100% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen family: 17 (23) model-id: 71 (113) 
           stepping: N/A microcode: 8701013 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86276 
           Speed: 3711 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 4192 2: 2294 3: 2192 4: 2196 5: 2096 
           6: 2195 7: 2195 8: 2195 9: 4189 10: 2276 11: 2096 12: 2195 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: always-on, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: Micro-Star MSI driver: nvidia v: 440.36 bus ID: 0a:00.0 
           chip ID: 10de:1d01 
           Display: x11 server: X.Org 1.20.6 driver: nvidia resolution: 3440x1440~60Hz, 1680x1050~60Hz 
           OpenGL: renderer: GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 440.36 direct render: Yes 
Audio:     Device-1: NVIDIA GP108 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 0a:00.1 
           chip ID: 10de:0fb8 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel v: kernel 
           bus ID: 0c:00.4 chip ID: 1022:1487 
           Sound Server: ALSA v: k5.4.2-1-MANJARO 
Network:   Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel bus ID: 08:00.0 
           chip ID: 8086:24fb 
           IF: wlp8s0 state: down mac: <filter> 
           Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: 5.6.0-k port: f000 bus ID: 09:00.0 
           chip ID: 8086:1539 
           IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 3.64 TiB used: 1.64 TiB (45.0%) 
           ID-1: /dev/nvme0n1 vendor: PNY model: CS3030 1000GB SSD size: 931.51 GiB block size: physical: 512 B logical: 512 B 
           speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: CS303224 scheme: MBR 
           ID-2: /dev/sda vendor: HGST (Hitachi) model: HUS724030ALE640 size: 2.73 TiB block size: physical: 4096 B 
           logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: A580 scheme: GPT 
Partition: ID-1: / raw size: 700.97 GiB size: 688.97 GiB (98.29%) used: 437.46 GiB (63.5%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 48.2 C mobo: N/A gpu: nvidia temp: 49 C 
           Fan Speeds (RPM): fan-1: 0 fan-2: 439 fan-3: 645 fan-4: 0 fan-5: 0 gpu: nvidia fan: 38% 
Info:      Processes: 480 Uptime: 14m Memory: 15.57 GiB used: 4.34 GiB (27.9%) Init: systemd v: 242 Compilers: gcc: 9.2.0 
           Shell: bash v: 5.0.11 running in: xfce4-terminal inxi: 3.0.37 
...

I tried the

...
modprobe nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1
...

same result, same erratic behavior, Brave hangs but spotify and signal now don't hang.

Zusammenfassung

First:

Can you please format your output using the </> code button?
(also in the future you may prefer to use inxi -Fxxxza --no-host )

or

Important knowledge

Please select the text in the terminal
Paste the text into the post
Select the newly pasted text in the post
Click the </> icon in the post toolbar

This creates nicely formatted text which is readable for other users after you.

(Text was copied from @ linux-aarhus)

or
Please, copy and paste input and output between three backticks ` .

You can edit your post's

How to provide good information in your posts

Sorry I screwed up the formatting.. it's been handled now...

Well .. I would say that you might benefit from creating /etc/modprobe.d/nvidia-quirks.conf
with

#this is for funnny freezing after suspend
options nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1

.. and then .. investigate a better browser replacement (you dont want brave anyways)

... it seems like only a partial solution, but thats the best I've got so far.

( oh yeah .. you can realign fontconfig with sudo pacman -Syuu )

You could also check other kernels .. such as 4.19.

I'll investigate a bit more before I conclude finally about the issue.
I did see improvement with spotify and Signal Desktop, so something did happen!

I do like brave browser I have to say, but not for being non-open source but for it's badass add blocking!

I'll play with the modprobe on the nvidia params and see if there is any difference!

Thanks a lot cscs!

For adblocking use something that doesnt track you and allow 'acceptable ads'
(usually based on who pays)
Like addon ublock:origin

1 Like

I'll play with ublock:origin

And fontconfig is fixed now :wink:

Upgrade to NVIDIA 440 didn't help and the same behaviour is still present.
I'm going to try older kernels now.

Same thing, not any difference with older kernels...

Update:
After installing the experimental newest kernel, I have not seen any apps crash:

System: Kernel: 5.5.0-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.5-x86_64 root=UUID=e2c8cff9-4c94-45dd-a0c8-d723a729f8e8 rw quiet apparmor=1
security=apparmor udev.log_priority=3
Desktop: Xfce 4.14.1 tk: Gtk 3.24.12 info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux
Machine: Type: Desktop Mobo: ASRock model: B450 Gaming-ITX/ac serial: UEFI [Legacy]: American Megatrends v: P3.50
date: 08/02/2019
Battery: Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3 serial:
charge: 100% (should be ignored) rechargeable: yes status: Discharging
CPU: Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen family: 17 (23) model-id: 71 (113)
stepping: N/A microcode: 8701013 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86279
Speed: 3976 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 2249 2: 2028 3: 4185 4: 2095 5: 2163
6: 2090 7: 4183 8: 2094 9: 2491 10: 2063 11: 2167 12: 2096
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: always-on, RSB filling
Type: tsx_async_abort status: Not affected
Graphics: Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: Micro-Star MSI driver: nvidia v: 440.44 bus ID: 0a:00.0
chip ID: 10de:1d01
Display: x11 server: X.Org 1.20.6 driver: nvidia resolution: 3440x1440~60Hz, 1680x1050~60Hz
OpenGL: renderer: GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 440.44 direct render: Yes
Audio: Device-1: NVIDIA GP108 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 0a:00.1
chip ID: 10de:0fb8
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
bus ID: 0c:00.4 chip ID: 1022:1487
Sound Server: ALSA v: k5.5.0-1-MANJARO
Network: Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel bus ID: 08:00.0
chip ID: 8086:24fb
IF: wlp8s0 state: down mac:
Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: 5.6.0-k port: f000 bus ID: 09:00.0
chip ID: 8086:1539
IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac:
Drives: Local Storage: total: 3.64 TiB used: 1.71 TiB (46.9%)
ID-1: /dev/nvme0n1 vendor: PNY model: CS3030 1000GB SSD size: 931.51 GiB block size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 serial: rev: CS303224 scheme: MBR
ID-2: /dev/sda vendor: HGST (Hitachi) model: HUS724030ALE640 size: 2.73 TiB block size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: rev: A580 scheme: GPT
Partition: ID-1: / raw size: 700.97 GiB size: 688.97 GiB (98.29%) used: 494.49 GiB (71.8%) fs: ext4 dev: /dev/nvme0n1p5
Sensors: System Temperatures: cpu: 46.8 C mobo: N/A gpu: nvidia temp: 35 C
Fan Speeds (RPM): fan-1: 0 fan-2: 484 fan-3: 628 fan-4: 0 fan-5: 0 gpu: nvidia fan: 35%
Info: Processes: 359 Uptime: 1d 21h 25m Memory: 15.56 GiB used: 11.24 GiB (72.2%) Init: systemd v: 242 Compilers:
gcc: 9.2.0 Shell: bash v: 5.0.11 running in: xfce4-terminal inxi: 3.0.37

So it's something else then the nvidia graphics driver I guess..

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by