Manjaro Freezes with Caps lock blinking consistently when charger is plugged

Hi, I have switched to Manjaro from Ubuntu a week or so ago and I am facing this problem of random freezes with the caps lock key blinking and causing a restart after some time. I had Manjaro installed half an year back and it was alright then (Sorry, I've been distro hopping a bit).

I have an Asus Zenbook UX391UA. I have observed this pattern:

  1. When I plug in the charger, the system freezes with the above said things happening and that causes a restart.
  2. After the restart, even thought my charger is still on, the system doesn't freeze.
  3. When the system freezes, the capslock key starts blinking and there is no pattern in that blinks as suggested in here.

I had a similar freezing issue in Ubuntu(without the caps lock blinking) as well, but that was when I removed the charger ( and because I found a way around it, it didn't bother me all that much).

Here is the output of inxi -Fxxxz

dinskid  ~  inxi -Fxxxz
System:    Host: dinesh-zenbooksux391ua Kernel: 5.6.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0
Desktop: KDE Plasma 5.19.3 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux
Machine:   Type: Laptop System: ASUSTeK product: ZenBook S UX391UA v: 1.0 serial: <filter>
Mobo: ASUSTeK model: UX391UA v: 1.0 serial: <filter> UEFI: American Megatrends v: UX391UA.301 date: 10/15/2018
Battery:   ID-1: BAT0 charge: 18.9 Wh condition: 47.0/50.0 Wh (94%) volts: 7.9/7.9 model: ASUSTeK ASUS Battery type: Li-ion
serial: <filter> status: Charging cycles: 219
CPU:       Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 32012
Speed: 900 MHz min/max: 400/2001 MHz boost: enabled Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 5: 900 6: 900
7: 900 8: 900
Graphics:  Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5917
Display: x11 server: X.Org 1.20.8 driver: intel unloaded: modesetting alternate: fbdev,vesa compositor: kwin_x11
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.1.3 direct render: Yes
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1f.3
chip ID: 8086:9d71
Sound Server: ALSA v: k5.6.19-2-MANJARO
Network:   Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: f040 bus ID: 01:00.0 chip ID: 8086:24fd
IF: wlp1s0 state: up mac: <filter>
Drives:    Local Storage: total: 238.47 GiB used: 14.25 GiB (6.0%)
ID-1: /dev/sda vendor: SanDisk model: SD9SN8W256G1002 size: 238.47 GiB speed: 6.0 Gb/s serial: <filter> rev: 3002
scheme: GPT
Partition: ID-1: / size: 224.77 GiB used: 14.25 GiB (6.3%) fs: ext4 dev: /dev/sda2
ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3
Sensors:   System Temperatures: cpu: 56.0 C mobo: N/A
Fan Speeds (RPM): cpu: 2100
Info:      Processes: 227 Uptime: 16m Memory: 7.63 GiB used: 1.27 GiB (16.6%) Init: systemd v: 245 Compilers: gcc: 10.1.0
Shell: bash v: 5.0.18 running in: konsole inxi: 3.0.37

This is the output of journalctl -xe -p3 -b-1 after the restart:
Screenshot_20200727_125933|690x388

!

I've heard from some articles that it could be a hardware issue, but I couldn't find any step by step instructions to diagnose it.

Thanks in advance,
dinskid

I have seen similar when certain power settings are set in windoze with dual-boot.
Happen to be a dual-boot ?

No. I don't have a dual boot setup. I have only Manjaro in my SSD right now. Also could it be because of TLP settings, because I could've messed up with that?

check with powertop & tlp-stats for watts usage

This is the output from powertop and if I am not wrong, the watts usage is 6.31

I am not able to clearly find the same in tlp-stat

see https://www.mankier.com/8/tlp-stat
may be check with options -P -T -v --psup

It doesn't provide any output. This is what I get if I run it

dinskid  ~  sudo tlp-stat -P -T -v --psup
[sudo] password for dinskid:
--- TLP 1.3.1 --------------------------------------------

+++ Monitor power supply events -- cancel with ^C

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

and after redo charge plugged

This is the output

dinskid  ~  sudo sudo tlp-stat -P -T -v --psup
--- TLP 1.3.1 --------------------------------------------

+++ Monitor power supply events -- cancel with ^C

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [7702.067654] change   /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=AC0
POWER_SUPPLY_ONLINE=1
SEQNUM=3692
USEC_INITIALIZED=7701951521

UDEV  [7702.172889] change   /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=AC0
POWER_SUPPLY_ONLINE=1
SEQNUM=3694
USEC_INITIALIZED=7702069944

UDEV  [7702.386772] change   /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=219
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=7940000
POWER_SUPPLY_VOLTAGE_NOW=7940000
POWER_SUPPLY_POWER_NOW=3001000
POWER_SUPPLY_ENERGY_FULL_DESIGN=50022000
POWER_SUPPLY_ENERGY_FULL=47004000
POWER_SUPPLY_ENERGY_NOW=30696000
POWER_SUPPLY_CAPACITY=65
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=ASUS Battery
POWER_SUPPLY_MANUFACTURER=ASUSTeK
POWER_SUPPLY_SERIAL_NUMBER=
SEQNUM=3693
USEC_INITIALIZED=7701963244

UDEV  [7702.488630] change   /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=219
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=7940000
POWER_SUPPLY_VOLTAGE_NOW=7940000
POWER_SUPPLY_POWER_NOW=3001000
POWER_SUPPLY_ENERGY_FULL_DESIGN=50022000
POWER_SUPPLY_ENERGY_FULL=47004000
POWER_SUPPLY_ENERGY_NOW=30696000
POWER_SUPPLY_CAPACITY=65
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=ASUS Battery
POWER_SUPPLY_MANUFACTURER=ASUSTeK
POWER_SUPPLY_SERIAL_NUMBER=
SEQNUM=3695
USEC_INITIALIZED=7702389000

^C

Forum kindly sponsored by