Random freezes, sometimes system can't boot after restart forcing me to use hard reset

Hello, I’m using laptop HP Pavilion 15-cx with nvidia gtx 1050 mobile my system randomly freezes from time to time. After reading a bunch of topics my guess is that it could be something related to discrete NVIDIA videocard because their drivers is atrocious and proprietary. Few times system freezed while I was playing game on opengl with portproton.

I tried some things to fix some of the issues.
That’s the few that i remeber

Changed some of my grub options to fix fn key not changing and fix random freezes, that maked my system more stable but still the problem persist

GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 pci=nommconf acpi_backlight=native efi=runtime"

I changed kernels few times, having installed 5.4, 5.10 and 5.18, I try only to use LTS version, because their name imply they’re more stable.
Right now I’m on 5.10, changed it from 5.4 because often people tell to install more newer version of kernel.

I installed optimus manager and chaned it to hybrid, but it didn’t work so i used workaround from here GPU setup was initiated but Xorg post-start hook did not run

Installed TLP but didn’t change any settings.

Here’s the last log from when my system completely freeze when I casually watched movie on VLC player

ournalctl -b -1 | tail -200                                                                                                                                   PIPE ✘  1m 3s  
Aug 16 12:15:52 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:52 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:52 astydPC sddm[674]: Removing display ":0" ...
Aug 16 12:15:52 astydPC sddm[674]: Adding new display on vt 1 ...
Aug 16 12:15:52 astydPC sddm[674]: Loading theme configuration from ""
Aug 16 12:15:52 astydPC sddm[674]: Display server starting...
Aug 16 12:15:52 astydPC sddm[674]: Adding cookie to "/var/run/sddm/{4163db32-cb7a-4936-bcd6-c8c16a2673f8}"
Aug 16 12:15:52 astydPC sddm[674]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt1 -auth /var/run/sddm/{4163db32-cb7a-4936-bcd6-c8c16a2673f8} -noreset -displayfd 18
Aug 16 12:15:52 astydPC kernel: rtw_8822be 0000:02:00.0: start vif d2:a7:30:39:6d:fa on port 0
Aug 16 12:15:52 astydPC NetworkManager[393]: <info>  [1660626952.4222] manager: NetworkManager state is now DISCONNECTED
Aug 16 12:15:52 astydPC dbus-daemon[385]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=393 comm="/usr/bin/NetworkManager --no-daemon")
Aug 16 12:15:52 astydPC NetworkManager[393]: <info>  [1660626952.4234] device (wlo1): supplicant interface state: completed -> disconnected
Aug 16 12:15:52 astydPC NetworkManager[393]: <info>  [1660626952.4235] device (wlo1): supplicant interface state: disconnected -> interface_disabled
Aug 16 12:15:52 astydPC dbus-daemon[385]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
Aug 16 12:15:52 astydPC NetworkManager[393]: <info>  [1660626952.4238] modem-manager: ModemManager no longer available
Aug 16 12:15:52 astydPC NetworkManager[393]: <info>  [1660626952.4241] device (wlo1): supplicant interface state: interface_disabled -> disconnected
Aug 16 12:15:52 astydPC dbus-daemon[385]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=393 comm="/usr/bin/NetworkManager --no-daemon")
Aug 16 12:15:52 astydPC dbus-daemon[385]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
Aug 16 12:15:52 astydPC dbus-daemon[385]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=393 comm="/usr/bin/NetworkManager --no-daemon")
Aug 16 12:15:52 astydPC dbus-daemon[385]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
Aug 16 12:15:52 astydPC audit: BPF prog-id=21 op=UNLOAD
Aug 16 12:15:53 astydPC sddm[674]: Setting default cursor
Aug 16 12:15:53 astydPC wpa_supplicant[653]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 16 12:15:53 astydPC sddm[674]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Aug 16 12:15:53 astydPC sddm[674]: Display server started.
Aug 16 12:15:53 astydPC sddm[674]: Socket server starting...
Aug 16 12:15:53 astydPC sddm[674]: Socket server started.
Aug 16 12:15:53 astydPC sddm[674]: Loading theme configuration from "/usr/share/sddm/themes/sugar-candy/theme.conf"
Aug 16 12:15:53 astydPC sddm[674]: Greeter starting...
Aug 16 12:15:53 astydPC sddm[674]: Signal received: SIGTERM
Aug 16 12:15:53 astydPC sddm[674]: Socket server stopping...
Aug 16 12:15:53 astydPC sddm[674]: Socket server stopped.
Aug 16 12:15:53 astydPC sddm[674]: Display server stopping...
Aug 16 12:15:53 astydPC sddm-helper[7381]: [PAM] Starting...
Aug 16 12:15:53 astydPC audit[7381]: USER_AUTH pid=7381 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_permit acct="sddm" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:53 astydPC audit[7381]: USER_ACCT pid=7381 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_permit acct="sddm" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:53 astydPC sddm-helper[7381]: [PAM] Authenticating...
Aug 16 12:15:53 astydPC sddm-helper[7381]: [PAM] returning.
Aug 16 12:15:53 astydPC wpa_supplicant[653]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 16 12:15:54 astydPC wpa_supplicant[653]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 16 12:15:54 astydPC sddm[674]: Display server stopped.
Aug 16 12:15:54 astydPC sddm[674]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Aug 16 12:15:54 astydPC sddm[674]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
Aug 16 12:15:54 astydPC systemd[1]: sddm.service: Deactivated successfully.
Aug 16 12:15:54 astydPC systemd[1]: Stopped Simple Desktop Display Manager.
Aug 16 12:15:54 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sddm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:54 astydPC systemd[1]: sddm.service: Consumed 5min 4.847s CPU time.
Aug 16 12:15:54 astydPC systemd[1]: Stopping Optimus Manager Commands Daemon...
Aug 16 12:15:54 astydPC systemd[1]: Stopping User Login Management...
Aug 16 12:15:54 astydPC systemd[1]: Stopping Permit User Sessions...
Aug 16 12:15:54 astydPC python3[673]: [4974995] INFO: Process stop requested
Aug 16 12:15:54 astydPC python3[673]: [4974996] INFO: Closing and removing the socket...
Aug 16 12:15:54 astydPC python3[673]: [4974997] INFO: Goodbye !
Aug 16 12:15:54 astydPC systemd[1]: systemd-user-sessions.service: Deactivated successfully.
Aug 16 12:15:54 astydPC systemd[1]: Stopped Permit User Sessions.
Aug 16 12:15:54 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-user-sessions comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:54 astydPC systemd[1]: Stopped target Network.
Aug 16 12:15:54 astydPC systemd[1]: Stopped target Remote File Systems.
Aug 16 12:15:54 astydPC systemd[1]: Stopping Network Manager...
Aug 16 12:15:54 astydPC NetworkManager[393]: <info>  [1660626954.4578] caught SIGTERM, shutting down normally.
Aug 16 12:15:54 astydPC wpa_supplicant[653]: wlo1: CTRL-EVENT-DSCP-POLICY clear_all
Aug 16 12:15:54 astydPC systemd[1]: Stopping WPA supplicant...
Aug 16 12:15:54 astydPC NetworkManager[393]: <info>  [1660626954.4600] device (wlo1): state change: disconnected -> unmanaged (reason 'unmanaged', sys-iface-state: 'managed')
Aug 16 12:15:54 astydPC NetworkManager[393]: <info>  [1660626954.4619] device (wlo1): set-hw-addr: reset MAC address to 40:23:43:3D:2F:D5 (unmanage)
Aug 16 12:15:54 astydPC kernel: rtw_8822be 0000:02:00.0: stop vif d2:a7:30:39:6d:fa on port 0
Aug 16 12:15:54 astydPC systemd[1]: systemd-logind.service: Deactivated successfully.
Aug 16 12:15:54 astydPC systemd[1]: Stopped User Login Management.
Aug 16 12:15:54 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-logind comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:54 astydPC audit: BPF prog-id=29 op=UNLOAD
Aug 16 12:15:54 astydPC systemd[1]: optimus-manager.service: Deactivated successfully.
Aug 16 12:15:54 astydPC systemd[1]: Stopped Optimus Manager Commands Daemon.
Aug 16 12:15:54 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=optimus-manager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:54 astydPC systemd[1]: optimus-manager.service: Consumed 1.822s CPU time.
Aug 16 12:15:54 astydPC audit: BPF prog-id=31 op=UNLOAD
Aug 16 12:15:54 astydPC audit: BPF prog-id=30 op=UNLOAD
Aug 16 12:15:54 astydPC kernel: rtw_8822be 0000:02:00.0: start vif 40:23:43:3d:2f:d5 on port 0
Aug 16 12:15:54 astydPC wpa_supplicant[653]: wlo1: CTRL-EVENT-DSCP-POLICY clear_all
Aug 16 12:15:54 astydPC wpa_supplicant[653]: nl80211: deinit ifname=wlo1 disabled_11b_rates=0
Aug 16 12:15:54 astydPC dbus-daemon[385]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=393 comm="/usr/bin/NetworkManager --no-daemon")
Aug 16 12:15:54 astydPC wpa_supplicant[653]: wlo1: CTRL-EVENT-TERMINATING
Aug 16 12:15:54 astydPC dbus-daemon[385]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
Aug 16 12:15:54 astydPC systemd[1]: wpa_supplicant.service: Deactivated successfully.
Aug 16 12:15:54 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wpa_supplicant comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:54 astydPC systemd[1]: Stopped WPA supplicant.
Aug 16 12:15:54 astydPC NetworkManager[393]: <info>  [1660626954.9819] exiting (success)
Aug 16 12:15:54 astydPC systemd[1]: NetworkManager.service: Deactivated successfully.
Aug 16 12:15:54 astydPC systemd[1]: Stopped Network Manager.
Aug 16 12:15:54 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:54 astydPC systemd[1]: NetworkManager.service: Consumed 2.211s CPU time.
Aug 16 12:15:55 astydPC systemd[1]: Stopping D-Bus System Message Bus...
Aug 16 12:15:55 astydPC systemd[1]: dbus.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped D-Bus System Message Bus.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dbus comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: dbus.service: Consumed 4.135s CPU time.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Basic System.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Path Units.
Aug 16 12:15:55 astydPC systemd[1]: cups.path: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped CUPS Scheduler.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Slice Units.
Aug 16 12:15:55 astydPC systemd[1]: Removed slice User and Session Slice.
Aug 16 12:15:55 astydPC systemd[1]: user.slice: Consumed 1h 2min 49.108s CPU time.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Socket Units.
Aug 16 12:15:55 astydPC systemd[1]: cups.socket: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Closed CUPS Scheduler.
Aug 16 12:15:55 astydPC systemd[1]: dbus.socket: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Closed D-Bus System Message Bus Socket.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target System Initialization.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Local Encrypted Volumes.
Aug 16 12:15:55 astydPC systemd[1]: systemd-ask-password-console.path: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Aug 16 12:15:55 astydPC systemd[1]: systemd-ask-password-wall.path: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Local Integrity Protected Volumes.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Local Verity Protected Volumes.
Aug 16 12:15:55 astydPC systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Aug 16 12:15:55 astydPC systemd[1]: Stopping Set Up Additional Binary Formats...
Aug 16 12:15:55 astydPC systemd[1]: systemd-sysctl.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Apply Kernel Variables.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: systemd-modules-load.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Load Kernel Modules.
Aug 16 12:15:55 astydPC systemd[1]: Stopping Network Time Synchronization...
Aug 16 12:15:55 astydPC systemd[1]: Stopping Record System Boot/Shutdown in UTMP...
Aug 16 12:15:55 astydPC systemd[1]: systemd-timesyncd.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Network Time Synchronization.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timesyncd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: systemd-binfmt.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Set Up Additional Binary Formats.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-binfmt comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: systemd-backlight@backlight:intel_backlight.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: Removed slice Slice /system/systemd-backlight.
Aug 16 12:15:55 astydPC systemd[1]: proc-sys-fs-binfmt_misc.automount: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Unset automount Arbitrary Executable File Formats File System Automount Point.
Aug 16 12:15:55 astydPC audit[7393]: SYSTEM_SHUTDOWN pid=7393 uid=0 auid=4294967295 ses=4294967295 msg=' comm="systemd-update-utmp" exe="/usr/lib/systemd/systemd-update-utmp" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: proc-sys-fs-binfmt_misc.mount: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: systemd-update-utmp.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Record System Boot/Shutdown in UTMP.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-update-utmp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: systemd-tmpfiles-setup.service: Deactivated successfully.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: Stopped Create Volatile Files and Directories.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Local File Systems.
Aug 16 12:15:55 astydPC systemd[1]: Unmounting /boot/efi...
Aug 16 12:15:55 astydPC systemd[1]: Unmounting /tmp...
Aug 16 12:15:55 astydPC systemd[1]: boot-efi.mount: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Unmounted /boot/efi.
Aug 16 12:15:55 astydPC audit: BPF prog-id=25 op=UNLOAD
Aug 16 12:15:55 astydPC systemd[1]: tmp.mount: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Unmounted /tmp.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Swaps.
Aug 16 12:15:55 astydPC systemd[1]: Deactivating swap /dev/disk/by-id/nvme-SAMSUNG_MZVLB512HAJQ-000H1_S3WTNX0M929711-part3...
Aug 16 12:15:55 astydPC systemd[1]: systemd-fsck@dev-disk-by\x2duuid-AF9C\x2d86FF.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped File System Check on /dev/disk/by-uuid/AF9C-86FF.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-fsck@dev-disk-by\x2duuid-AF9C\x2d86FF comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: Removed slice Slice /system/systemd-fsck.
Aug 16 12:15:55 astydPC systemd[1]: Stopped target Preparation for Local File Systems.
Aug 16 12:15:55 astydPC systemd[1]: Stopping Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
Aug 16 12:15:55 astydPC systemd[1]: systemd-remount-fs.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Remount Root and Kernel File Systems.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Create Static Device Nodes in /dev.
Aug 16 12:15:55 astydPC systemd[1]: dev-disk-by\x2dpartuuid-4a2ec99c\x2d4767\x2d0444\x2d8d12\x2deba60b9c3196.swap: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Deactivated swap /dev/disk/by-partuuid/4a2ec99c-4767-0444-8d12-eba60b9c3196.
Aug 16 12:15:55 astydPC systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:04:00.0\x2dnvme\x2d1\x2dpart3.swap: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:04:00.0-nvme-1-part3.
Aug 16 12:15:55 astydPC systemd[1]: dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVLB512HAJQ\x2d000H1_S3WTNX0M929711\x2dpart3.swap: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Deactivated swap /dev/disk/by-id/nvme-SAMSUNG_MZVLB512HAJQ-000H1_S3WTNX0M929711-part3.
Aug 16 12:15:55 astydPC systemd[1]: dev-disk-by\x2did-nvme\x2deui.0025388991b5cb50\x2dpart3.swap: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Deactivated swap /dev/disk/by-id/nvme-eui.0025388991b5cb50-part3.
Aug 16 12:15:55 astydPC systemd[1]: dev-nvme0n1p3.swap: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Deactivated swap /dev/nvme0n1p3.
Aug 16 12:15:55 astydPC systemd[1]: dev-disk-by\x2duuid-944f4844\x2d8966\x2d4cf1\x2d94d3\x2dcbeaaf2486cc.swap: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Deactivated swap /dev/disk/by-uuid/944f4844-8966-4cf1-94d3-cbeaaf2486cc.
Aug 16 12:15:55 astydPC systemd[1]: Reached target Unmount All Filesystems.
Aug 16 12:15:55 astydPC systemd[1]: lvm2-monitor.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Stopped Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lvm2-monitor comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: Reached target System Shutdown.
Aug 16 12:15:55 astydPC systemd[1]: Reached target Late Shutdown Services.
Aug 16 12:15:55 astydPC systemd[1]: systemd-poweroff.service: Deactivated successfully.
Aug 16 12:15:55 astydPC systemd[1]: Finished System Power Off.
Aug 16 12:15:55 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-poweroff comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-poweroff comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 16 12:15:55 astydPC systemd[1]: Reached target System Power Off.
Aug 16 12:15:55 astydPC systemd[1]: Shutting down.
Aug 16 12:15:55 astydPC audit: BPF prog-id=24 op=UNLOAD
Aug 16 12:15:55 astydPC audit: BPF prog-id=23 op=UNLOAD
Aug 16 12:15:55 astydPC audit: BPF prog-id=22 op=UNLOAD
Aug 16 12:15:55 astydPC audit: BPF prog-id=28 op=UNLOAD
Aug 16 12:15:55 astydPC audit: BPF prog-id=27 op=UNLOAD
Aug 16 12:15:55 astydPC audit: BPF prog-id=26 op=UNLOAD
Aug 16 12:15:55 astydPC systemd-shutdown[1]: Syncing filesystems and block devices.
Aug 16 12:15:55 astydPC systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Aug 16 12:15:55 astydPC systemd-journald[249]: Received SIGTERM from PID 1 (systemd-shutdow).
Aug 16 12:15:55 astydPC systemd-journald[249]: Journal stopped

