Ubuntu – Lenovo Ideapad 330 Ryzen 5 2500u Freeze issue Frequently

freezeideapadlenovo

I have Just installed and setup Ubuntu 18.04.3 LTS on My Lenovo Ideapad 330 with AMD® Ryzen 5 2500u with radeon vega mobile gfx × 8

Wifi was not working but I fixed that but
still my devices is getting freezed sometimes frequently.

No Errors etc, No Distortion, It Freezes, I can move the cursor but no buttons works..

Any Solutions?

PS: I am Newbie in Using Terminal, Don't Know much about linux commands.

Best Answer

After doing a bit of research and refusing to recompile the graphics stack manually I found you need to do 2 things to almost completely resolve this issue: set a cstate restriction parameter for the kernel in /etc/default/grub and update the AMD graphics driver.

Open Terminal and open the file for editing with root privileges, for example (if you don't have mousepad you could use nano)

sudo mousepad /etc/default/grub

Change the line beginning GRUB_CMDLINE_LINUX_DEFAULT= so that after your edit it includes the parameter intel_idle.max_cstate=1, for example mine says:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 intel_idle.max_cstate=1"

You can keep other parameters, such as quiet and splash which may be there already.

save and exit the text editor, and run this command to update the GRUB configuration:

sudo update-grub

Now add a PPA for AMD graphics drivers:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update && sudo apt upgrade

Now reboot.

This solution should work for other flavors of Linux (ie mint, mx, manjaro etc...) and other AMD powered machines experiencing this issue.

Do not use screen lock or system suspend and you will most likely never have a freeze again!

When I choose to stop being lazy and resolve system lock freeze issues I will update this response.

AMD has not released any official proprietary drivers for Ubuntu 20.04 as of this posting, when and if they do, I would recommend trying them.

Related Question