Random Freezes and character repeating

My system is freezing randomly for 2-3 seconds and during that time sound and mouse stops working. And sometimes when i try to type The first character duplicate it self for example

if i want to type “Apple” the system sometimes types “Aapple”. I have gone through every post on this forum but its not fixing my problem.

System spec :
i7 9th gen
gtx 1650 gpu @ video–hybrid-nvidia-455-prime
Manjaro linux using gnome and running 5.8.x kernel.

I have reinstalled gpu drivers according to one post but its not helping me

I have the same issue sometimes. In /var/log/Xorg.0.log i get then messages like that:

[ 14839.587] (EE) event14 - Logitech USB Receiver: client bug: event processing lagging behind by 33ms, your system is too slow

Didn’t solve it, but disabling mitigation at the kernel reduces it much.

https://wiki.archlinux.org/index.php/Improving_performance#Turn_off_CPU_exploit_mitigations

What could also be possible is that you are running out of ram and the system is swapping. Sometimes it only takes seconds, sometimes minutes of delay.

free -h

https://wiki.archlinux.org/index.php/swap#Swappiness

~ >>> free -h
total used free shared buff/cache available
Mem: 15Gi 1.7Gi 12Gi 99Mi 1.3Gi 13Gi
Swap: 8.6Gi 0B 8.6Gi
~ >>>

XD bro i got 16 gigs. its more than enough

How should one know if one don’t tell? xD

Well check your /etc/tlp.conf for power saving defaults.

Since you use prime, you will run intel as main gpu. Therefore desktop animations are running on this gpu. I would try to disable them in “gnome tweaks settings” or something like that.

But i believe it has to do with the security mitigation’s of the kernel. If you disable them, you will have a exploit hole, but on the other hand you will have a performance boost up to 50% on intel cpus.

Would be nice if you could provide some logs?

journalclt -b0
for x in $(ls /var/log/Xorg.*.log*); do echo -e "\n---$x---\n\n$(cat $x)"; done

(If no files there try to locate them: locate Xorg.0.log )

Xorg log :

[ 502.262] (II) systemd-logind: got pause for 13:93
[ 502.262] (II) systemd-logind: got pause for 13:83
[ 502.262] (II) systemd-logind: got pause for 13:91
[ 502.262] (II) systemd-logind: got pause for 13:82
[ 502.262] (II) systemd-logind: got pause for 13:92
[ 502.262] (II) systemd-logind: got pause for 13:65
[ 502.262] (II) systemd-logind: got pause for 13:90
[ 502.262] (II) systemd-logind: got pause for 226:0
[ 502.263] (II) systemd-logind: got pause for 13:72
[ 502.263] (II) systemd-logind: got pause for 13:84
[ 502.263] (II) systemd-logind: got pause for 13:66
[ 502.263] (II) systemd-logind: got pause for 13:85
[ 502.263] (II) systemd-logind: got pause for 13:73
[ 502.263] (II) systemd-logind: got pause for 13:71
[ 502.263] (II) systemd-logind: got pause for 13:68
[ 502.263] (II) systemd-logind: got pause for 13:89
[ 502.263] (II) systemd-logind: got pause for 13:67