Score:0

Ubuntu 20.04.3 with issues in Acer Nitro 5 with Ryzen 7 (Lagging/freezing UI response to I/O, lid closing behavior)

hk flag

I've recently bought an Acer Nitro 5 laptop with AMD Ryzen 7 4800H and GTX 1650Ti,that came with Windows 10 as its operating system, and installed Ubuntu 20.04.3 to it, in a dual boot configuration. Although Windows runs fine, Ubuntu keeps lagging its UI once some interruption is done, being it a mouse interaction, such as a window closing; a sound adjustment through Youtube or, as it is the most frequently problem, when the keyboard is typed rapidily, and the screen response freezes for 2 to 3 seconds before showing what was typed. This is really weird, considering that CPU usage is most times below 50%, the dedicated GPU is only used agressively when playing games, and that this lagging problem occurs even when RAM is really low.

Initially, the laptop only had drivers for AMD's integrated graphics, and I can't recall if this happened then, but even when I removed NVIDIA proprietary drivers, the problem kept happening, so I don't think it is related to graphical drivers especifically. I've also disable all GNOME extensions, and the lagging/freezing didn't vanished.

This problem is not just annoying, as it doesn't seem to make sense at all. At my previous laptop, a Toshiba Sattelite with Intel i3-4000M and Intel HD Graphics 4600, Ubuntu 20.04.2 never presented such behavior. The only problem I had was with laptop lid being closed and the system not booting back up, that was solved by downgrading the kernel used. For my recent Acer Nitro 5, this error happened as well, but it has been kinda solved, as now suspension after lid is closed happens only 20, 30 seconds after being closed (probably "solved" through adding noveau.modeset=0 to GRUB configurations). I've also changed display manager from gdm3 to lightdm, trying to solve the lid's problem, and it didn't impact in UI I/O-related lagging, that kept happening.

And yes, I have downloaded a previous kernel, the one which I was using in my previous laptop, but when I tried to load it through GRUB, I only get a black screen that prints the NVMe's partition in which Ubuntu is installed, followed by something like / clean, / files, where ni are some probably some numbers related to how this partition is filled.

So, to summarize, Ubuntu is being a mess in this laptop.I don't really know what could be happening, besides some possibilities that I didn't find a way to solve till now, such as some I/O messed up configuration; some GUI rendering blocking related to I/O; Ubuntu 20.04.3 kernel (5.11.0-27+) trashing the whole system performance; or this Ubuntu release incompability with the CPU.

I hope someone who gone through similar problems could help me out, given that, for problematic lid behavior on laptops at least, the problem is quite frequent, given the amount of questions in forums related to it, primarly happening in Ubuntu's most recent releases. But, unfortunately, the solutions given for lagging/freezing I/O-related UI issues in these forums didn't solve the ones presented in my Ubuntu installation.

Nmath avatar
ng flag
Boot up a live session (Try Ubuntu) from installation media. Do you have the same problems when it's not your installed system?
Rafael Santos avatar
hk flag
Thanks for the advice man, but for now I'm fine with how my laptop is behaving. More details on how I partially solved this issues can be seen in the comments i made below, in this post first answer.
Score:0
eg flag

I had some strange things with Kubuntu 20.04.3 so I installed 20.04.2 instead. No more problems since then. Upgraded 'automaticly' from Kernel 5.11.0-37 to 5.11.0-38. No problems, no strange things, like I had with 20.04.3. I know this doesn't solve your problem, but maybe it's worth a try. I don't use my laptop with the lid closed ( can't use keyboard and trackpad and I don't see anything ), so I have no experience with that.

Rafael Santos avatar
hk flag
Thanks mate, I'll probably give it a try. I had Ubuntu 20.04.2 ISO downloaded, but unfortunately deleted it, and didn't find 20.04.2 release on Canonical's Ubuntu website, biut now searching through DuckDuckGo I've found it. And about using the laptop with a closed lid, I also don't use it this way (lmao), the problem was that, after closing the lid, either suspension wouldn't be even called or, after being called (or trying to be called), would turn the screen black with a blinking underline at the top and the system wouldn't wake up (show login screen). Either way,thanks for the report!
Rafael Santos avatar
hk flag
Just an update, somehow this freezing/lagging disappeared, or at least don't happen as often as before. Strangely, it stopped happening after I booted to Windows 10 and, then, when I returned to Ubuntu it disappeared. But I have a hunch of what may have solved this issue: disabling dash-to-dock GNOME extension. This way, I configured dock's autohide through configurations and other settings through dconf editor. I've also added HandleHibernateKey=suspend to /etc/systemd/logind.conf, but this must have nothing to do with the UI freezing on I/O events, and it didn't change closing lid behavior.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.