Hello, everyone! I hope you're all doing well. Since upgrading to ZorinOS 17.3, I've been facing issues while developing with VS Code and Firefox—tools I've always used in previous versions without any similar problems. Basically, after some time with both programs open, the system freezes. I'm not running anything heavy in these programs; in Firefox, I only use YouTube, sites like StackOverflow for troubleshooting, and a localhost tab to monitor website development in real-time.
I don’t think it’s a hardware issue (I'm using an Asus NP550XDA, btw), as I have an i5 1135G7 with 8GB of RAM and an NVMe SSD. I also don’t run unnecessary background processes. When I start the laptop, I only open VS Code and Firefox, and the issue still occurs.
Hi and welcome. I don't code, but used a search criteria of Ubuntu 22.04 as Zorin 17 is a fork of it, using Brave A.I. search engine via mojeek search engine:
" Ubuntu 22.04 Freezing
Users have reported freezing issues with Ubuntu 22.04 when using VS Code and Firefox. Here are some potential causes and solutions:
Memory and Swap Issues : Some users have found that increasing the swap size can help mitigate freezing. For example, adding a 4GB swap file has been effective in reducing freezes, although it might slightly impact system speed initially. You can check your current memory usage with the free -h command to see if you are running low on RAM or swap space. If you are, increasing the swap size might help.
Systemd-oomd Service : The systemd-oomd service is designed to kill processes when the system runs low on memory. This service might be causing applications like VS Code and Firefox to crash. You can disable this service to see if it resolves the issue. To disable it, you can follow the instructions in this link: How to disable the systemd-oom process killer in Ubuntu 22.04.
GPU and Driver Issues : Issues with GPU drivers, especially NVIDIA, can cause freezing. Some users have reported that disabling "Allow Flipping" in the NVIDIA settings under OpenGL settings can help. Additionally, using a different desktop environment (DE) like Xfce or KDE might alleviate the problem if it is related to GNOME or Mutter.
Hardware Acceleration : Disabling hardware acceleration in Firefox has been suggested as a potential fix, although it did not work for all users. You can try this by going to about:preferences#general in Firefox and unchecking "Use hardware acceleration when available."
CPU Frequency Governor : Some users have reported that changing the CPU frequency governor from "powersave" to "performance" or "ondemand" can improve system stability. You can change this setting by editing the GRUB configuration file (/etc/default/grub ) and adding or modifying the GRUB_CMDLINE_LINUX_DEFAULT line to include intel_pstate=disable and then running sudo update-grub and rebooting.
Update and Upgrade : Ensure that your system is up to date by running sudo apt update and sudo apt upgrade . Sometimes, bugs are fixed in newer versions of the software.
Try a Live Session : If the issue persists, you can try booting from a live USB to see if the problem is with your current installation or if it is a hardware issue. If the problem does not occur in the live session, it suggests that the issue is with your installation.
If none of these solutions work, it might be helpful to check the system logs for any error messages that could provide more insight into the cause of the freezes. You can view the logs using journalctl -b or by checking the /var/log directory."
Just to add make sure your Software Updater Software sources are coming from Main Server and not your country's server as there can be delays in latest updates coming through.
One Option could be to switch between Wayland and Xorg and check if it helps. to do that, go to the Login Screen (not the Lock Screen). Simple reboot for that. On the Login Screen click on Your Profile so that the Password Field appears. It has to be appeared. When it is appeared, you should see in the bottom right Corner a Gear Icon. Click on it and You should see 2 Options:
Zorin Desktop (that is the Wayland Option)
Zorin Desktop on Xorg
Which Option is active, you can see at the Dot at the Beginning. to switch, simply click on the other Option. then log in and test if it runs.
You could also turn off Hardware Acceleration in Firefox. Or - if enabled - turn off Fractional Scaling in the Display Settings.
Is it always the combination of both? I personally stopped using VS Code because while itself is not very heavy, some of the plugins that I was using were and the fans went crazy pretty often and annoying. I had a less powerful CPU when I did that, but also 8 GB of RAM.
So, just for good measure, keep the system monitor open and take a look at it from time to time.