My system info

System:
  Kernel: 5.10.136-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=f80d4a95-3df9-439a-a286-44988d8123e4 rw quiet
    udev.log_priority=3 pci=nommconf acpi_backlight=native efi=runtime
  Desktop: KDE Plasma v: 5.24.6 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-cx0xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8478 v: 70.60 serial: <superuser required> UEFI: Insyde
    v: F.26 date: 08/10/2021
Battery:
  ID-1: BAT1 charge: 34.8 Wh (65.9%) condition: 52.8/52.7 Wh (100.2%)
    volts: 11.2 min: 11.6 model: Hewlett-Packard PABAS0241231 type: Li-ion
    serial: <filter> status: discharging
Memory:
  RAM: total: 7.66 GiB used: 3.5 GiB (45.7%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges
    required.
CPU:
  Info: model: Intel Core i5-8300H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158)
    stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 799 high: 800 min/max: 800/4000 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 799 bogomips: 36812
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  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: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
    vendor: Hewlett-Packard driver: nvidia v: 515.65.01
    alternate: nouveau,nvidia_drm non-free: 515.xx+ status: current (as of
    2022-07) arch: Pascal code: GP10x process: TSMC 16nm built: 2016-21 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s
    bus-ID: 01:00.0 chip-ID: 10de:1c8c class-ID: 0300
  Device-3: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD
    Integrated Webcam type: USB driver: uvcvideo bus-ID: 1-5:2
    chip-ID: 05c8:03bc class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: AU Optronics 0x23ed built: 2016 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 22.1.6
    direct render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci
    bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  Sound Server-1: ALSA v: k5.10.136-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter
    vendor: Hewlett-Packard driver: rtw_8822be v: N/A modules: rtw88_8822be
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 02:00.0
    chip-ID: 10ec:b822 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: Unknown
    lanes: 63 link-max: gen: 5 speed: 32 GT/s port: 3000 bus-ID: 05:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth 4.2 Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-14:3 chip-ID: 0bda:b00b class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 291.94 GiB (61.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB512HAJQ-000H1 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EXA73H1Q temp: 43.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 460.64 GiB size: 452.34 GiB (98.20%) used: 291.94 GiB
    (64.5%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: f80d4a95-3df9-439a-a286-44988d8123e4
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 312 KiB
    (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: NO_LABEL
    uuid: AF9C-86FF
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
    uuid: 944f4844-8966-4cf1-94d3-cbeaaf2486cc
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-5:2 info: Cheng Uei Precision Industry (Foxlink) HP Wide
    Vision HD Integrated Webcam type: Video driver: uvcvideo interfaces: 2
    rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 05c8:03bc class-ID: 0e02
  Device-2: 1-14:3 info: Realtek Bluetooth 4.2 Adapter type: Bluetooth
    driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 500mA
    chip-ID: 0bda:b00b class-ID: e001 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 45.0 C pch: 59.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 239 Uptime: 26m wakeups: 1 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.1 clang: 14.0.6
  Packages: pacman: 1478 lib: 456 flatpak: 0 Shell: Zsh v: 5.9 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.20

Hello,

That model was mentioned quite often to have the freezing issue

Also you mentioned it before

To use the Nvidia GPU are you running it with
prime-run vlc

or is running via the iGPU ?

There is nothing related to VLC in your journal …

Sorry, I’m not an experienced Linux user, i just launched an .mkv file and watched it with vlc player.

I know is quite a task to read all of PRIME - ArchWiki but in order to get familiar with how a hybrid GPU laptop works under linux you have to get trough it.

If everything runs via the Intel GPU, then at some point it might be choked and cause the system to freeze, even tho you have the proper GPU drivers installed, reasons why some software can be run to use the dGPU, aka the Nvidia GPU in your case.

In the ArchWiki
xrandr yields two providers is it okay for my laptop to have this? And why is its name “modesetting”?

xrandr --listproviders                                                                                        ✔ 
Providers: number : 1
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting

Should I always run programs like this, is there no other way to automatically detect it or something, that was one of the reason i installed optimus-manager

you can add another parameter to the grub:
pcie_aspm=off
update grub: sudo update-grub reboot and see if that helped

also did you uncomment the 2 lines in sddm.conf when installing optimus?

Not all require powerful GPU, but you can test if has different outcomes. Also check/compare temperatures and when the freeze happen if is or without the prime-run thing …

Which one do you mean?

edit the file /etc/sddm.conf and simply put a # before the line starting with DisplayCommand and the one starting with DisplayStopCommand.
kate /etc/sddm.conf

Can you please explain a little why i have to do it and what it will do, atleast for me to undertand what I’m doing with my system, cause from what i grasp sddm is a lock screen and it’s probably its settings.

for optimus to work properly you need to uncomment the 2 display commands line in the ssdm.conf
from optimus github:
Manjaro ships with a default configuration for SDDM (the default login manager for KDE) which overrides some keys needed by optimus-manager. To use optimus-manager, you need to edit the file /etc/sddm.conf and simply put a # before the line starting with DisplayCommand and the one starting with DisplayStopCommand.

Did all of this, today again it did freeze, and i again pushed hard reset after waiting for some time, it didn’t boot after first reset and freeze on login screen and after another hard reset it did boot.
freeze on login screen

journalctl -b -1 | tail -100                                                                                  ✔ 
Aug 17 22:45:21 astydPC dbus-daemon[443]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Aug 17 22:45:21 astydPC systemd[1]: Started WPA supplicant.
Aug 17 22:45:21 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=wpa_supplicant comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:21 astydPC wpa_supplicant[638]: Successfully initialized wpa_supplicant
Aug 17 22:45:21 astydPC wpa_supplicant[638]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface.P2PDevice dbus_property=P2PDeviceConfig getter failed
Aug 17 22:45:21 astydPC NetworkManager[450]: <info>  [1660751121.9052] device (wlo1): supplicant interface state: internal-starting -> disconnected
Aug 17 22:45:21 astydPC NetworkManager[450]: <info>  [1660751121.9052] device (wlo1): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Aug 17 22:45:22 astydPC kernel: Console: switching to colour frame buffer device 240x67
Aug 17 22:45:22 astydPC kernel: i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC295: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0:    inputs:
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
Aug 17 22:45:22 astydPC kernel: snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
Aug 17 22:45:22 astydPC systemd[1]: Created slice Slice /system/systemd-backlight.
Aug 17 22:45:22 astydPC systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Aug 17 22:45:22 astydPC kernel: videodev: Linux video capture interface: v2.00
Aug 17 22:45:22 astydPC systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Aug 17 22:45:22 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:22 astydPC kernel: kauditd_printk_skb: 22 callbacks suppressed
Aug 17 22:45:22 astydPC kernel: audit: type=1130 audit(1660751122.160:33): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:22 astydPC kernel: Bluetooth: Core ver 2.22
Aug 17 22:45:22 astydPC kernel: NET: Registered protocol family 31
Aug 17 22:45:22 astydPC kernel: Bluetooth: HCI device and connection manager initialized
Aug 17 22:45:22 astydPC kernel: Bluetooth: HCI socket layer initialized
Aug 17 22:45:22 astydPC kernel: Bluetooth: L2CAP socket layer initialized
Aug 17 22:45:22 astydPC kernel: Bluetooth: SCO socket layer initialized
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
Aug 17 22:45:22 astydPC kernel: input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
Aug 17 22:45:22 astydPC systemd[1]: Starting Save/Restore Sound Card State...
Aug 17 22:45:22 astydPC systemd[1]: Manage Sound Card State (restore and store) was skipped because of a failed condition check (ConditionPathExists=/etc/alsa/state-daemon.conf).
Aug 17 22:45:22 astydPC systemd[1]: Finished Save/Restore Sound Card State.
Aug 17 22:45:22 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=alsa-restore comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:22 astydPC kernel: audit: type=1130 audit(1660751122.220:34): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=alsa-restore comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:22 astydPC systemd[1]: Reached target Sound Card.
Aug 17 22:45:22 astydPC python3[482]: [1554] INFO: Available modules: ['nouveau', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
Aug 17 22:45:22 astydPC python3[482]: [1554] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
Aug 17 22:45:22 astydPC python3[482]: [1558] INFO: switching=none, nothing to do
Aug 17 22:45:22 astydPC kernel: usbcore: registered new interface driver btusb
Aug 17 22:45:22 astydPC kernel: uvcvideo: Found UVC 1.00 device HP Wide Vision HD Camera (05c8:03bc)
Aug 17 22:45:22 astydPC systemd[1]: Starting Bluetooth service...
Aug 17 22:45:22 astydPC systemd[665]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
Aug 17 22:45:22 astydPC kernel: input: HP Wide Vision HD Camera: HP Wi as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input19
Aug 17 22:45:22 astydPC kernel: usbcore: registered new interface driver uvcvideo
Aug 17 22:45:22 astydPC kernel: USB Video Class driver (1.1.1)
Aug 17 22:45:22 astydPC bluetoothd[665]: Bluetooth daemon 5.65
Aug 17 22:45:22 astydPC systemd[1]: Started Bluetooth service.
Aug 17 22:45:22 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:22 astydPC systemd[1]: Reached target Bluetooth Support.
Aug 17 22:45:22 astydPC kernel: audit: type=1130 audit(1660751122.567:35): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:22 astydPC bluetoothd[665]: Starting SDP server
Aug 17 22:45:22 astydPC kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Aug 17 22:45:22 astydPC kernel: Bluetooth: BNEP filters: protocol multicast
Aug 17 22:45:22 astydPC kernel: Bluetooth: BNEP socket layer initialized
Aug 17 22:45:22 astydPC bluetoothd[665]: Bluetooth management interface 1.18 initialized
Aug 17 22:45:22 astydPC kernel: Bluetooth: hci0: RTL: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
Aug 17 22:45:22 astydPC kernel: Bluetooth: hci0: RTL: rom_version status=0 version=2
Aug 17 22:45:22 astydPC kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_fw.bin
Aug 17 22:45:22 astydPC kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8822b_config.bin
Aug 17 22:45:22 astydPC kernel: Bluetooth: hci0: RTL: cfg_sz 14, total sz 20270
Aug 17 22:45:23 astydPC wpa_supplicant[638]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 17 22:45:23 astydPC ModemManager[460]: <info>  [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1b.0/0000:02:00.0': not supported by any plugin
Aug 17 22:45:23 astydPC ModemManager[460]: <info>  [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1d.4/0000:05:00.0': not supported by any plugin
Aug 17 22:45:23 astydPC wpa_supplicant[638]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 17 22:45:23 astydPC wpa_supplicant[638]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 17 22:45:23 astydPC python3[482]: [2870] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
Aug 17 22:45:23 astydPC python3[482]: [2871] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20220817T224520', 'requested_mode': 'integrated'}
Aug 17 22:45:23 astydPC python3[482]: [2871] INFO: Xorg pre-start hook completed successfully.
Aug 17 22:45:23 astydPC systemd[1]: Started Optimus Manager Commands Daemon.
Aug 17 22:45:23 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=optimus-manager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:23 astydPC kernel: audit: type=1130 audit(1660751123.594:36): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=optimus-manager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:23 astydPC systemd[1]: Started Simple Desktop Display Manager.
Aug 17 22:45:23 astydPC kernel: audit: type=1130 audit(1660751123.597:37): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sddm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:23 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sddm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:45:23 astydPC systemd[1]: Reached target Graphical Interface.
Aug 17 22:45:23 astydPC systemd[1]: Startup finished in 4.393s (firmware) + 5.355s (loader) + 2.059s (kernel) + 4.534s (userspace) = 16.343s.
Aug 17 22:45:23 astydPC kernel: Bluetooth: hci0: RTL: fw version 0xab6b705c
Aug 17 22:45:23 astydPC wpa_supplicant[638]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Aug 17 22:45:23 astydPC sddm[674]: Initializing...
Aug 17 22:45:23 astydPC sddm[674]: Starting...
Aug 17 22:45:23 astydPC sddm[674]: Logind interface found
Aug 17 22:45:23 astydPC kernel: NET: Registered protocol family 38
Aug 17 22:45:23 astydPC sddm[674]: Adding new display on vt 1 ...
Aug 17 22:45:23 astydPC sddm[674]: Loading theme configuration from ""
Aug 17 22:45:23 astydPC sddm[674]: Display server starting...
Aug 17 22:45:23 astydPC sddm[674]: Adding cookie to "/var/run/sddm/{98b60664-a3e0-48d0-b5d4-2d6302c10c52}"
Aug 17 22:45:23 astydPC sddm[674]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt1 -auth /var/run/sddm/{98b60664-a3e0-48d0-b5d4-2d6302c10c52} -noreset -displayfd 17
Aug 17 22:45:23 astydPC python3[673]: [4] INFO: # Commands daemon
Aug 17 22:45:23 astydPC python3[673]: [4] INFO: Opening UNIX socket
Aug 17 22:45:23 astydPC python3[673]: [5] INFO: Awaiting commands
Aug 17 22:45:27 astydPC kernel: nvidia: module license 'NVIDIA' taints kernel.
Aug 17 22:45:27 astydPC kernel: Disabling lock debugging due to kernel taint
Aug 17 22:45:27 astydPC kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511

freeze that happened first time

journalctl -b -2 | tail -100                                                                                  ✔ 
Aug 17 22:30:11 astydPC systemd[799]: app-Lost\x20Light-3ac33c87979a449f9d48ddf9c72b7a69.scope: Consumed 4h 38min 49.242s CPU time.
Aug 17 22:30:11 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 58223, resource id: 37749789, major code: 18 (ChangeProperty), minor code: 0
Aug 17 22:30:11 astydPC kded5[872]: Service  ":1.258" unregistered
Aug 17 22:30:13 astydPC pkexec[44803]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Aug 17 22:30:13 astydPC audit[44803]: USER_START pid=44803 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/pkexec" hostname=? addr=? terminal=? res=success'
Aug 17 22:30:13 astydPC kernel: audit: type=1105 audit(1660750213.021:155): pid=44803 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/pkexec" hostname=? addr=? terminal=? res=success'
Aug 17 22:30:13 astydPC pkexec[44803]: astyd256: Executing command [USER=root] [TTY=unknown] [CWD=/home/astyd256] [COMMAND=/usr/lib/gamemode/cpugovctl set powersave]
Aug 17 22:30:13 astydPC gamemoded[807]: ERROR: Could not inspect tasks for client [41747]! Skipping ioprio optimisation.
Aug 17 22:30:17 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:17 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:18 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:18 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:18 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:18 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:18 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:18 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:20 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:20 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:30:41 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9229, resource id: 19986164, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:30:45 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 11891, resource id: 19987778, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:30:45 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11892, resource id: 19987778, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:30:46 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 13510, resource id: 19987964, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:30:46 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 13511, resource id: 19987964, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:31:48 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 41300, resource id: 19987950, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:31:48 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 41301, resource id: 19987950, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:31:53 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:31:53 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:32:03 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 45077, resource id: 19990994, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:32:06 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 46825, resource id: 19991300, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:32:06 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 46826, resource id: 19991300, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:32:23 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 48707, resource id: 19991398, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:32:23 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48708, resource id: 19991398, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:32:58 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:32:58 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:02 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:02 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:02 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:02 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:04 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:04 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:04 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:04 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:33:07 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 61274, resource id: 19991482, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:33:25 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 63135, resource id: 19992426, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:33:25 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 63136, resource id: 19992426, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:34:29 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:29 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:38 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:38 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:39 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:39 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:40 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:40 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:40 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:40 astydPC rtkit-daemon[967]: Supervising 10 threads of 6 processes of 1 users.
Aug 17 22:34:40 astydPC rtkit-daemon[967]: Successfully made thread 45589 of process 45328 owned by '1000' RT at priority 10.
Aug 17 22:34:40 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:34:42 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:34:42 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:35:08 astydPC kernel: r8169 0000:05:00.0 eno1: Link is Down
Aug 17 22:35:09 astydPC kernel: usb 1-1: USB disconnect, device number 9
Aug 17 22:35:12 astydPC kernel: hp_wmi: bad event status 0x5
Aug 17 22:35:14 astydPC NetworkManager[402]: <info>  [1660750514.7399] device (eno1): state change: activated -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
Aug 17 22:35:14 astydPC NetworkManager[402]: <info>  [1660750514.7481] dhcp4 (eno1): canceled DHCP transaction
Aug 17 22:35:14 astydPC NetworkManager[402]: <info>  [1660750514.7482] dhcp4 (eno1): activation: beginning transaction (timeout in 45 seconds)
Aug 17 22:35:14 astydPC NetworkManager[402]: <info>  [1660750514.7482] dhcp4 (eno1): state changed no lease
Aug 17 22:35:14 astydPC NetworkManager[402]: <info>  [1660750514.7790] policy: set 'Papich' (wlo1) as default for IPv4 routing and DNS
Aug 17 22:35:14 astydPC dbus-daemon[395]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.3' (uid=0 pid=402 comm="/usr/bin/NetworkManager --no-daemon")
Aug 17 22:35:14 astydPC systemd[1]: Starting Network Manager Script Dispatcher Service...
Aug 17 22:35:14 astydPC audit: BPF prog-id=34 op=UNLOAD
Aug 17 22:35:14 astydPC kernel: audit: type=1334 audit(1660750514.793:156): prog-id=34 op=UNLOAD
Aug 17 22:35:14 astydPC dbus-daemon[395]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Aug 17 22:35:14 astydPC systemd[1]: Started Network Manager Script Dispatcher Service.
Aug 17 22:35:14 astydPC audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:35:14 astydPC kernel: audit: type=1130 audit(1660750514.813:157): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:35:14 astydPC plasmashell[913]: Could not find the Plasmoid for Plasma::FrameSvgItem(0x558ba11d1d10) QQmlContext(0x558b9e01cbe0) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
Aug 17 22:35:14 astydPC plasmashell[913]: Could not find the Plasmoid for Plasma::FrameSvgItem(0x558ba11d1d10) QQmlContext(0x558b9e01cbe0) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
Aug 17 22:35:14 astydPC plasmashell[913]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:219:21: QML SelectableLabel: Binding loop detected for property "implicitWidth"
Aug 17 22:35:14 astydPC plasmashell[913]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:219:21: QML SelectableLabel: Binding loop detected for property "implicitWidth"
Aug 17 22:35:14 astydPC plasmashell[913]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationItem.qml:219:21: QML SelectableLabel: Binding loop detected for property "implicitHeight"
Aug 17 22:35:24 astydPC systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Aug 17 22:35:24 astydPC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:35:24 astydPC kernel: audit: type=1131 audit(1660750524.825:158): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 17 22:36:14 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:36:14 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:36:15 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:36:15 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:36:15 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:36:15 astydPC rtkit-daemon[967]: Supervising 11 threads of 7 processes of 1 users.
Aug 17 22:36:15 astydPC rtkit-daemon[967]: Successfully made thread 45963 of process 45456 owned by '1000' RT at priority 10.
Aug 17 22:36:15 astydPC rtkit-daemon[967]: Supervising 12 threads of 8 processes of 1 users.
Aug 17 22:36:39 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 44016, resource id: 19996415, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:36:39 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 44017, resource id: 19996415, major code: 14 (GetGeometry), minor code: 0
Aug 17 22:37:07 astydPC rtkit-daemon[967]: Supervising 12 threads of 8 processes of 1 users.
Aug 17 22:37:07 astydPC rtkit-daemon[967]: Supervising 12 threads of 8 processes of 1 users.
Aug 17 22:40:00 astydPC rtkit-daemon[967]: Supervising 12 threads of 8 processes of 1 users.
Aug 17 22:40:00 astydPC rtkit-daemon[967]: Supervising 12 threads of 8 processes of 1 users.
Aug 17 22:40:36 astydPC NetworkManager[402]: <info>  [1660750836.1076] dhcp4 (wlo1): state changed new lease, address=192.168.1.138
Aug 17 22:40:37 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 48053, resource id: 19998009, major code: 3 (GetWindowAttributes), minor code: 0
Aug 17 22:40:37 astydPC kwin_x11[875]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48054, resource id: 19998009, major code: 14 (GetGeometry), minor code: 0

Could be something with this BadWindow BadDrawable
Btw I always notice that first thing that starts lagging is plasma interface, for example app panel.

those bad windows baddrawable are ‘normal’ plasma logs, everyone has them using plasma, ignore them…
do you have installed optimus? post output from:
pacman -Qs optimus

pacman -Qs optimus                                                                                            ✔ 
local/optimus-manager 1.4-4
    Management utility to handle GPU switching for Optimus laptops
local/optimus-manager-qt 1.6.9-1
    A Qt interface for Optimus Manager that allows to configure and switch GPUs on Optimus laptops using the tray menu

Btw I installed optimus manager qt and it somehow doesn’t work

what do you mean it doesnt work? are you booting into black screen?
post also output from:
mhwd-kernel -li && mhwd -l && mhwd -li
find /etc/X11/ -name "*.conf"
ls /etc/modprobe.d

I mean there’s no optimus settings in tray.

hwd-kernel -li && mhwd -l && mhwd -li                                                                  
find /etc/X11/ -name "*.conf"
ls /etc/modprobe.d

Currently running: 5.10.136-1-MANJARO (linux510)
The following kernels are installed in your system:
   * linux510
   * linux518
   * linux54
   * linux518-rt
> 0000:01:00.0 (0300:10de:1c8c) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.11.26               false            PCI
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
    video-nvidia-390xx            2021.11.26               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:05:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.11.04               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.11.26               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
           video-linux            2018.05.04                true            PCI
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI


Warning: No installed USB configs!
/etc/X11/mhwd.d/nvidia.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/xorg.conf.d/10-optimus-manager.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
mhwd-gpu.conf

check in the application menu if its there … if its go to system settings/startup and see if its there, if not add it, click apply reboot

Yeah I added setting in the tray, after some testing system works much better, I’m using the hybrid mode most of the time, still not sure if I’m doing any power management. Though sometimes system still freeze, but unfreeze after a little bit of time. Mostly while I watching videos on youtube or doing something in dolphin.

temperature ???