LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2024, 01:43 PM   #1
Elyndorian
LQ Newbie
 
Registered: Apr 2024
Posts: 3

Rep: Reputation: Disabled
Seeking Help for Freezing Linux PC


Hi everyone!
I recently installed Debian on a new NVMe SSD in my main PC and now it keeps freezing without any apparent reason or pattern. I've been running Windows on this same setup for years with no issues, so I'm quite puzzled by the problem. Here are some details about my system:
  • AMD Radeon RX 5700 XT GPU
  • AMD Ryzen 5 3600 CPU
  • MSI MPG X570 Gaming Edge WIFI motherboard
  • 32 GB RAM
  • 750 watt power supply

I've already tried various troubleshooting steps, including:
  • Using REISUB to shut down the PC and other hotkeys
  • Reinstalling Debian multiple times
  • Installing Ubuntu as an alternative OS
  • Trying out Debian on a regular HDD instead of NVMe SSD
  • Checking logs (though it seems like the freezing happens before logging can occur)
  • Running memtest to check RAM integrity, which came back clean
  • Updating BIOS
  • Monitoring PC components for heavy load or overheating issues
  • Reading through various forum entries on similar problems
  • Downloading the proprietary AMD drivers (although that shouldn't be the issue since it's an AMD graphics card and I could play Minecraft)
  • Trying to change the GRUB entry to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"

Despite all these efforts, I haven't found a solution yet. Any suggestions or ideas would be greatly appreciated! Thanks in advance for your help!
 
Old 04-10-2024, 07:40 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,117
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Try re-seating the ssd in the connector. I have a IBM T530 that would not reboot and also freeze up on a 1TB SSD I inserted.

Re-seating the drive in the connector fixed this.

Noticed you say it freeze's up when tried another drive. Might wanna check the power jack. Try another. It can cause freezes also as I have learned. Also the hard drive connector blades might have one loose or corroded.
I don't think this is a software issue because of 2 different drives exhibiting the same behavior.

Last edited by rokytnji; 04-10-2024 at 07:45 PM.
 
Old 04-10-2024, 11:20 PM   #3
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I had some r/w nvme errors that lead to freezing, until I manually configured the maximum power for the nvme drive, as described here.
 
Old 04-11-2024, 04:09 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
you gave very few information to work with. Is there any app which can be connected to it? Did you try to boot into console mode (will that freeze too)? You can boot a lot of different live CD releases to check/test/try.
Freezing means that the screen is there, just stopped working (mouse does not move ...), or it is crashing? Did you try to log in from a remote host? Is it connected to sleep/hibernate somehow?
 
Old 04-11-2024, 06:37 AM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
The regular HDD would be running on SATA, Is the nvme drive also SATA? Does it also freeze with the HDD?
Normally the nvme drives would be installed as an M.2 card using PCIe for the interface so there is a distinct difference since that would not use the sata controller.
The suggestions for reseating the device (an unused slot that has a new device installed may have a tiny bit of dust or lint that interferes with a connection) or for checking the power states seems best to me.
If the nvme device is in an adapter using a sata port then the interface in that adapter may have a problem as well.
 
Old 04-11-2024, 09:10 AM   #6
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

I had this happen on a PC - it would freeze once in a while. I think I ran "journalctl -f -k" in a terminal window, and left the computer running for a while. It actually spit out some cryptic error message on screen and froze. I figuered it was about some disk controller. It couldn't write the error to a log, because the logging disk was on that controller.
 
Old 04-11-2024, 10:15 AM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
@computersavvy

Quote:
The regular HDD would be running on SATA, Is the nvme drive also SATA?
M.2sata and M.2nvme are totally different interfaces, see here. I do know however that some M.2 connectors can handle both devices in newer systems. (M.2sata is the older technology, uses SATA protocol, nvme uses the faster PCIe protocol.)

Play Bonny!

 
Old 04-11-2024, 11:14 AM   #8
Elyndorian
LQ Newbie
 
Registered: Apr 2024
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Try re-seating the ssd in the connector. I have a IBM T530 that would not reboot and also freeze up on a 1TB SSD I inserted.

Re-seating the drive in the connector fixed this.

Noticed you say it freeze's up when tried another drive. Might wanna check the power jack. Try another. It can cause freezes also as I have learned. Also the hard drive connector blades might have one loose or corroded.
I don't think this is a software issue because of 2 different drives exhibiting the same behavior.
Quote:
Originally Posted by computersavvy View Post
The regular HDD would be running on SATA, Is the nvme drive also SATA? Does it also freeze with the HDD?
Normally the nvme drives would be installed as an M.2 card using PCIe for the interface so there is a distinct difference since that would not use the sata controller.
The suggestions for reseating the device (an unused slot that has a new device installed may have a tiny bit of dust or lint that interferes with a connection) or for checking the power states seems best to me.
If the nvme device is in an adapter using a sata port then the interface in that adapter may have a problem as well.
Thank you both for your responses and suggestions!


To clarify, the NVMe SSD is directly connected to a PCIe interface, while the regular HDD is indeed connected via SATA. I've already re-seated both drives in their respective connectors, and upon inspection, everything appears to be in order.

Given that the freezing occurs even when using the HDD, it's unlikely to be related to the power states or the NVMe interface. However, I will still double-check the power jack and examine the hard drive connector blades for any loose or corroded connections.
 
Old 04-11-2024, 12:09 PM   #9
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 779

Rep: Reputation: 246Reputation: 246Reputation: 246
Is it the Ryzen RCU thing? https://wiki.archlinux.org/title/Ryzen (section 4.3). When I first got this machine, a Ryzen 5, it did that. I had to build the kernel with CONFIG_RCU_NOCB_CPU=y (in the 'make expert changes to the rcu subsystem' area) and boot with rcu_nocbs=0-7 for an 8 core machine. Without that, I couldn't get even 2 days uptime. What a nasty bug that was.
 
Old 04-11-2024, 12:27 PM   #10
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 482

Rep: Reputation: 179Reputation: 179
Turn off all the power saving and sleep options. Useless on a desktop and can cause problems. In the past screen savers can cause lock-ups too. Just some suggestions.
 
Old 04-11-2024, 02:59 PM   #11
Elyndorian
LQ Newbie
 
Registered: Apr 2024
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you gave very few information to work with. Is there any app which can be connected to it? Did you try to boot into console mode (will that freeze too)? You can boot a lot of different live CD releases to check/test/try.
Freezing means that the screen is there, just stopped working (mouse does not move ...), or it is crashing? Did you try to log in from a remote host? Is it connected to sleep/hibernate somehow?

Thank you for your response and suggestions!

I apologize for the limited information provided initially. To address your questions:

No specific app seems to trigger the freezing, as it occurs even without any additional programs running beyond what is included in the distribution. Additionally, the freezing doesn't seem to be related to particular applications. For instance, I've experienced freezes both when running only Firefox and when no additional programs were running at all.

Regarding the distribution choice, I've tried both Ubuntu and Debian, both of which are stable distributions, opting for the stable releases. However, the issue persists across both distributions, suggesting that it may not be related to the specific distribution used.

As for sleep/hibernate, the freezing does not seem to be triggered by any sleep or hibernate settings.

To describe the symptoms more precisely: the PC becomes completely unresponsive, not reacting to any keyboard input, including keyboard shortcuts like REISUB. If I had been watching a video before the freeze (the freezing issue occurs regardless of whether I've been watching a video or not), the audio loops endlessly at approximately one second intervals, while the screen remains frozen. The only recourse is to forcibly power off the PC. Additionally, the duration until the freeze occurs varies, ranging roughly between 3 minutes and 6 hours.

I appreciate the suggestion to try accessing the PC via SSH, and I will certainly test that out.
 
Old 04-12-2024, 02:45 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I would definitely try another distro too (especially if you have no better idea). Did you try to run smartctl ?
 
Old 04-16-2024, 11:00 PM   #13
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by rclark View Post
Turn off all the power saving and sleep options...screen savers can cause lock-ups too... Useless on a desktop and can cause problems.
They clash with?
 
Old 04-17-2024, 09:29 AM   #14
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,117
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Running the video card continuously. Would probably lock it up eventually.

I blank mine. But I run a Window manager distro that has reputation as " lean and mean "
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] My Fedora 13 keeps freezing and freezing.. One Clueless Man Linux - Newbie 7 08-18-2010 10:33 AM
Newbie seeking to change to Linux needs help with wireless; WINE. Dunas Linux - Newbie 14 07-25-2007 12:56 PM
Complete linux n00b - seeking help with speedtouch 330 modem and kernels MrGeezer Linux - Newbie 10 10-10-2004 12:40 PM
new to linux - seeking help stuimrozsm Linux - Newbie 4 12-18-2002 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration