After about a minute of watching any youtube video on either Chrome or Firefox the computer becomes completely unresponsive, screen is stuck, audio is looping the last second, the computer does not even register headphones being plugged into the 3.5mm jack. This is a problem that seems to have come out of the blue as I have not made any hardware or software changes, the only things the machine was used was general internet browsing, and watching online and locally stored videos. The freeze only seems to go away if I hard shutdown the computer, and persists after several reboots.
The problem only seems to affect youtube, VLC and other sites like twitch work fine.
Output of neofetch
:
.-/+oossssoo+/-. barba@lenovo
`:+ssssssssssssssssss+:` -------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04.2 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: 81LK IdeaPad L340-15IRH Gaming
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.11.0-25-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 12 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 2289 (dpkg), 6 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.17
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME
ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Adwaita
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Adwaita-dark [GTK2/3]
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Yaru [GTK2/3]
+sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: gnome-terminal
/ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: Intel i7-9750H (12) @ 2.600GHz
.ossssssssssssssssssdMMMNysssso. GPU: Intel UHD Graphics 630
-+sssssssssssssssssyyyssss+- GPU: NVIDIA GeForce GTX 1650 Mobile
`:+ssssssssssssssssss+:` Memory: 1283MiB / 7835MiB
.-/+oossssoo+/-.
Attempted fixes and diagnostics:
- running the browser from a terminal shows no error codes prior to the freeze
- updating to the latest software using
sudo apt upgrade
- hardware usage graphs and temperatures all look normal until freeze (as reported by System monitor and
sensors
) - increasing swap file size to 4G and increasing vm.swappiness to 60 (this fix only seems to delay the problem,but it still exists)
output of free -h
, sysctl vm.swappiness
& swapon -s
as suggested by @heynnema:
total used free shared buff/cache available
Mem: 7,7Gi 1,2Gi 5,5Gi 29Mi 964Mi 6,2Gi
Swap: 472Mi 0B 472Mi
vm.swappiness = 10
Filename Type Size Used Priority
/swapfile file 483896 0 -2
- output of
top
at the moment of freeze
I am using firefox to browse the web, but I have also tested Chrome and the problem persists. - The nVidia driver was installed manually as Software & Updates wasn't downloading working drivers for whatever reason. The specific version is
460.91.03
, as shown bynvidia-smi
- Output of
sudo dmidecode -s bios-version
:BGCN33WW
- Using the intel gpu does not help, in fact it is easier to cause the bug when using it
- NEW output of
free -h
:
total used free shared buff/cache available
Mem: 7,7Gi 1,2Gi 5,3Gi 157Mi 1,1Gi 6,0Gi
Swap: 4,0Gi 0B 4,0Gi
- NEW output of
sysctl vm.swappiness
:
vm.swappiness = 60
- NEW output of
swapon -s
:
Filename Type Size Used Priority
/swapfile file 4194300 0 -2
- output of
grep -i swap /etc/fstab
:
/swapfile none swap sw 0 0