Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Desktop PC randomly freezes ...

  1. #1
    Join Date
    Nov 2006
    Beans
    1,039

    Desktop PC randomly freezes ...

    My desktop PC running 22.04 Ubuntu Mate will freeze and stop responding with mouse and keyboard.
    This happens every few days to a week or more.
    The screen still shows the desktop but no mouse cursor and the keyboard is not responsive.
    The only way to recover is the Reset Button and it will boot up and everything works as it should.

    Got any ideas? Is it more of an intermittent hardware problem, or could it be a software issue?
    Carl
    My other hobby is antique Radios and TV restoration.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Desktop PC randomly freezes ...

    Quote Originally Posted by cwmoser View Post
    Got any ideas? Is it more of an intermittent hardware problem, or could it be a software issue?
    It could be anything of 10,000 issues. The way to narrow down the possible issues are to look at the system logs. If you note the time that the lockup happens, you can ask journalctl to provide logs from around that time.

    Also, providing an overview of the system, software, configuration, and hardware would be helpful to people who recognize common issues with different setups. inxi -Fxxz will help with that.

    I have lots of ideas, but without any data, they are just guesses and would waste your time and mine.

  3. #3

    Re: Desktop PC randomly freezes ...

    Check system logs to see if there are any clues:

    sudo journalctl -b -1 # View logs from the last boot
    sudo dmesg | less # Kernel messages

  4. #4
    Join Date
    Nov 2006
    Beans
    1,039

    Re: Desktop PC randomly freezes ...

    My desktop PC froze again today Aug15.
    I tried sudo journalctl -b -1 but I get this:
    Specifying boot ID or boot offset has no effect, no persistent journal was found.

    I note that there is a dmesg.0 log file ... but how to read it in "human form"??
    Carl
    My other hobby is antique Radios and TV restoration.

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Desktop PC randomly freezes ...

    If the system isn't saving 200MB of logs, you need to change that setting. That's in the journald.conf file. There's a manpage that explains what each setting means, if you find the existing comments aren't sufficient. I've always found the comments more than sufficient.

    dmesg.0 is human readable, but it only covers the initial boot, so if the lockups are happening after that, it isn't so useful.

  6. #6
    Join Date
    Nov 2006
    Beans
    1,039

    Re: Desktop PC randomly freezes ...

    I made journalctl persistent and that is neat to recover logs from prior boots.
    Then this morning I was at my desktop PC working with LibreOffice Calc and the Keyboard/Mouse hung again with the time on the desktop at 6:07 AM.
    i just let it sit like this until I made coffee, and then came back and RESET my PC.

    This is the output of journalctl -b-1 just before and after 6:07 AM:
    Code:
    Aug 19 06:06:09 klaatu-2 kernel: audit: type=1400 audit(1724061969.443:306): apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/usr/share/zoneinfo-icu/44/le/timezoneTy>
    Aug 19 06:06:10 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:01:b0:95:75:47:9c:c6:08:00 SRC=192.168.0.201 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2 
    Aug 19 06:06:10 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:08:a6:bc:e5:06:41:08:00 SRC=192.168.0.169 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
    Aug 19 06:06:39 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:aa:b3:68:b1:36:d4:08:00 SRC=192.168.0.165 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=38582 PROTO=2 
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT]
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: runlist 0: scheduled for recovery
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: channel 2: killed
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: engine 7: scheduled for recovery
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: engine 0: scheduled for recovery
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: fault 00 [READ] at 0000000080048000 engine 1b [CE2] client 01 [GPC0/T1_0] reason 0c [UNSUPPORTED_KIND] on channel -1 [0108040000>
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: runlist 4: scheduled for recovery
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: engine 4: scheduled for recovery
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: fifo: fault 00 [READ] at 0000000080048000 engine 15 [CE0] client 01 [GPC0/T1_0] reason 0c [UNSUPPORTED_KIND] on channel -1 [0108040000>
    Aug 19 06:07:04 klaatu-2 kernel: nouveau 0000:01:00.0: Xorg[5822]: channel 2 killed!
    Aug 19 06:07:17 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:aa:b3:68:b1:36:d4:08:00 SRC=192.168.0.165 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=22291 PROTO=2 
    Aug 19 06:07:58 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:4e:df:09:ae:28:73:08:00 SRC=192.168.0.129 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=13461 PROTO=2 
    Aug 19 06:08:15 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:01:b0:95:75:47:9c:c6:08:00 SRC=192.168.0.201 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2 
    Aug 19 06:08:16 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:e4:3b:c9:ff:b1:0d:08:00 SRC=192.168.0.119 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
    Aug 19 06:08:24 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:d8:be:65:a6:43:18:08:00 SRC=192.168.0.107 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
    Aug 19 06:08:30 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:4e:df:09:ae:28:73:08:00 SRC=192.168.0.129 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=22359 PROTO=2 
    Aug 19 06:08:39 klaatu-2 kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:fb:aa:b3:68:b1:36:d4:08:00 SRC=192.168.0.165 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=721 PROTO=2 
    Aug 19 06:09:12 klaatu-2 kernel: INFO: task kworker/u16:1:2538026 blocked for more than 120 seconds.
    Aug 19 06:09:12 klaatu-2 kernel:       Tainted: G           OE     5.15.0-118-generic #128-Ubuntu
    Aug 19 06:09:12 klaatu-2 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    I can't see anything that indicates what caused this. The CPU cooling fins are clean and the fans are running.
    Carl
    My other hobby is antique Radios and TV restoration.

  7. #7
    Join Date
    May 2008
    Beans
    4,376
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Desktop PC randomly freezes ...

    Quote Originally Posted by cwmoser View Post
    Code:
    nouveau 0000:01:00.0: fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT]
    Copy the line above and use your favourite search engine for info.
    Quite a few links to read.

  8. #8
    Join Date
    Nov 2006
    Beans
    1,039

    Re: Desktop PC randomly freezes ...

    Thanks Tea for one.

    I did a search and found posts suggesting it might be the nVidia graphics driver.

    I switched drivers:
    In Software and Updates -> Additional Drivers, I switched:
    From:
    Using X.Org X server - Nouveau display driver
    To:
    Using NVIDIA driver 570 (proprietary, tested)

    Now I'm going to test to see if this fixes the issue.

    Thanks much.
    Carl
    My other hobby is antique Radios and TV restoration.

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Desktop PC randomly freezes ...

    Why are you looking only at boot messages? Why not check for all errors, especially around the time of the lockup?

    Looking at the boot messages, I'd guess your video driver is the issue. If you don't have nvidia, then I'm wrong. If you have nvidia, look for better drivers.

    Ah - tea for one already responded. Your "Additional Drivers" should help, but nVidia drivers can be crap from time to time and eventually, they will drop support.

    If your GPU costs over $1000, that's the price of high-end GPUs - constantly moving the newer, faster, with more pipelines and DRAM. NVidia is the only game in town for high-end GPUs and they charge whatever they like.

    OTOH, if you have a mid-level or low-level GPU, then I would encourage you to consider AMD or Intel GPUs, which have their drivers included in the kernel. I have an AMD APU from 2012 with drivers that still are supported by the current kernel. Just something to consider when you open your wallet.

    Yes, Intel makes discrete GPUs now. I don't recall when they first hit the market, but it was over a year ago and back then, linux driver support sucked. That has probably changed. I switched to using AMD GPUs/iGPUs with my last system upgrades. They are 3x better than low-end nvidia and probably 10x better than the Intel iGPUs included with i3/i5/7 CPUs. I do video editing and HW-based transcoding using the iGPU on my Ryzen 5600G.

  10. #10
    Join Date
    Nov 2006
    Beans
    1,039

    Re: Desktop PC randomly freezes ...

    I don't purchase current state of the art Graphics Cards.
    Instead, I go for former high end cards, used and value priced on Ebay.
    I think I paid $30 or $40 for my nVidia card.
    Carl
    My other hobby is antique Radios and TV restoration.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •