It started freezing maybe a month or two ago. It happens anytime between a few seconds after the OS loads, to hours or days later. I do not recall downloading anything around when this issue began that could be suspect.

I’ve put off fixing this because I have no idea how to even begin troubleshooting it. Internet searches for “Linux freezes” returns practically countless potential problems.

What are some recommendations? I have my root directory on a 30 GB partition separate from my home directory, which I think makes reinstalling my base image (Debian) easy without losing personal data, so that’s an option. Maybe there’s a system log file that would provide some insight?

I’m Linux dumb so please teach me how to fish!

I’ll add that my Windows install (on a separate drive) doesn’t freeze, and my Linux install is on a new Samsung drive that didn’t report issues, so the problems unlikely hardware related.

02:05 18OCT: Thanks for all the quick responses, a lot of helpful suggestions so far. I should clarify that “my computer freezes” means it is 100% unresponsive until it is rebooted. Ctrl+alt+del spam or changing terminal sessions when its frozen does not get a response. The last few entries in my most recent journalctl boot outputs are different from one another, and the I did not see any errors. For now, I’ll boot a live USB and let it sit for while, see if it crashes again.

  • Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    2 months ago

    the /var/log/ folder would be the best place to start.

    1. When a random freeze occurs note the time. Try to be as accurate and close to the time it happened as you can, including day, hour, and minute.
            A. If possible, do this for multiple instances of this happening

    2. Check various log files starting with syslog and look at the times noted above. Look for any relevant errors being thrown by the system at these times.

  • AnimaLibera@piefed.social
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    2 months ago

    If it’s freezing regularly, you could try booting a live usb of any Linux distro and see if it does the same thing. That will tell you relatively quickly if it’s a hardware problem or a software problem.

    • Snot Flickerman@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      2 months ago

      It happens anytime between a few seconds after the OS loads, to hours or days later.


      That will tell you relatively quickly if it’s a hardware problem or a software problem.

      I mean, potentially not that quickly if they have to wait days for it to happen. Good low-investment-of-personal-time-and-effort suggestion though.

      • AnimaLibera@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        Yeah, I would give it a few hours to most of the day to test and then move on with something else. I really recommend journalctl though. Of course it depends on how long it stays on and how fast you can read the logs.

  • Matt@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Hold the power button till the display goes dark. Then start up the computer.

  • Longpork3@lemmy.nz
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Do you have another machine(or even a phone with an ssh tool like connectbot) you can use to try remoting into the machine while it is “frozen”? If you can still ssh in, that would indicate it is a DE issue, and you can poke around from there, try forcing a restart of the DE

  • AllForTwo@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    Which distro are you on?

    Was there a kernel update recently by chance? Have you tried falling back to an earlier version? Got any timeshift backups?

    • GooseFinger@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Debian 12. When the freezing first started, I lied to myself saying it’ll self-correct with time. I’ve since lost track of which timeshift backup to use. I am a silly fool.

      And there was no kernel update afaik.

      • AllForTwo@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 months ago

        I suppose the logging from the Os there is the same as journalctl. I’m new to Linux, but I’ve done Hackintosh quite a bit, so a lot of similar commandlines and debugging. I digress.

        Have you tried making a new user, booting from a live usb or booting into a different desktop environment? I feel those are the lowest hanging fruits where you can check if it hangs universally or just on your main user account. Would help narrow it down a little if you haven’t been able to spot anything in logs.

  • ms.lane@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    You’ve mentioned in the thread you’ve on Debian 12 - have you installed mesa from backports?

    The version of mesa on 12 is is 22.3.6 which is before the release of the 7900GRE and only very early RDNA3 support.

    bookworm-backports has 25.0.7

    If you read through https://backports.debian.org/Instructions/ you can enable the backports repo then just reinstall mesa (or dist-upgrade)

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    One thing that I did when distro hopping was to have /home be separate like you have, but I would back it up elsewhere and let it be a clean start which I could bring over what I wanted from the backup.

    It was easier than hunting down which dotfile the new distro didn’t like.

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    2 months ago
    1. Would be good to know the hardware you’re working, especially if it’s a laptop and the model.
    2. What kind of freeze is this? Black screen, frozen graphics, mouse frozen…etc. Also whether is time-bssed, and how long it takes to freeze.
    3. As a test, boot, and play music continuously until it freezes. Does the sound stop as well?

    In all practical reality, Linux takes A LOT to topple over like this. It certainly would fair better than Windows with wonky hardware, but if it’s a laptop for example, maybe your fans aren’t working and therefore it’s a heat. Just try and define what kind of freeze it is first.

    • GooseFinger@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 months ago

      I’m running a desktop with relatively new hardware. Amd 5900x CPU, AMD 7900 GRE GPU, 32 GB ram, plenty of space and good airflow for stable thermals.

      The freeze is definitely at least frozen desktop and mouse/keyboard. I also tried changing terminal sessions after a freeze tonight and this had no effect, so it’s probably the whole system?

      Good idea with playing sound, I will try this on my next boot.

      • IsoKiero@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        You could try to ping your machine from another device and see if it responds. I had issues with older nvidia card on a old system where it would lock up keyboard/mouse and video but the underlying system was still running and I could ssh into the machine and debug the problem that way. Another computer is obviously preferred but in a pinch a cellphone is better than nothing.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    dmesg/journalctl, then udev (udevadm monitor) and lsusb/lspci might be helpful too. Places to look at (only if you fiddled with them): /etc/fstab for mount options and do you maybe have a weird rule in /etc/udev, /etc/modprobe.d or /etc/sysctl?

  • PriorityMotif@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    Had the same issue and it was my mouse causing the USB ports to stop working I realized that the clock was still working and it would go into hibernate. Just wouldn’t respond to mouse or kb.

    • GooseFinger@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Whole system freezes unfortunately. The only silver lining is that I know exactly what time the crash occurred, since my clock freezes too!

  • qaatloz@feddit.nl
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    I have some bad experiences with btrfs and timeshift schedules. I have laptops seen freeze for minutes when creating a btrfs snapshot. I have not specifically looked if you are using this combination but it is something to check.

  • Xylight@feddit.online
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 months ago

    this is important, and will help you find solutions much more specific than just “system freeze”

    • Right after a crash, once you reboot, run journalctl -b -1 and scroll to the bottom. Look for any big red text, all of that will be very helpful to diagnose this issue

    Otherwise,

    • Does it freeze permanently, requiring a reboot, or for a few seconds?
      • If it’s just for a few seconds, and you’re on an AMD system, it would sound like an fTPM stutter. A BIOS update would likely fix that, it was a widespread issue.
    • Are you using an AMD or NVIDIA GPU?
    • Do you play any games or use any software that uses OpenGL? (Blender and minecraft are some I’ve had problems in before)
    • GooseFinger@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      No red text from journalctl unfortunately. My last few sessions each end with different messages too. One is a KDE Connect warning, a few others echoing some commands I sent in the terminal, etc. No red errors.

      The system freezes permanently, requiring a reboot.

      I have an AMD GPU, and likely have OpenGL installed.