Laptop fans not working after resume from suspend

Hi as you can probably can read in the title I am having this little problem every time my laptop suspends when I resume it the fans dont work, what do I mean by not working is that my fan speeds are capped to the last detected value before suspension, it does not change the cpu can be at 50°c or at 80°c that the fan speed is still the same (some times even 0 rpm) I have to restart every time this happens to fix it and is really annoying having to restart every time I close the laptop or it goes to suspension by idling., anyone knows how to fix this? thanks in advice. Laptop Asus x453sa cpu intel celeron n3050

Hi!

Please post the output of inxi -Fazy and the output of journalctl -p3 -b, the latter before and after suspending.

here is the output

inxi -Fazy
System:
  Kernel: 5.9.8-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=bca44b08-4307-4c8f-af31-7cda41407689 rw quiet apparmor=1 
  security=apparmor resume=UUID=ad9dc30e-9a5d-48a3-8ef4-f0084373d167 
  udev.log_priority=3 
  Desktop: Xfce 4.14.3 tk: Gtk 3.24.23 info: xfce4-panel, vala-panel, plank 
  wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: X453SA v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: X453SA v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X453SA.302 date: 04/19/2019 
Battery:
  ID-1: BAT0 charge: 2.6 Wh condition: 16.4/31.7 Wh (52%) volts: 7.6/7.6 
  model: ASUSTeK X453-42 type: Li-ion serial: N/A status: Discharging 
