Minor lagging in manjaro awesome wm

I installed Manjaro Awesome WM from the official Manjaro site. Everything is good and working but I am experiencing some minor lags time to time. This lags are happening every 30 to 80 seconds and they last for couple of milliseconds which is annoying when I am watching youtube or when I am coding. I taught that this might be the result of widgets that I use in my rc.lua file but after installing another theme for awesome wm, I am still experiencing the same result. Could it be the fact that I use an external monitor connected to my laptop via HDMI? Do you have any suggestion to fix this?

P.S. I should mention that this happens when I disable laptop display and only use external display. When I am using just laptop display or external and internal display, I don’t have this problem.

Here are my information

      Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
      parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
      Desktop: Xfce 4.14.4 wm: awesome 4.3 dm: LightDM 1.30.0 Distro: Manjaro Linux
    Machine:
      Type: Laptop System: LENOVO product: 81NE v: Lenovo IdeaPad S540-15IWL
      serial: <filter> Chassis: type: 10 v: Lenovo IdeaPad S540-15IWL serial: <filter>
      Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <filter> UEFI: LENOVO
      v: APCN35WW date: 06/21/2020
    Battery:
      ID-1: BAT0 charge: 33.3 Wh condition: 70.7/70.0 Wh (101%) volts: 15.1/15.1
      model: LGC L18L4PF0 type: Li-ion serial: <filter> status: Discharging cycles: 203
      Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter>
      charge: 55% (should be ignored) rechargeable: yes status: Discharging
    CPU:
      Info: Quad Core model: Intel Core i7-8565U bits: 64 type: MT MCP arch: Kaby Lake
      note: check family: 6 model-id: 8E (142) stepping: C (12) microcode: DE
      L2 cache: 8 MiB
      flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 32012
      Speed: 500 MHz min/max: 400/4600 MHz Core speeds (MHz): 1: 500 2: 500 3: 500 4: 500
      5: 500 6: 500 7: 500 8: 500
      Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
      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: Enhanced IBRS, IBPB: conditional, RSB filling
      Type: srbds mitigation: TSX disabled
      Type: tsx_async_abort status: Not affected
    Graphics:
      Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel
      bus ID: 00:02.0 chip ID: 8086:3ea0
      Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo bus ID: 1-4:3
      chip ID: 13d3:56b2
      Display: x11 server: X.Org 1.20.10 compositor: picom v: git-dac85 driver: intel
      unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1
      Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
      s-diag: 582mm (22.9")
      Monitor-1: HDMI1 res: 1920x1080 hz: 60 dpi: 92 size: 530x300mm (20.9x11.8")
      diag: 609mm (24")
      OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 20.3.1
      direct render: Yes
    Audio:
      Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
      driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci bus ID: 00:1f.3
      chip ID: 8086:9dc8
      Sound Server: ALSA v: k5.10.2-2-MANJARO
    Network:
      Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel
      port: 3000 bus ID: 00:14.3 chip ID: 8086:9df0
      IF: wlp0s20f3 state: up mac: <filter>
    Drives:
      Local Storage: total: 953.87 GiB used: 16.98 GiB (1.8%)
      SMART Message: Required tool smartctl not installed. Check --recommends
      ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKKW010T8L
      size: 953.87 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
      lanes: 4 serial: <filter> rev: L12C temp: 32.9 C
    Partition:
      ID-1: / raw size: 45 GiB size: 44.04 GiB (97.88%) used: 12.37 GiB (28.1%) fs: ext4
      dev: /dev/nvme0n1p5 maj-min: 259:5
      ID-2: /boot/efi raw size: 260 MiB size: 256 MiB (98.46%) used: 28.8 MiB (11.2%)
      fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
      ID-3: /home raw size: 30 GiB size: 29.4 GiB (98.01%) used: 4.58 GiB (15.6%) fs: ext4
      dev: /dev/nvme0n1p2 maj-min: 259:2
    Swap:
      Kernel: swappiness: 60 (default) cache pressure: 100 (default)
      ID-1: swap-1 type: partition size: 5 GiB used: 0 KiB (0.0%) priority: -2
      dev: /dev/nvme0n1p4 maj-min: 259:4
    Sensors:
      System Temperatures: cpu: 36.0 C mobo: N/A
      Fan Speeds (RPM): N/A
    Info:
      Processes: 225 Uptime: 7m wakeups: 4 Memory: 7.53 GiB used: 2.02 GiB (26.8%)
      Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: 1262 pacman: 1254 lib: 378
      flatpak: 0 snap: 8 Shell: fish v: 3.1.2 running in: alacritty inxi: 3.2.01
1 Like