CPU:
  Info: Dual Core model: Intel Celeron N3050 bits: 64 type: MCP arch: Airmont 
  family: 6 model-id: 4C (76) stepping: 3 microcode: 368 L2 cache: 1024 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 6402 
  Speed: 480 MHz min/max: 480/2160 MHz Core speeds (MHz): 1: 480 2: 2160 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass status: Not affected 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 
  mitigation: Full generic retpoline, IBRS_FW, STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx 
  Integrated Graphics 
  vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1 
  Device-2: Realtek USB2.0 VGA UVC WebCam type: USB driver: uvcvideo 
  bus ID: 1-4:2 chip ID: 0bda:57de serial: <filter> 
  Display: x11 server: X.Org 1.20.9 driver: intel unloaded: modesetting 
  alternate: fbdev,vesa display ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: eDP1 res: 1366x768 hz: 60 dpi: 112 size: 310x170mm (12.2x6.7") 
  diag: 354mm (13.9") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (BSW) v: 4.6 Mesa 20.2.2 
  compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series 
  High Definition Audio 
  vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:2284 
  Sound Server: ALSA v: k5.9.8-2-MANJARO 
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK 
  driver: r8169 v: kernel port: e000 bus ID: 02:00.0 chip ID: 10ec:8136 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter vendor: Lite-On 
  driver: rtl8723be v: kernel port: d000 bus ID: 03:00.0 chip ID: 10ec:b723 
  IF: wlp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 465.76 GiB used: 370.45 GiB (79.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABF050 size: 465.76 GiB 
  block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 1J scheme: GPT 
Partition:
  ID-1: / raw size: 24.12 GiB size: 23.61 GiB (97.91%) used: 22.12 GiB (93.7%) 
  fs: ext4 dev: /dev/sda8 
  ID-2: /home raw size: 25.22 GiB size: 24.70 GiB (97.93%) 
  used: 18.73 GiB (75.8%) fs: ext4 dev: /dev/sda9 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 4.00 GiB used: 2.6 MiB (0.1%) 
  priority: -2 dev: /dev/sda7 
Sensors:
  System Temperatures: cpu: 6280.4 C mobo: 60.0 C 
  Fan Speeds (RPM): cpu: 2800 
Info:
  Processes: 207 Uptime: 2h 22m Memory: 3.63 GiB used: 777.5 MiB (20.9%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 clang: 11.0.0 Packages: 1599 
  pacman: 1593 lib: 453 flatpak: 0 snap: 6 Shell: Bash v: 5.0.18 
  running in: xfce4-terminal inxi: 3.1.08

before suspend (after a clean restart)

journalctl -p3 -b
-- Logs begin at Thu 2020-06-18 14:41:27 CDT, end at Sat 2020-11-21 11:47:59 CST. --
nov 21 11:46:30 luis-x453sa cntlm[916]: Username cntlm in -U is invalid
nov 21 11:46:37 luis-x453sa wpa_supplicant[906]: bgscan simple: Failed to enable signal strength monitoring

after suspension

journalctl -p3 -b
-- Logs begin at Thu 2020-06-18 14:41:27 CDT, end at Sat 2020-11-21 11:36:09 CST. --
nov 21 09:18:25 luis-x453sa cntlm[814]: Username cntlm in -U is invalid
nov 21 09:18:45 luis-x453sa systemd[1]: Failed to start Network Manager Wait Online.
nov 21 09:19:17 luis-x453sa wpa_supplicant[861]: bgscan simple: Failed to enable signal strength monitoring
nov 21 10:17:08 luis-x453sa systemd-coredump[2246]: Process 1172 (panel-26-appmen) of user 1000 dumped core.
                                                    
                                                    Stack trace of thread 1172:
                                                    #0  0x00007f9c6163ac7b n/a (libgtk-3.so.0 + 0x1fac7b)
                                                    #1  0x00007f9c610a08df n/a (libgio-2.0.so.0 + 0x6c8df)
                                                    #2  0x00007f9c6100998a g_signal_emit_valist (libgobject-2.0.so.0 + 0x2f98a)
                                                    #3  0x00007f9c61009b00 g_signal_emit (libgobject-2.0.so.0 + 0x2fb00)
                                                    #4  0x00007f9c61c2275b n/a (libappmenu-xfce.so + 0x1a75b)
                                                    #5  0x00007f9c61c2350d n/a (libappmenu-xfce.so + 0x1b50d)
-- Logs begin at Thu 2020-06-18 14:41:27 CDT, end at Sat 2020-11-21 11:36:09 CST. --
nov 21 09:18:25 luis-x453sa cntlm[814]: Username cntlm in -U is invalid
nov 21 09:18:45 luis-x453sa systemd[1]: Failed to start Network Manager Wait Online.
nov 21 09:19:17 luis-x453sa wpa_supplicant[861]: bgscan simple: Failed to enable signal strength monitoring
nov 21 10:17:08 luis-x453sa systemd-coredump[2246]: Process 1172 (panel-26-appmen) of user 1000 dumped core.
                                                    
                                                    Stack trace of thread 1172:
                                                    #0  0x00007f9c6163ac7b n/a (libgtk-3.so.0 + 0x1fac7b)
                                                    #1  0x00007f9c610a08df n/a (libgio-2.0.so.0 + 0x6c8df)
                                                    #2  0x00007f9c6100998a g_signal_emit_valist (libgobject-2.0.so.0 + 0x2f98a)
                                                    #3  0x00007f9c61009b00 g_signal_emit (libgobject-2.0.so.0 + 0x2fb00)
                                                    #4  0x00007f9c61c2275b n/a (libappmenu-xfce.so + 0x1a75b)
                                                    #5  0x00007f9c61c2350d n/a (libappmenu-xfce.so + 0x1b50d)
                                                    #6  0x00007f9c610d50f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                                    #7  0x00007f9c610d9639 n/a (libgio-2.0.so.0 + 0xa5639)
                                                    #8  0x00007f9c6113c20d n/a (libgio-2.0.so.0 + 0x10820d)
                                                    #9  0x00007f9c610d50f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                                    #10 0x00007f9c610d9639 n/a (libgio-2.0.so.0 + 0xa5639)
                                                    #11 0x00007f9c6112e340 n/a (libgio-2.0.so.0 + 0xfa340)
                                                    #12 0x00007f9c610d50f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                                    #13 0x00007f9c610d5129 n/a (libgio-2.0.so.0 + 0xa1129)
                                                    #14 0x00007f9c60ee2914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                                    #15 0x00007f9c60f367d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                                    #16 0x00007f9c60ee1e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                                    #17 0x00007f9c616214ff gtk_main (libgtk-3.so.0 + 0x1e14ff)
                                                    #18 0x0000562b07f4032d main (wrapper-2.0 + 0x332d)
                                                    #19 0x00007f9c60cef152 __libc_start_main (libc.so.6 + 0x28152)
                                                    #20 0x0000562b07f4047e _start (wrapper-2.0 + 0x347e)
                                                    
                                                    Stack trace of thread 1178:
                                                    #0  0x00007f9c60dbc46f __poll (libc.so.6 + 0xf546f)
                                                    #1  0x00007f9c60f3675f n/a (libglib-2.0.so.0 + 0xa675f)
                                                    #2  0x00007f9c60ee1121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                                    #3  0x00007f9c60ee1172 n/a (libglib-2.0.so.0 + 0x51172)
                                                    #4  0x00007f9c60f0fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                                    #5  0x00007f9c605ab3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    #6  0x00007f9c60dc7293 __clone (libc.so.6 + 0x100293)
                                                    #6  0x00007f9c60dc7293 __clone (libc.so.6 + 0x100293)
                                                    
                                                    Stack trace of thread 1179:
                                                    #0  0x00007f9c60dbc46f __poll (libc.so.6 + 0xf546f)
                                                    #1  0x00007f9c60f3675f n/a (libglib-2.0.so.0 + 0xa675f)
                                                    #2  0x00007f9c60ee1e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                                    #3  0x00007f9c61135fe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                                                    #4  0x00007f9c60f0fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                                    #5  0x00007f9c605ab3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    #6  0x00007f9c60dc7293 __clone (libc.so.6 + 0x100293)
                                                    
                                                    Stack trace of thread 1196:
                                                    #0  0x00007f9c60dbc46f __poll (libc.so.6 + 0xf546f)
                                                    #1  0x00007f9c60f3675f n/a (libglib-2.0.so.0 + 0xa675f)
                                                    #2  0x00007f9c60ee1121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                                    #3  0x00007f9c5e5d2c0e n/a (libdconfsettings.so + 0x5c0e)
                                                    #4  0x00007f9c60f0fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                                    #5  0x00007f9c605ab3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    #6  0x00007f9c60dc7293 __clone (libc.so.6 + 0x100293)
                                                    
                                                    Stack trace of thread 2244:
                                                    #0  0x00007f9c60dc1d5d syscall (libc.so.6 + 0xfad5d)
                                                    #1  0x00007f9c60f2f8bb g_cond_wait_until (libglib-2.0.so.0 + 0x9f8bb)
                                                    #2  0x00007f9c60eb2813 n/a (libglib-2.0.so.0 + 0x22813)
                                                    #3  0x00007f9c60eb29a4 g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x229a4)
                                                    #4  0x00007f9c60f12c3a n/a (libglib-2.0.so.0 + 0x82c3a)
                                                    #5  0x00007f9c60f0fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                                    #6  0x00007f9c605ab3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    #7  0x00007f9c60dc7293 __clone (libc.so.6 + 0x100293)
nov 21 11:05:32 luis-x453sa kernel: rtlwifi: AP off, try to reconnect now
nov 21 11:19:43 luis-x453sa wpa_supplicant[861]: bgscan simple: Failed to enable signal strength monitoring
nov 21 11:20:29 luis-x453sa kernel: rtlwifi: AP off, try to reconnect now
nov 21 11:35:23 luis-x453sa lightdm[2984]: gkr-pam: unable to locate daemon control file
nov 21 11:35:28 luis-x453sa wpa_supplicant[861]: bgscan simple: Failed to enable signal strength monitoring
nov 21 11:35:40 luis-x453sa wpa_supplicant[861]: bgscan simple: Failed to enable signal strength monitoring
lines 38-71/71 (END)

That CPU temperate is definitely interesting… can you run sensors and ls -l /sys/class/hwmon/?

sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +50.0°C  (high = +90.0°C, crit = +90.0°C)
Core 2:       +55.0°C  (high = +90.0°C, crit = +90.0°C)

soc_dts1-virtual-0
Adapter: Virtual device
temp1:        +52.0°C  

BAT0-acpi-0
Adapter: ACPI interface
in0:           7.60 V  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +60.0°C  (crit = +95.0°C)
temp2:        +60.0°C  (crit = +94.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2900 RPM
temp1:       +6280.4°C  

soc_dts0-virtual-0
Adapter: Virtual device
temp1:        +51.0°C
ls -l /sys/class/hwmon/
total 0
lrwxrwxrwx 1 root root 0 nov 23 11:23 hwmon0 -> ../../devices/virtual/thermal/thermal_zone0/hwmon0
lrwxrwxrwx 1 root root 0 nov 23 16:24 hwmon1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/ACPI0003:00/power_supply/AC0/hwmon1
lrwxrwxrwx 1 root root 0 nov 23 16:24 hwmon2 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/PNP0C0A:00/power_supply/BAT0/hwmon2
lrwxrwxrwx 1 root root 0 nov 23 16:24 hwmon3 -> ../../devices/virtual/thermal/thermal_zone4/hwmon3
lrwxrwxrwx 1 root root 0 nov 23 16:24 hwmon4 -> ../../devices/virtual/thermal/thermal_zone5/hwmon4
lrwxrwxrwx 1 root root 0 nov 23 16:24 hwmon5 -> ../../devices/platform/asus-nb-wmi/hwmon/hwmon5
lrwxrwxrwx 1 root root 0 nov 23 16:24 hwmon6 -> ../../devices/platform/coretemp.0/hwmon/hwmon6

Can you check if the output of sensors shows 0 RPM when the fans don’t spin after resuming from suspend? What’s the output of cat /sys/devices/platform/asus-nb-wmi/hwmon/hwmon*/temp1_input? Do the fans start spinning if you run echo 2 | sudo tee /sys/devices/platform/asus-nb-wmi/hwmon/hwmon*/pwm1_enable? What happens if you write 0 instead of 2?

the output is this, is not 0 but still does not change the rpm even at 80°c

sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2800 RPM
temp1:       +6280.4°C  

soc_dts1-virtual-0
Adapter: Virtual device
temp1:        +59.0°C  

BAT0-acpi-0
Adapter: ACPI interface
in0:           7.60 V  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +26.8°C  (crit = +95.0°C)
temp2:        +60.0°C  (crit = +94.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +59.0°C  (high = +90.0°C, crit = +90.0°C)
Core 2:       +63.0°C  (high = +90.0°C, crit = +90.0°C)

soc_dts0-virtual-0
Adapter: Virtual device
temp1:        +58.0°C
cat /sys/devices/platform/asus-nb-wmi/hwmon/hwmon*/temp1_input
6280350

neither with 0 or 2 happens nothing (with 0 shows an error saying that its not a valid value or something)